Exam Preparation Quiz

Question 37 of 75

Complete Azure Policy For Resource Group Tag Enforcement

MDFT Pro, a well-known training agency, needs to implement governance policies across their Azure environment to ensure proper resource organization and cost tracking for their educational services. Mark, the Governance Policy Designer, is creating a custom Azure Policy to enforce tagging standards for resource groups.

The company requires that every resource group has an “organization” tag set to “MDFT Pro” to enable accurate cost allocation and compliance reporting for their training programs. Claire, the Governance Policy Coordinator, needs the policy to allow resource groups to be created through the Azure portal while ensuring that compliance reports accurately reflect which resource groups are missing the required tag.

{
  "mode": "all",
  "policyRule": {
    "if": {
      "allOf": [
        {
          "field": "tags['organization']",
          "notEquals": "MDFT Pro"
        },
        {
          "field": "type",
          "equals": "Microsoft.Resources/resourceGroups"
        }
      ]
    },
    "then": {
      "effect": "__________"
    }
  }
}

What effect should Mark specify to meet all the requirements: allow portal creation, ensure compliance reporting accuracy, and enforce the organization tag standard?

Choose the correct answer from the options below.

Explanations for each answer:

Learn More About Azure Policy Effects:
Azure Policy Effects
Next Question