HOTSPOT - Your company has an Azure subscription. The company requires that all resource groups in the subscription have a tag named organization set to a value of Contoso. You need to implement a policy to meet the tagging requirement. How should you complete the policy? To answer, select the appropriate options in the answer area. NOTE: Each correct selection is worth one point. Hot Area:Â Suggested Answer:
Box 1: " Microsoft.Resources/subscriptions/resourceGroups" Box 2: "Deny", Sample - Enforce tag and its value on resource groups }, "policyRule": { "if": { "allOf": [ { "field": "type", "equals": "Microsoft.Resources/subscriptions/resourceGroups" }, { "not": { "field": "[concat('tags[',parameters('tagName'), ']')]", "equals": "[parameters('tagValue')]" } } ] }, "then": { "effect": "deny" } } } } Reference: https://docs.microsoft.com/en-us/azure/governance/policy/samples/enforce-tag-on-resource-groups This question is in AZ-400 Exam For getting Microsoft DevOps Engineer Expert Certificate Disclaimers: The website is not related to, affiliated with, endorsed or authorized by Microsoft. The website does not contain actual questions and answers from Microsoft's Certification Exams. Trademarks, certification & product names are used for reference only and belong to Microsoft.
Please login or Register to submit your answer