An administrator configures the network firewall of an Azure Storage account named stsecurityprod to restrict access to 'Selected networks'. The administrator adds a virtual network rule to allow access from a subnet named Subnet-App in a virtual network named VNet-Internal.
However, applications running on virtual machines within Subnet-App receive a 'NetworkAccessDenied' error when attempting to read blobs from stsecurityprod.
Which configuration is required to resolve this connectivity issue?
- ASelect the 'Allow trusted Microsoft services to access this storage account' checkbox on stsecurityprod.
- Enable the Microsoft.Storage service endpoint on Subnet-App.Cevap
- CAssign the Storage Blob Data Contributor role to the virtual machines' managed identities.
- DLink a Private DNS Zone named privatelink.blob.core.windows.net to VNet-Internal.
Cevap
Enable the Microsoft.Storage service endpoint on Subnet-App.
For virtual network firewall rules on an Azure Storage account to function, the source subnet must have the Microsoft.Storage service endpoint enabled. When enabled, traffic from virtual machines in that subnet is routed using private IP addresses over the Azure backbone network. If the service endpoint is not enabled, the traffic uses the virtual machines' public IP addresses (or NAT IPs), which are blocked by the storage account's firewall when configured for 'Selected networks'.
Adım Adım Çözüm
Anahtar Kavram
Azure Storage Virtual Network Rules and Service Endpoints