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
Examples
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
--policy-definition-reference-id, --message, --scope, --name, -m, -n, -r