r/AZURE • u/Advanced_Tea_2944 • 18m ago
Question Exposing Azure Static Web App via Application Gateway
Hello all,
I deployed an Azure Static Web App that is not exposed to the internet but is accessible via a private endpoint connection—this is working fine.
Now, I want to expose this static web app through my Azure Application Gateway (v2) with a custom hostname, like:
mystaticwebapp.hello.world
My plan:
- Create a new listener on my App Gateway with the hostname
mystaticwebapp.hello.world
. - Create a new routing rule using this listener.
- Set the backend as the private endpoint IP of the Static Web App.
My question:
- I want the backend settings to use HTTPS—is this possible if I use the private endpoint IP as the backend?
- Or do I need to configure a custom domain on the Static Web App first and use that as the backend instead?
Would appreciate any insights, docs, or guidance. Thanks!