An enterprise company has an Azure environment with a management group structure consisting of a root management group named Contoso-MG and a child management group named Workloads-MG. You are designing an Azure Policy strategy to satisfy the following compliance requirements:
1. All Azure Key Vaults deployed in any subscription under Contoso-MG must have diagnostic settings automatically enabled to route all audit logs to a central Log Analytics workspace.
2. All Azure Storage accounts deployed in any subscription under Workloads-MG must have public network access blocked. Any attempt by administrators to deploy a storage account with public network access enabled must be prevented.
3. The public network access restriction for storage accounts must not apply to a specific resource group named dev-public-rg in the App-Sub-01 subscription under Workloads-MG.
You need to design the governance solution to meet these requirements with the least administrative effort.
Which two Azure Policy configurations should you include in your design? (Select TWO.)
- An Azure Policy definition assigned to the Contoso-MG management group scope using the DeployIfNotExists effect to configure Key Vault diagnostic settings.Answer
- An Azure Policy definition assigned to the Workloads-MG management group scope using the Deny effect to block public network access on storage accounts, with the dev-public-rg resource group scope added to the notScopes property.Answer
- CAn Azure Policy definition assigned to the Contoso-MG management group scope using the AuditIfNotExists effect to detect Key Vaults without diagnostic settings, combined with a daily Azure Automation runbook for remediation.
- DAn Azure Policy definition assigned to the Workloads-MG management group scope using the Modify effect to disable public network access during storage account deployment, and a Policy Exemption assigned at the subscription level.