Your organization's Azure environment features the following resource hierarchy:
- Tenant Root Group (Management Group)
- IT-MG (Management Group)
- Production-Sub (Subscription)
- App-RG (Resource Group)
You configure a system-assigned managed identity for an Azure App Service instance inside App-RG. You need to grant this managed identity the ability to view the configuration of all resources within App-RG. The identity must not be allowed to modify any resource configurations or change role assignments.
Which Azure role and scope should you assign to the managed identity to meet these requirements while adhering to the principle of least privilege?
- Assign the Reader role at the App-RG scope.Cevap
- BAssign the User Administrator directory role in Microsoft Entra ID.
- CAssign the Reader role at the Tenant Root Group scope, and configure a Deny assignment for write operations at the App-RG scope.
- DAssign the Storage Blob Data Reader role at the App-RG scope.
Cevap
Assign the Reader role at the App-RG scope.
Assigning the Reader role at the resource group scope (App-RG) is correct because it grants read-only access to all resources in that specific resource group, satisfying the requirement to view resource configurations without permitting modifications, while adhering to the principle of least privilege.
Adım Adım Çözüm
Anahtar Kavram
Azure RBAC scopes and built-in roles application