You are configuring security for an application that must retrieve log files from a blob container within an Azure Storage account named applogs. The application service principal requires read access to the logs using Microsoft Entra ID authentication, but must not be allowed to modify the blobs or manage the storage account metadata. Which built-in Azure role-based access control (RBAC) role is the most appropriate to assign to the service principal?
- AReader
- BGlobal Reader
- Storage Blob Data ReaderAnswer
- DStorage Account Contributor
Answer
Storage Blob Data Reader
The correct role is Storage Blob Data Reader because it grants read-only data plane access to Azure Blob storage containers, allowing the service principal to authenticate via Microsoft Entra ID and retrieve log files without modifying data or settings.
Step-by-Step Solution
Key Concept
Separation of control plane and data plane permissions for Azure Storage using Microsoft Entra ID authentication