Question 550
An Azure Policy assignment uses a deny effect to block resources with noncompliant network configurations. Developers receive a generic deployment failure message and repeatedly ask what to change. Security wants the deny enforcement to remain in place but the deployment error and compliance results to include a custom remediation instruction. Which assignment-level capability should be configured?
Explanation
Correct Answer
The policy assignment's nonComplianceMessages property provides message text displayed on deny errors and noncompliant resource results. For an initiative, policyDefinitionReferenceId can associate guidance with a particular policy; the deny effect remains unchanged.
Incorrect Answers
Changing deny to audit removes the preventive gate instead of adding explanatory guidance while retaining enforcement.
A display name identifies the assignment but does not supply custom text displayed in Azure Policy deny errors and non-compliant results.
Azure Policy deny evaluation is independent of gaining a broader Azure RBAC role. Elevating privilege neither corrects the noncompliance message nor satisfies least privilege.