To enforce security standards, a company assigns an Azure Policy definition that blocks the deployment of public IP addresses to a management group named `MG-Corp`. A project team needs to deploy a public IP address inside a resource group named `RG-App1` within a subscription that is a child of `MG-Corp`. Which action should the administrator perform to allow this deployment while keeping the policy enforced for all other resources under the management group?
- AAssign a policy definition with the 'Audit' effect directly to the `RG-App1` resource group.
- BAssign a policy definition with the 'Disabled' effect directly to the `RG-App1` resource group.
- Add the `RG-App1` resource group to the excluded scopes list of the policy assignment at the `MG-Corp` level.Cevap
- DAssign the Policy Contributor role to the project team's identity at the `RG-App1` scope.
Cevap
Add the resource group to the excluded scopes list of the policy assignment at the management group level.
The correct action is to add the resource group to the excluded scopes list of the policy assignment at the management group level. Azure Policy assignments support exclusions, which allow specific resource groups, subscriptions, or resources to be bypassed during policy evaluation. This permits the project team to deploy public IP addresses within the resource group without affecting the enforcement of the policy on other resources in the management group.
Adım Adım Çözüm
Anahtar Kavram
Azure Policy scope inheritance and exclusions