Your organization, Contoso Global Investments, uses an Azure Management Group hierarchy consisting of a Root Management Group (Root-MG), under which sit the Core-Services Management Group (Core-MG) and the Business-Line Management Group (Business-MG). Under Business-MG, you have two child management groups: Production (Prod-MG) and Development (Dev-MG). You need to design an Azure Policy governance strategy to meet the following compliance requirements:
1. All Azure Storage Accounts deployed within Business-MG and its descendants must only allow HTTPS traffic. Any deployment attempt of a storage account that allows HTTP traffic must be blocked.
2. All virtual machines deployed in Prod-MG must be configured for Azure Backup. If a virtual machine is deployed without a backup configuration, Azure must automatically deploy the backup association after the virtual machine is successfully created, without blocking the deployment itself.
3. To control costs, G-series virtual machines must be prohibited from being deployed anywhere under Root-MG, except for a single subscription named HPC-Prod-Sub under Prod-MG, which hosts a specialized risk analysis engine.
Which set of Azure Policy assignments and effects should you recommend to meet these requirements while minimizing administrative overhead?
- 1. Assign a policy with the Deny effect for storage account HTTPS enforcement at the Business-MG scope. 2. Assign a policy with the DeployIfNotExists effect for VM Backup at the Prod-MG scope. 3. Assign a policy with the Deny effect for G-series VMs at the Root-MG scope, with HPC-Prod-Sub specified in the notScopes assignment property.Answer
- B1. Assign a policy with the Deny effect for storage account HTTPS enforcement at the Business-MG scope. 2. Assign a policy with the Deny effect for VM Backup at the Prod-MG scope. 3. Assign a policy with the Deny effect for G-series VMs at the Root-MG scope, with HPC-Prod-Sub specified in the notScopes assignment property.
- C1. Assign a policy with the Modify effect for storage account HTTPS enforcement at the Business-MG scope. 2. Assign a policy with the DeployIfNotExists effect for VM Backup at the Prod-MG scope. 3. Assign a policy with the Deny effect for G-series VMs at the Core-MG, Prod-MG, and Dev-MG scopes individually, omitting HPC-Prod-Sub.
- D1. Assign a policy with the Deny effect for storage account HTTPS enforcement at the Business-MG scope. 2. Assign a policy with the DeployIfNotExists effect for VM Backup at the Prod-MG scope. 3. Assign a policy with the Deny effect for G-series VMs at the Root-MG scope, and write a custom automation runbook to delete G-series VMs in HPC-Prod-Sub.