An organization named CloudVibe is designing a governance strategy for its Azure subscriptions. The subscriptions are organized under a single management group named CloudVibe-MG.
The organization has the following compliance and security requirements:
- Automatically enable Azure Backup for all new virtual machines deployed to the production subscription. If a virtual machine is deployed without a backup configuration, the backup must be configured automatically without manual intervention.
- Prevent developers from creating public IP addresses in the development subscription.
You need to recommend the Azure Policy configurations to meet these requirements.
Which two policy configurations should you include in the design?
- An Azure Policy assignment at the production subscription scope using a policy definition with the DeployIfNotExists effect to enable backup.Cevap
- BAn Azure Policy assignment at the production subscription scope using a policy definition with the Modify effect to enable backup.
- An Azure Policy assignment at the development subscription scope using a policy definition with the Deny effect to block public IP addresses.Cevap
- DAn Azure Policy assignment at the development subscription scope using a policy definition with the Audit effect to flag public IP addresses.
Cevap
The correct configurations are to assign a policy definition with the DeployIfNotExists effect to the production subscription to enable backup, and to assign a policy definition with the Deny effect to the development subscription to block public IP addresses.
The correct answer combines DeployIfNotExists for automated backup deployment and Deny to block the creation of public IP addresses. DeployIfNotExists evaluates a resource and deploys a template (like a backup association) if it is missing, satisfying the first requirement. The Deny effect blocks the creation or update of resources that do not match the policy criteria, satisfying the second requirement to prevent public IP address creation in the development subscription.
Adım Adım Çözüm
Anahtar Kavram
Azure Policy effects (DeployIfNotExists and Deny) are used to enforce compliance by automatically remediating missing configurations or blocking the creation of prohibited resources.