There is a command group 'az_monitor_data collection_rule'. This group of commands could 'manage data collection rule for monitor control service'. The group of commands has global parameter '--debug' which means 'Increase logging verbosity to show all debug logs.'. The group of commands has global parameter '--help -h' which means 'Show this help message and exit.'. The group of commands has global parameter '--only-show-errors' which means 'Only show errors, suppressing warnings.'. The group of commands has global parameter '--output -o' which means 'Output format.'. The group of commands has global parameter '--query' which means 'JMESPath query string. See <a href="http://jmespath.org/">http://jmespath.org/</a> for more information and examples.'. The group of commands has global parameter '--subscription' which means 'Name or ID of subscription. You can configure the default subscription using `az account set -s NAME_OR_ID`.'. The group of commands has global parameter '--verbose' which means 'Increase logging verbosity. Use --debug for full debug logs.'. This group contains a child command 'az_monitor_data collection_rule_create'.The syntax is: az monitor data-collection rule create --data-collection-rule-name
                                       --resource-group
                                       [--data-collection-endpoint-id]
                                       [--data-flows]
                                       [--data-sources]
                                       [--description]
                                       [--destinations]
                                       [--identity]
                                       [--kind {linux, windows}]
                                       [--location]
                                       [--rule-file]
                                       [--stream-declarations]
                                       [--tags]. The 1th example of the child command would be to use it to 'create data collection rule', the syntax is: az monitor data-collection rule create --resource-group "myResourceGroup" --location "eastus" --name "myCollectionRule" --rule-file "C:\samples\dcrEx1.json". The parameter '--data-collection-rule-name --name --rule-name -n' is required. It is used to the name of the data collection rule. the name is case insensitive.. The parameter '--resource-group -g' is required. It is used to name of resource group. you can configure the default group using `az configure --defaults group=<name>`.. The parameter '--data-collection-endpoint-id --endpoint-id' is optional. the resource id of the data collection endpoint that is to be associated.. The parameter '--data-flows' is optional. the specification of data flows.  support shorthand-syntax, json-file and yaml-file. try "??" to show more.. The parameter '--data-sources' is optional. the specification of data sources. this property is optional and can be omitted if the rule is meant to be used via direct calls to the provisioned endpoint.  support shorthand-syntax, json-file and yaml-file. try "??" to show more.. The parameter '--description' is optional. description of the association.. The parameter '--destinations' is optional. the specification of destinations.  support shorthand-syntax, json-file and yaml-file. try "??" to show more.. The parameter '--identity' is optional. managed service identity of the resource.  support shorthand-syntax, json-file and yaml-file. try "??" to show more.. The parameter '--kind' is optional. the kind of the resource.. The parameter '--location -l' is optional. the geo-location where the resource lives.. The parameter '--rule-file' is optional. the json file for rule parameters. if provided, corresponding parameter will be overwrited by value from rule file
            usage:   --rule-file sample.json
            rule json file should be rule parameters organized as json format, like below:
        {
            "properties": {
                "destinations": {
                    "azuremonitormetrics": {
                        "name": "azuremonitormetrics-default"
                    }
                },
                "dataflows": [
                    {
                        "streams": [
                            "microsoft-insightsmetrics"
                        ],
                        "destinations": [
                            "azuremonitormetrics-default"
                        ]
                    }
                ]
            }
        }.. The parameter '--stream-declarations' is optional. declaration of custom streams used in this rule.  support shorthand-syntax, json-file and yaml-file. try "??" to show more.. The parameter '--tags' is optional. resource tags.  support shorthand-syntax, json-file and yaml-file. try "??" to show more.. 