There is a command group 'az_monitor_alert processing rule'. This group of commands could 'manage alert processing rule with alertsmanagement'. 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_alert processing rule_create'.The syntax is: az monitor alert-processing-rule create --name
                                        --resource-group
                                        --rule-type {addactiongroups, removeallactiongroups}
                                        --scopes
                                        [--action-groups]
                                        [--description]
                                        [--enabled {false, true}]
                                        [--filter-alert-context]
                                        [--filter-alert-rule-description]
                                        [--filter-alert-rule-id]
                                        [--filter-alert-rule-name]
                                        [--filter-monitor-condition]
                                        [--filter-monitor-service]
                                        [--filter-resource-group]
                                        [--filter-resource-type]
                                        [--filter-severity]
                                        [--filter-signal-type]
                                        [--filter-target-resource]
                                        [--schedule-end-datetime]
                                        [--schedule-recurrence]
                                        [--schedule-recurrence-2]
                                        [--schedule-recurrence-2-end-time]
                                        [--schedule-recurrence-2-start-time]
                                        [--schedule-recurrence-2-type {daily, monthly, weekly}]
                                        [--schedule-recurrence-end-time]
                                        [--schedule-recurrence-start-time]
                                        [--schedule-recurrence-type {daily, monthly, weekly}]
                                        [--schedule-start-datetime]
                                        [--schedule-time-zone]
                                        [--tags]. The 1th example of the child command would be to use it to 'create or update a rule that adds an action group to all alerts in a subscription', the syntax is: az monitor alert-processing-rule create \
