Home > Software design >  How to connect to a azure private storage account from a public azure static web app
How to connect to a azure private storage account from a public azure static web app

Time:01-16

I have a azure storage account with restricted access to VNet and there is a requirement to connect to it from a public facing azure static web app.

Is there any way to achieve this, I have already tried private endpoint for the static web app but that does not help as it makes my public app private and also my app is behind a front door and it does not support private endpoint for static web app.

CodePudding user response:

You can try the options listed below :-

Azure ExpressRoute: By using Azure ExpressRoute, you can create a private connection between your virtual network and Azure. This way, your static web app can access the storage account as if it were running on the VNet, even though it is public-facing.

Azure Private Link: Azure Private Link allows you to privately access Azure PaaS services over a private endpoint in your VNet. This means that your static web app can access the storage account using the private endpoint, without going over the public internet.

Here is a documentation for your reference :- https://learn.microsoft.com/en-us/azure/frontdoor/private-link

CodePudding user response:

Unfortunately this is not possible at this point in time. As you rightly mentioned, Private Endpoints won't help with your issue. You would need VNet Integration functionality so that Service Endpoints (not Private Endpoints - see here for the difference) can be leveraged but Azure Static Web Apps do not support this right now. See this GitHub Issue for a similar request.

If using Service Endpoints is hard requirement, then leveraging an App Service Plan with a traditional App Service might be an option but that would also have a potentially significant impact on costs.

  • Related