An organization has an Azure subscription containing a resource group named rg-resources. The resource group contains a storage account named stcontentprod, which has a blob container named assets. A user named Alex needs to view and download blobs in the assets container using the Azure portal. Alex is already assigned the Reader role for the rg-resources resource group. When Alex attempts to view the blobs in the container, the Azure portal displays an authorization error. You need to resolve the access issue while following the principle of least privilege. Which action should you perform?
- AAssign the Storage Account Contributor role to Alex scoped to the stcontentprod storage account
- BAssign the Reader role to Alex scoped to the assets container
- Assign the Storage Blob Data Reader role to Alex scoped to the assets containerAnswer
- DAssign the Storage Blob Data Contributor role to Alex scoped to the stcontentprod storage account
Answer
Assign the Storage Blob Data Reader role to Alex scoped to the assets container
Assigning the Storage Blob Data Reader role to the user scoped to the container is the correct approach. The Reader role at the resource group level grants the necessary control plane permissions to navigate to the storage account in the Azure portal. However, data plane access to read blobs requires a specific data plane role, such as Storage Blob Data Reader. Scoping this role to the specific container instead of the entire storage account enforces the principle of least privilege.
Step-by-Step Solution
Key Concept
Azure RBAC separation of control plane and data plane for Microsoft Entra ID authentication
Estimated Time:1m 30s