Your company has an Azure environment with the following resource hierarchy:
* Tenant Root Group (Management Group)
* Finance-MG (Management Group)
* Sub-Finance (Subscription)
* RG-Core (Resource Group)
* RG-Archive (Resource Group)
* storarchive (Storage Account)
You need to grant permissions to a user named User1 to perform the following tasks:
1. Manage virtual machines located in RG-Core.
2. Configure Azure Backup for the virtual machines in RG-Core, which includes creating a new Recovery Services vault inside RG-Core.
3. Read and write blob data within the containers of the storarchive storage account.
You must follow the principle of least privilege.
Which role assignments should you configure?
- Assign the Contributor role at the RG-Core scope, and the Storage Blob Data Contributor role at the storarchive scope.Answer
- BAssign the Contributor role at the RG-Core scope, and the Contributor role at the RG-Archive scope.
- CAssign the Contributor role at the Sub-Finance scope.
- DAssign the Contributor role at the RG-Core scope, and the Microsoft Entra ID Global Reader role.
Answer
Assign the Contributor role at the RG-Core scope, and the Storage Blob Data Contributor role at the storarchive scope.
The correct configuration provides the exact permissions required by the user while strictly adhering to the principle of least privilege. Assigning the Contributor role at the RG-Core scope grants the user write permissions to create the Recovery Services vault and manage VMs within that resource group only. Assigning the Storage Blob Data Contributor role at the storarchive scope grants the data-plane access needed to read and write blobs without giving the user administrative rights over the entire RG-Archive resource group.
Step-by-Step Solution
Key Concept
Applying least privilege access by combining control-plane (Contributor) and data-plane (Storage Blob Data Contributor) roles at appropriate resource scopes.