CmdID

CmdID / az / az policy / az policy assignment / az policy assignment non-compliance-message

az policy assignment non-compliance-message delete

Delete a non-compliance message. Azure CLI reference

Delete a non-compliance message from the policy assignment matching the given name and scope.

2 examples 1 option Its page in the Azure CLI 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

Remove non-compliance messages from a policy assignment that contain a specific message and no policy definition reference ID

az policy assignment non-compliance-message delete -g MyResourceGroup -n MyPolicyAssignment -m 'Resources must follow naming standards'Identify
-gName of resource group.

Remove non-compliance messages from a policy assignment that contain a specific message and a specific policy definition reference ID

az policy assignment non-compliance-message delete -g MyResourceGroup -n MyPolicySetAssignment -m 'Resources must use allowed SKUs' --policy-definition-reference-id SkuPolicyRefIdIdentify
-gName of resource group.

Options

1 in the Azure CLI reference
--policy-definition-reference-id, --message, --scope, --name, -m, -n, -r