You are designing a governance strategy for a multi-subscription Azure environment. You have two management groups and subscriptions structured as follows:
- A management group named Production-MG contains two subscriptions: Subscription A and Subscription B.
- Subscription B contains a resource group named External-Connectivity-RG.
You need to implement Azure Policies to meet the following requirements:
1. Ensure all Azure Virtual Machines deployed in Subscription A automatically have the Azure Monitor Agent installed.
2. Prevent the deployment of public IP addresses in Subscription B, except within the External-Connectivity-RG resource group.
Which two policy configurations should you implement to meet the requirements with the least amount of administrative overhead? (Select TWO.)
- Assign a policy definition that deploys the Azure Monitor Agent using the DeployIfNotExists effect at the Subscription A scope.Cevap
- Assign a policy definition that blocks public IP creation using the Deny effect at the Subscription B scope, and add the External-Connectivity-RG resource group to the assignment's exclusion (notScopes) list.Cevap
- CAssign a policy definition that deploys the Azure Monitor Agent using the Deny effect at the Subscription A scope to block any VM deployments that do not include the agent.
- DAssign a policy definition that blocks public IP creation using the Audit effect at the Subscription B scope, and configure a scheduled task to manually delete public IPs outside of the External-Connectivity-RG resource group.