Is there a way to establish a connection from Azure Web App to Azure SQL Database in another region "privately", that is without having to leave database open to the public.
Specifically, I would like my database to have the following firewall options set on the database:
- "Deny public network access" - YES
- "Allow Azure services and resources to access this server" - NO
What I have tried unsuccessfully (it is possible that I got something wrong in my setup):
- VNET-VNET peering - allows cross region VNET connection but does not seem to work for Web App
- SQL Database Private Endpoint - Endpoint was created in VNET hosted in the same region as Web App.
Update: Tried to follow instructions in Azure Global VNet peering and WebApps but I am not sure what VNET should gateways be created in? Create a gateway first in the remote network then checked "App Service Plan" blade, then created Gateway in the Web App VNET, still no luck.
In the "App Service Plan" blade, all of the gateway related settings are greyed out and gateway status is "N/A". "Sync Network" button is greyed out.