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