An administrator is configuring an Azure App Service web app named app-corp to access private blobs in an Azure Storage account named storagecorp. The firewall settings of storagecorp are configured to 'Enabled from selected virtual networks and IP addresses'. The administrator enables a system-assigned managed identity for app-corp and assigns the 'Storage Blob Data Reader' role to the identity for the storage account. However, outbound connections from app-corp to storagecorp fail with a network access error. Which configuration should the administrator implement to allow app-corp to successfully access the blobs in storagecorp?
- Configure Regional VNet Integration for app-corp to connect to a subnet in a virtual network, and add that subnet to the allowed networks list of storagecorp.Answer
- BEnable the 'Allow trusted Microsoft services to access this storage account' exception on storagecorp.
- CCreate a Private DNS Zone named privatelink.blob.core.windows.net and link it to the App Service plan without configuring virtual network integration.
- DAssign the Reader role to the web app's system-assigned managed identity at the subscription level.
Answer
Configure Regional VNet Integration for app-corp to connect to a subnet in a virtual network, and add that subnet to the allowed networks list of storagecorp.
The correct configuration is to enable Regional VNet Integration on the App Service web app and then allow that integrated subnet on the storage account's firewall. Regional VNet Integration routes the outbound traffic from the App Service web app into the virtual network, allowing it to conform to network rules and be permitted by the storage account's firewalls.
Step-by-Step Solution
Key Concept
Azure App Service Regional VNet Integration and Storage Firewall configuration