The IT infrastructure of your company is organized under the following Azure resource structure:
- Tenant Root Group (Management Group)
- MG-Production (Management Group)
- Sub-Analytics (Subscription)
- RG-DataStore (Resource Group)
- storagedata1 (Storage Account)
You need to grant access to a user named Liam. Liam must be able to perform the following tasks:
1. Read blob data inside the containers of storagedata1.
2. Configure diagnostic settings on storagedata1 to stream resource logs to a Log Analytics workspace.
The solution must follow the principle of least privilege.
Which two roles should you assign to Liam?
- Storage Blob Data Reader assigned at the storagedata1 scopeAnswer
- Monitoring Contributor assigned at the storagedata1 scopeAnswer
- CStorage Account Contributor assigned at the RG-DataStore scope
- DSecurity Administrator assigned at the Sub-Analytics scope
Answer
Storage Blob Data Reader assigned at the storagedata1 scope and Monitoring Contributor assigned at the storagedata1 scope
To satisfy the requirements with least privilege, two distinct roles must be assigned at the storage account level. Reading blob data requires a data-plane role, and Storage Blob Data Reader is the least privileged role for this. Configuring diagnostic settings requires writing to the diagnostic settings path, which is a control-plane action covered by the Monitoring Contributor role. Assigning both roles at the storagedata1 scope ensures the user has exactly the permissions needed without access to other resources.
Step-by-Step Solution
Key Concept
Azure RBAC separates control-plane management (such as configuring monitoring) from data-plane access (such as reading blobs). A combination of specific built-in roles assigned at the narrowest possible scope is required to meet the requirements under least privilege.
Estimated Time:2m 0s