An organization needs to grant a third-party application read-only access to a specific private blob container named compliance-records in an Azure Storage account named corpdata104. The access configuration must meet the following requirements:
- Access must be limited to a maximum duration of 4 hours.
- Access must be restricted to the client IP address range 198.51.100.0/24.
- Only HTTPS connections are allowed.
- The security team mandates that storage account access keys must not be used or exposed to sign the token, ensuring all access is tied to and authorized by a specific Microsoft Entra ID identity.
Which configuration should you implement to meet these requirements?
- Assign the Storage Blob Delegator and Storage Blob Data Reader roles to the administrator, then generate a User Delegation SAS for the container that specifies the client IP range, HTTPS-only protocol, and a 4-hour expiration.Answer
- BAssign the Reader and Storage Blob Delegator roles to the administrator, then generate a User Delegation SAS for the container that specifies the client IP range, HTTPS-only protocol, and a 4-hour expiration.
- CCreate a Stored Access Policy on the container, then generate a Service SAS signed with the primary storage account key that specifies the client IP range, HTTPS-only protocol, and a 4-hour expiration.
- DGenerate a Service SAS signed with the primary storage account key, and disable the 'Allow trusted Microsoft services to access this storage account' setting in the storage firewall configuration.
Answer
Assign the Storage Blob Delegator and Storage Blob Data Reader roles to the administrator, then generate a User Delegation SAS for the container that specifies the client IP range, HTTPS-only protocol, and a 4-hour expiration.
To satisfy the security requirement of avoiding storage account access keys and ensuring access is tied to a specific Microsoft Entra ID identity, a User Delegation SAS must be generated. Generating a User Delegation SAS requires a User Delegation Key, which is acquired using Microsoft Entra ID credentials. The administrator generating the token must have the Storage Blob Delegator role to request the key, and the Storage Blob Data Reader role to delegate read permissions to the container. The SAS parameters then enforce the IP address range, HTTPS-only, and 4-hour expiration constraints.
Step-by-Step Solution
Key Concept
Generating a User Delegation SAS requires combining control plane delegation permissions (Storage Blob Delegator) with data plane access permissions (Storage Blob Data Reader) to authorize access via Microsoft Entra ID credentials instead of account keys.