CmdID

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

az policy assignment non-compliance-message show

Retrieve a non-compliance message. Azure CLI reference

Retrieve and show the details of 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

Show the non-compliance message from a policy assignment that contains a specific message and policy definition reference ID

az policy assignment non-compliance-message show -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