A financial enterprise manages its Azure resources across multiple production subscriptions using a root management group named Finance-Root. The compliance team mandates that all Azure storage accounts must enforce secure transfer (HTTPS traffic only). If a developer attempts to deploy a storage account with secure transfer disabled, the deployment must succeed, but Azure Policy must automatically enable secure transfer during resource creation. You need to design a governance solution that enforces this requirement with the least administrative effort. Which Azure Policy design should you recommend?
- AAn Azure Policy definition with the Deny effect assigned at the individual subscription level.
- An Azure Policy definition with the Modify effect assigned at the management group level.Answer
- CAn Azure Policy definition with the DeployIfNotExists effect assigned at the management group level.
- DAn Azure Policy definition with the Audit effect assigned at the resource group level, combined with a scheduled automation runbook.
Answer
An Azure Policy definition with the Modify effect assigned at the management group level.
The Modify effect allows Azure Policy to add or update properties of a resource during creation or update, enabling automatic remediation without blocking the deployment. Assigning it at the management group level applies the policy hierarchy-wide, minimizing administrative overhead.
Step-by-Step Solution
Key Concept
Using the Modify policy effect to alter resource properties during creation and assigning policies at the management group level to scale governance.