0

I have an dotnet app which is running in azure app service and my data base is running on Azure Vm (IAAS), now i would like to access my application with SQL Server which is running on vm.

What is the recommended solution to achieve above, should i use private endpoint or service endpoint?

Nancy
  • 26,865
  • 3
  • 18
  • 34

1 Answers1

0

To allow your app service to access the database in the VM, you need to Integrate your app with an Azure virtual network. VNet Integration gives your app access to resources in your VNet, but it doesn't grant inbound private access to your app from the VNet. VNet Integration is used only to make outbound calls from your app into your VNet.

If you need to expose your app on a private IP in your virtual network. You could use Private Endpoints for Azure Web App.

More References:

Nancy
  • 26,865
  • 3
  • 18
  • 34
  • in this case how Hybrid connections work Nancy? – G.Prashanth Jan 07 '21 at 10:01
  • You can use hybrid connections to connect app service to the SQL server on Azure VM just like you connect it to on-premise SQL Server, refer to [this answer](https://stackoverflow.com/questions/54821962/connect-to-on-prem-sql-server-from-azure-web-app). In this case, you don't need VNet integration and private endpoint. Within App Service, Hybrid Connections can be used to access application resources in any network that can make outbound calls to Azure over port 443. – Nancy Jan 08 '21 at 07:58
  • Thank you nancy for the response. appreciate. – G.Prashanth Jan 08 '21 at 10:03
  • Do you still have any questions? – Nancy Jan 12 '21 at 01:48
  • No nancy i am good now. i have cleared my ambiguity. thq – G.Prashanth Jan 12 '21 at 06:05