--name 'AddActionGroupToSubscription' \
--rule-type AddActionGroups \
--scopes "/subscriptions/MySubscriptionId" \
--action-groups "/subscriptions/MySubscriptionId/resourcegroups/MyResourceGroup1/providers/microsoft.insights/actiongroups/ActionGroup1" \
--enabled true \
--resource-group alertscorrelationrg \
--description "Add ActionGroup1 to all alerts in the subscription". The 2th example of the child command would be to use it to 'create or update a rule that adds two action groups to all sev0 and sev1 alerts in two resource groups', the syntax is: az monitor alert-processing-rule create \
--name 'AddActionGroupsBySeverity' \
--rule-type AddActionGroups \
--action-groups "/subscriptions/MySubscriptionId/resourcegroups/MyResourceGroup1/providers/microsoft.insights/actiongroups/MyActionGroupId1" "/subscriptions/MySubscriptionId/resourceGroups/MyResourceGroup2/providers/microsoft.insights/actionGroups/MyActionGroup2" \
--scopes "/subscriptions/MySubscriptionId" \
--resource-group alertscorrelationrg \
--filter-severity Equals Sev0 Sev1 \
--description "Add AGId1 and AGId2 to all Sev0 and Sev1 alerts in these resourceGroups". The 3th example of the child command would be to use it to 'create or update a rule that removes all action groups from alerts on a specific vm during a one off maintenance window  1800 2000 at a specific date  pacific standard time', the syntax is: az monitor alert-processing-rule create \
--name 'RemoveActionGroupsMaintenanceWindow' \
--rule-type RemoveAllActionGroups \
--scopes "/subscriptions/MySubscriptionId/resourceGroups/MyResourceGroup1/providers/Microsoft.Compute/virtualMachines/VMName" \
--resource-group alertscorrelationrg \
--schedule-start-datetime '2022-01-02 18:00:00' \
--schedule-end-datetime '2022-01-02 20:00:00' \
--schedule-time-zone 'Pacific Standard Time' \
--description "Removes all ActionGroups from all Alerts on VMName during the maintenance window". The 4th example of the child command would be to use it to 'create or update a rule that removes all action groups from all alerts in a subscription coming from a specific alert rule', the syntax is: az monitor alert-processing-rule create \
--name 'RemoveActionGroupsSpecificAlertRule' \
--rule-type RemoveAllActionGroups \
--scopes "/subscriptions/MySubscriptionId" \
--resource-group alertscorrelationrg \
--filter-alert-rule-id Equals "/subscriptions/MySubscriptionId/resourceGroups/MyResourceGroup1/providers/microsoft.insights/activityLogAlerts/RuleName" \
--description "Removes all ActionGroups from all Alerts that fire on above AlertRule". The 5th example of the child command would be to use it to 'create or update a rule that removes all action groups from all alerts on any vm in two resource groups during a recurring maintenance window  2200 0400 every sat and sun  india standard time', the syntax is: az monitor alert-processing-rule create \
--name 'RemoveActionGroupsRecurringMaintenance' \
--rule-type RemoveAllActionGroups \
--scopes "/subscriptions/MySubscriptionId/resourceGroups/MyResourceGroup1" "/subscriptions/MySubscriptionId/resourceGroups/MyResourceGroup2" \
--resource-group alertscorrelationrg \
--filter-resource-type Equals "microsoft.compute/virtualmachines" \
--schedule-time-zone "India Standard Time" \
--schedule-recurrence-type Weekly \
--schedule-recurrence-start-time "22:00:00" \
--schedule-recurrence-end-time "04:00:00" \
--schedule-recurrence Sunday Saturday \
--description "Remove all ActionGroups from all Virtual machine Alerts during the recurring maintenance". The 6th example of the child command would be to use it to 'create or update a rule that removes all action groups outside business hours  mon fri 09 00 17 00  eastern standard time', the syntax is: az monitor alert-processing-rule create \
--name 'RemoveActionGroupsOutsideBusinessHours' \
--rule-type RemoveAllActionGroups \
--scopes "/subscriptions/MySubscriptionId" \
--resource-group alertscorrelationrg \
--schedule-time-zone "Eastern Standard Time" \
--schedule-recurrence-type Daily \
--schedule-recurrence-start-time "17:00:00" \
--schedule-recurrence-end-time "09:00:00" \
--schedule-recurrence-2-type Weekly \
--schedule-recurrence-2 Saturday Sunday \
--description "Remove all ActionGroups outside business hours". The parameter '--name -n' is required. It is used to name of the alert processing rule.. 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 '--rule-type' is required. It is used to indicate type of the alert processing rule.. The parameter '--scopes' is required. It is used to list of resource ids (space-delimited) for scope. the rule will apply to alerts that fired on resources within that scope.. The parameter '--action-groups' is optional. list of resource ids (space-delimited) of action groups to add. a use of this argument requires that rule-type is addactiongroups.. The parameter '--description' is optional. description of the alert processing rule.. The parameter '--enabled' is optional. indicate if the given alert processing rule is enabled or disabled (default is enabled).. The parameter '--filter-alert-context' is optional. filter alerts by alert context (payload).. The parameter '--filter-alert-rule-description' is optional. filter alerts by alert rule description.. The parameter '--filter-alert-rule-id' is optional. filter alerts by alert id.. The parameter '--filter-alert-rule-name' is optional. filter alerts by alert rule name.. The parameter '--filter-monitor-condition' is optional. filter alerts by monitor condition.. The parameter '--filter-monitor-service' is optional. filter alerts by monitor service.. The parameter '--filter-resource-group' is optional. filter alerts by resource group.. The parameter '--filter-resource-type' is optional. filter alerts by resource type.. The parameter '--filter-severity' is optional. filter alerts by severity <sev0, sev1, sev2, sev3, sev4>.. The parameter '--filter-signal-type' is optional. filter alerts by signal type.. The parameter '--filter-target-resource' is optional. filter alerts by resource.. The parameter '--schedule-end-datetime' is optional. end date for the rule. format: 'yyyy-mm-dd hh:mm:ss'.. The parameter '--schedule-recurrence' is optional. list of recurrence pattern values.. The parameter '--schedule-recurrence-2' is optional. list of recurrence pattern values for the second recurrence pattern.. The parameter '--schedule-recurrence-2-end-time' is optional. end time for each recurrence. format: hh:mm:ss.. The parameter '--schedule-recurrence-2-start-time' is optional. start time for each recurrence. format: hh:mm:ss.. The parameter '--schedule-recurrence-2-type' is optional. specifies when the processing rule should be applied. default to always.. The parameter '--schedule-recurrence-end-time' is optional. end time for each recurrence. format: 'hh:mm:ss'.. The parameter '--schedule-recurrence-start-time' is optional. start time for each recurrence. format: 'hh:mm:ss'.. The parameter '--schedule-recurrence-type' is optional. specifies when the processing rule should be applied.. The parameter '--schedule-start-datetime' is optional. start date for the rule. format: 'yyyy-mm-dd hh:mm:ss'.. The parameter '--schedule-time-zone' is optional. schedule time zone.. The parameter '--tags' is optional. space-separated tags: key[=value] [key[=value] ...]. use "" to clear existing tags.. 