Soru

Zorluk: ZorAzure Policy Governance

Vortex Media is designing a governance and compliance strategy for its Azure environment. The resources are organized under a management group hierarchy. The company has the following key compliance requirements:

1. All virtual machines deployed in the production subscriptions must have the Azure Monitor agent installed and configured automatically during deployment.
2. In the development subscriptions, if a virtual machine is deployed without the Azure Monitor agent, it should be allowed to deploy but must be flagged as non-compliant for auditing purposes.
3. No resource groups in any subscription should be created without a 'CostCenter' tag. If the tag is missing, the deployment must be blocked. However, an exception must be made for the 'Sandbox-Subscriptions' management group, where tags are not enforced.

You need to recommend the Azure Policy design to meet these requirements with minimal administrative overhead. Which of the following recommendations should you include in the design? (Select TWO options.)

  1. Assign an Azure Policy with the DeployIfNotExists effect at the production management group scope to automatically deploy the Azure Monitor agent on virtual machines.Cevap
  2. Assign an Azure Policy with the Deny effect to enforce the 'CostCenter' tag on resource groups at the root management group scope, and configure the 'Sandbox-Subscriptions' management group as an excluded scope (notScopes) in the policy assignment.Cevap
  3. C
    Assign an Azure Policy with the Deny effect at the production management group scope to block the deployment of virtual machines that do not have the Azure Monitor agent.
  4. D
    Assign an Azure Policy with the Modify effect at the development subscriptions scope to block virtual machines that do not have the Azure Monitor agent.
  5. E
    Create individual Policy Exemptions for each resource group created in the Sandbox-Subscriptions management group to bypass the tag enforcement policy.

Cevap

Assign an Azure Policy with the DeployIfNotExists effect at the production management group scope to automatically deploy the Azure Monitor agent, and assign a Deny policy for tag enforcement at the root management group scope while adding the Sandbox-Subscriptions management group to the assignment's excluded scopes (notScopes).
The correct recommendations involve using the DeployIfNotExists effect to automatically install the Azure Monitor agent on production virtual machines, and using the Deny effect at the root management group scope to block resource group creation without a 'CostCenter' tag, while excluding the Sandbox-Subscriptions management group using the notScopes property to minimize administrative overhead.

Adım Adım Çözüm

1
Analyze the automatic agent installation requirement for production VMs.
Determine that DeployIfNotExists is the correct effect because it evaluates the resource and automatically runs a template deployment to install the agent if it is missing.
The requirement asks for automatic installation/remediation, which is the primary use case for DeployIfNotExists.
2
Analyze the tagging requirement with exceptions.
Determine that the Deny effect is appropriate to block resource group creation if the 'CostCenter' tag is missing, and notScopes is the most efficient way to exclude the entire Sandbox-Subscriptions management group.
Using notScopes at the policy assignment level avoids evaluation overhead and eliminates the need to manage individual exemptions.

Anahtar Kavram

Azure Policy effects and assignment scope exclusions
Bu soruyu puanla