Health Probe Configuration for Azure Storage Account Behind Azure Application Gateway

Wicki, Sandro 25 Reputation points
2025-03-27T09:21:40.65+00:00

In a scenario where Azure Storage Accounts are behind an Azure Application Gateway with WAFv2, the public network access of the storage account is disabled, and it has a private endpoint. Anonymous access and SAS tokens are also disabled on the storage account.

What options are available in the Azure Application Gateway to configure a Health Probe for Azure Storage Accounts that returns a proper HTTP 2xx response code in this setup?

Azure Application Gateway
Azure Application Gateway
An Azure service that provides a platform-managed, scalable, and highly available application delivery controller as a service.
1,172 questions
{count} votes

Accepted answer
  1. Alex Burlachenko 4,310 Reputation points
    2025-03-27T10:40:52.5733333+00:00

    Hi Wicki,

    Nice question! And thx for asking it here at Q&A portal.

    So, in general u have two main options to configure a working health probe in Application Gateway

    First one is authenticated probe to blob service root (/)

    The storage account returns 200 OK on GET / if reachable. Authentication required to use managed identity (best one) or a storage key.

    As well you should enable system-assigned managed identity on the App Gateway. Grant it the "Storage Blob Data Reader" role on the storage account.

    Configure the probe with

    • Host: [storage-name].blob.core.windows.net
    • Path: /
    • Custom Hostname: Enabled

    Second way is static website endpoint (if its enabled of coz) it is more simple but less secure (depends of what u would like :). If static websites are enabled, /$web/index.html can return 200 OK without auth (if network-restricted). Requires enabling static websites thas may not fit all scenarios.

    Below links to some sutiable docs which is allow to clear understanding issue

    Best regards,

    Alex

    P.S. If my answer help to you, please Accept my answer

    1 person found this answer helpful.

1 additional answer

Sort by: Most helpful
  1. Ganesh Patapati 5,440 Reputation points Microsoft External Staff
    2025-03-27T18:13:32.79+00:00

    Hello Wicki, Sandro

    In addition to the above Alex Burlachenko response, I have recreated the scenario in my lab and observed 200 OK responses from the backend storage account with the private link enabled and public access, Anonymous access and SAS token disabled.

    For the private connectivity test for the storage account, we created a test VM on the same storage account and app gateway VNet, and it is resolving to a private IP.

    User's image

    Application gateway 200 Ok received

    User's image


    Please do consider to “up-vote” and "Accept the answer" wherever the information provided helps you, this can be beneficial to other community members.


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.