An organization has an Azure Storage account named corpstorage that contains a blob container named auditlogs. The storage account network firewall is enabled and configured to allow access only from selected networks.
An external auditing application, running on an on-premises server with the public IP address 198.51.100.45, requires read-only access to the auditlogs container for a period of 90 days. The external application does not support Microsoft Entra ID authentication.
You need to configure access for the auditing application to meet the following requirements:
1. The application must only be allowed to access blobs within the auditlogs container.
2. Access must be limited to HTTPS traffic originating from the server's public IP address.
3. You must be able to revoke the access token immediately at any time during the 90-day period without affecting other clients or rotating the storage account access keys.
4. The configuration must follow the principle of least privilege.
Which configuration should you implement?
- AGenerate a Service SAS directly on the auditlogs container with an expiration of 90 days, specifying HTTPS-only and the allowed IP address 198.51.100.45. Add 198.51.100.45 to the firewall rules of the storage account.
- BGenerate an Account SAS for the storage account with read permissions, setting the validity to 90 days, specifying HTTPS-only and the allowed IP address 198.51.100.45. Enable 'Allow trusted Microsoft services to access this storage account' in the storage account firewall settings.
- Create a stored access policy on the auditlogs container. Generate a Service SAS for the container that references this policy, specifying HTTPS-only and the allowed IP address 198.51.100.45. Add 198.51.100.45 to the firewall rules of the storage account.Answer
- DAssign the Storage Blob Data Reader role to the auditing application's identity at the storage account scope. Enable 'Allow trusted Microsoft services to access this storage account' in the storage account firewall settings, and generate a User Delegation SAS.