An enterprise, VeloTransit, manages its Azure resources using a Management Group hierarchy. The root is Velo-Corp, which has two child management groups: Velo-Prod (for production workloads) and Velo-Dev (for development environments).
The security team establishes the following compliance requirements for Velo-Prod:
- All virtual machines must have the Azure Monitor Agent installed and configured with a specific Data Collection Rule (DCR) to collect security logs.
- Any non-compliant virtual machines must have the agent automatically deployed without administrative intervention.
- For a specific legacy subscription under Velo-Prod named Sub-LegacyProd, the automatic deployment of the agent must be deferred to prevent compatibility issues. However, the compliance status of virtual machines in Sub-LegacyProd must still be evaluated and reported.
You need to design an Azure Policy strategy that meets these requirements with the least administrative overhead.
Which of the following policy designs should you recommend?
- ACreate an Azure Policy definition with the DeployIfNotExists effect. Assign the policy to Velo-Prod and configure Sub-LegacyProd as an excluded scope (notScopes) in the assignment.
- Create an Azure Policy definition with a parameterized effect. Assign the policy to Velo-Prod with the effect parameter set to DeployIfNotExists, configuring Sub-LegacyProd as an excluded scope (notScopes) in the assignment. Create a second assignment of the same policy to Sub-LegacyProd with the effect parameter set to Audit.Cevap
- CCreate an Azure Policy definition with a parameterized effect. Assign the policy to Velo-Prod with the effect parameter set to DeployIfNotExists. Create a second assignment of the same policy to Sub-LegacyProd with the effect parameter set to Audit, which automatically overrides the parent assignment.
- DCreate an Azure Policy definition with the Deny effect. Assign the policy to Velo-Prod, and create an Azure Policy exemption for Sub-LegacyProd to allow virtual machine creation while triggering manual remediation tasks.