An administrator needs to configure secure access to a blob container named confidential in an Azure Storage account named corpstore104 for an external partner application. The solution must meet the following requirements:
- The partner application must only be allowed to read and list blobs in the container.
- Access must be granted for a maximum of 8 hours.
- Access must be restricted to the partner application's public IP address range of using HTTPS only.
- In accordance with the least-privilege security policy, access must be authorized using a Microsoft Entra ID security principal rather than the storage account's shared access keys.
Which two actions should the administrator perform?
- Assign the Storage Blob Data Reader and Storage Blob Data Delegator roles to the Microsoft Entra ID security principal at the storage account level.Cevap
- Generate a User Delegation SAS token using the credentials of the security principal, specifying the HTTPS protocol, the IP range , and read/list permissions.Cevap
- CAssign the Owner or Contributor role to the Microsoft Entra ID security principal at the resource group level to grant administrative control over the storage account data plane.
- DGenerate an Account SAS token from the Azure portal using the storage account access keys, setting the expiration to 8 hours and restricting access to the specified IP range.
- ECreate a stored access policy on the blob container, and then generate a Service SAS token using the storage account access keys without specifying an expiration time.
Cevap
Assign the Storage Blob Data Reader and Storage Blob Data Delegator roles to the Microsoft Entra ID security principal at the storage account level, and generate a User Delegation SAS token using the credentials of the security principal, specifying the HTTPS protocol, the IP range , and read/list permissions.
To satisfy the requirement of using a Microsoft Entra ID security principal rather than access keys, a User Delegation SAS must be used. Generating this type of SAS requires two main parts: first, the security principal must be assigned the Storage Blob Data Delegator role to retrieve the user delegation key, and the Storage Blob Data Reader role to allow data-plane read operations on the container. Second, the SAS token itself must be generated using these Entra ID credentials while enforcing the HTTPS, IP range, and read/list permissions constraints.
Adım Adım Çözüm
Anahtar Kavram
Configuring secure container access via User Delegation SAS signed by a Microsoft Entra ID principal.