An organization has the following Azure resource hierarchy:
* A Management Group named MG-Production
* An Azure subscription named Sub-App1 under MG-Production
* A Resource Group named RG-Data within Sub-App1
The administrator wants to ensure that all Azure Storage Accounts created within the hierarchy are configured to block public blob access. If a storage account is deployed with public access enabled, it must be automatically remediated by setting the property to disabled, without blocking the resource creation.
Which assignment scope and policy effect should the administrator use to meet these requirements?
- Assign the policy to MG-Production and use the Modify effect.Cevap
- BAssign the policy to MG-Production and use the Deny effect.
- CAssign the policy to RG-Data and use the Audit effect.
- DAssign the policy to Sub-App1 and use the Append effect.
Cevap
Assign the policy to MG-Production and use the Modify effect.
Assigning the policy to the management group MG-Production ensures it applies to all subscriptions and resource groups under it, including Sub-App1 and RG-Data. The Modify effect is used to add, update, or remove properties or tags during resource creation or update, enabling automatic remediation without blocking the deployment.
Adım Adım Çözüm
Anahtar Kavram
Azure Policy Scope and Effects