CmdID

CmdID / az / az logz / az logz sub-rule

az logz sub-rule create

Create a tag rule set for a given sub account resource. Azure CLI extensions reference

1 example 8 options Its page in the Azure CLI extensions reference

Opens CmdID with your command. It is read in your browser and sent nowhere.

Examples

from the Azure CLI, each command read by CmdID

SubAccountTagRules_CreateOrUpdate

az logz sub-rule create --monitor-name "myMonitor" --filtering-tags name="Environment" action="Include" value="Prod" --filtering-tags name="Environment" action="Exclude" value="Dev" --send-aad-logs false --send-activity-logs true --send-subscription-logs true --resource-group "myResourceGroup" --rule-set-name "default" --sub-account-name "SubAccount1"Identify
--monitor-nameMonitor resource name
--filtering-tagsList of filtering tags to be used for capturing logs.
--send-aad-logsFlag specifying if AAD logs should be sent for the Monitor resource.
--send-activity-logsFlag specifying if activity logs from Azure resources should be sent for the Monitor resource.
--send-subscription-logsFlag specifying if subscription logs should be sent for the Monitor resource.
--resource-groupName of resource group.
--rule-set-nameRule set name of sub account.
--sub-account-nameSub Account resource name

Options

8 in the Azure CLI extensions reference
--filtering-tagsList of filtering tags to be used for capturing logs.
--monitor-nameMonitor resource name
--resource-group, -gName of resource group.
--rule-set-nameRule set name of sub account.
--send-aad-logsFlag specifying if AAD logs should be sent for the Monitor resource.
--send-activity-logsFlag specifying if activity logs from Azure resources should be sent for the Monitor resource.
--send-subscription-logsFlag specifying if subscription logs should be sent for the Monitor resource.
--sub-account-nameSub Account resource name