A global organization has the following management group hierarchy: Tenant Root Group → Global-Root MG → [EMEA-MG, AMER-MG, APAC-MG]. Each regional MG contains multiple subscriptions. A new regulatory requirement mandates that ALL Azure Storage accounts across the ENTIRE organization must use HTTPS-only traffic (supportsHttpsTrafficOnly = true). The security team also wants to automatically remediate existing non-compliant storage accounts. Which policy effect and assignment scope combination achieves both goals with the LEAST administrative effort?
- A. Assign a policy with the 'DeployIfNotExists' effect at each individual subscription scope to cover all existing storage accounts.
- B. Assign a policy with the 'Modify' effect at the Tenant Root Group scope, with a managed identity granted the Storage Account Contributor role at the Tenant Root Group scope.✓ Correct
- C. Assign a policy with the 'Audit' effect at the Tenant Root Group scope, then manually update each non-compliant storage account.
- D. Assign a policy with the 'Deny' effect at the Tenant Root Group scope to block creation of non-compliant storage accounts, and separately run a script to remediate existing ones.
Explanation
The 'Modify' effect is specifically designed to add, update, or change properties on existing resources (such as enabling HTTPS-only), making it ideal for remediating non-compliant storage accounts automatically. Assigning it at the Tenant Root Group scope ensures it applies to all subscriptions in the entire hierarchy with a single assignment. The managed identity must have appropriate permissions (Storage Account Contributor) to perform modifications. Audit only reports non-compliance without remediation. Deny prevents new non-compliant resources but does not remediate existing ones — and using a separate script adds administrative effort. DeployIfNotExists is used to deploy related/child resources, not to modify a property on the resource itself; assigning it at each subscription scope also violates the least-effort requirement.