CmdID

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

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

Examples

from the Azure CLI, each command read by CmdID

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

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