Unable to access Azure Blob storage from Azure app service

Debashis Jena 71 Reputation points
2023-09-28T10:52:20.9233333+00:00

Hi,

We have an Azure app service which is present inside App gateway. While we're trying to download a file which is present inside Azure blob storage from app service, WAF is giving 403 forbidden error.

Please suggest how will we be able to access Azure blob storage from app service.

Azure Blob Storage
Azure Blob Storage
An Azure service that stores unstructured data in the cloud as blobs.
2,843 questions
Azure Web Application Firewall
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
7,758 questions
{count} votes

1 answer

Sort by: Most helpful
  1. brtrach-MSFT 16,346 Reputation points Microsoft Employee
    2023-10-03T23:51:22.7366667+00:00

    @Debashis Jena To allow your Azure App Service to access Azure Blob Storage, you need to enable a firewall exception on the VNet to allow connections from trusted Azure services.

    To configure the exception in the Azure portal for Azure Blob Storage, navigate to Networking > Firewalls and virtual networks. Then select Allow Azure services on the trusted services list to access this storage account.

    Also, make sure that your WAF is configured to allow traffic to and from Azure Blob Storage. You can deploy Azure Web Application Firewall (WAF) in front of public-facing web applications for additional inspection of incoming traffic. WAF provides centralized protection of your web applications from common exploits and vulnerabilities such as SQL injections, Cross-Site Scripting, local and remote file executions. You can also restrict access to your web applications by countries, IP address ranges, and other http(s) parameters via custom rules.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.