An enterprise manages its Azure resources using a management group structure. Under the root management group, there is a parent management group named Corp-MG, which has two child management groups named Corp-Prod-MG and Corp-Dev-MG.
You are designing an Azure Policy governance solution to meet the following requirements:
1. All virtual machines deployed to Corp-Prod-MG must have the Azure Monitor Agent extension automatically installed.
2. All Azure Storage accounts deployed to Corp-Dev-MG must have public network access disabled. Any attempts to deploy a storage account with public network access enabled must be blocked, except for resources deployed within a specific resource group named Dev-Sandbox-RG.
You need to configure the policies to enforce these compliance requirements while minimizing administrative overhead.
Which two configuration actions should you include in the design? (Select TWO.)
- Assign an Azure Policy with the DeployIfNotExists effect at the Corp-Prod-MG scope to install the Azure Monitor Agent extension on virtual machines.Cevap
- Assign an Azure Policy with the Deny effect at the Corp-Dev-MG scope, and configure the Dev-Sandbox-RG resource group ID in the notScopes property of the policy assignment.Cevap
- CAssign an Azure Policy with the Modify effect at the Corp-Prod-MG scope to deploy the Azure Monitor Agent extension on virtual machines.
- DAssign an Azure Policy with the Audit effect at the Corp-Dev-MG scope, and implement an Azure Automation runbook to delete non-compliant storage accounts.