CmdID / az / az policy / az policy assignment / az policy assignment non-compliance-message
az policy assignment non-compliance-message update
Update a non-compliance message. Azure CLI reference
Update a non-compliance message belonging to the policy assignment matching the given name and scope.
1 example 1 option Its page in the Azure CLI reference
Examples
Update the non-compliance message for a specific policy in an assigned policy set definition
az policy assignment non-compliance-message update -g MyResourceGroup -n MyPolicySetAssignment -m 'Resources may only use SKUs from [preferredSKU, anotherGoodSKU]' --policy-definition-reference-id SkuPolicyRefIdIdentify-gName of resource group.Options
--policy-definition-reference-id, --message, --scope, --name, -m, -n, -r