An administrator is configuring network access for an Azure Storage account named safinanceprod.
The storage account's firewall is configured to restrict access to selected virtual networks. The administrator adds a virtual network named vnetprod and its subnet named subnetapps to the allowed networks list of the storage account.
However, virtual machines in subnetapps are still blocked when attempting to access the storage account.
Which configuration change must be applied to subnetapps to allow the virtual machines to access the storage account?
- Enable the Microsoft.Storage service endpoint on the subnet.Answer
- BAssign the Storage Blob Data Reader RBAC role to the virtual machines' managed identities.
- CEnable the 'Allow trusted Microsoft services to access this storage account' setting on the storage account.
- DAdd a high-priority outbound Network Security Group rule allowing traffic to the Storage service tag.
Answer
Enable the Microsoft.Storage service endpoint on the subnet.
The correct action is to enable the Microsoft.Storage service endpoint on the subnet. When a storage account firewall is configured to restrict access to selected virtual networks, it will only accept traffic from subnets that have been explicitly added to its configuration. However, for the storage account to recognize that the traffic is coming from the allowed subnet, the subnet itself must have the service endpoint enabled. This endpoint ensures that traffic is routed over the Azure backbone network and carries the virtual network identity.
Step-by-Step Solution
Key Concept
Azure Virtual Network service endpoints extend your virtual network private address space and the identity of your VNet to Azure service endpoints over a direct connection.
Estimated Time:1m 30s