antoniogbn
antoniogbn

Reputation: 57

Does webapps integrates with existing VMs on Azure?

I have an existing linux VM on Azure that has PHP + MySql legacy system running on it

I also have a Flask Webapp running under same Azure subscription

is it possible to the Python WebApp reach the existing MySql database running on Linux VM using the existing internal network ?

AB

Upvotes: 0

Views: 56

Answers (1)

Nancy Xiong
Nancy Xiong

Reputation: 28294

It seems that you want to access MySql database on the Azure VM from Azure web app hosted in azure app service. If so, it's possible to integrate your app with an Azure Virtual Network.

You could have a quick start in that document, just note that there are two forms to the VNet Integration feature:

  • Reginal VNet integration. One version enables integration with VNets in the same region. Currently, this feature is still in preview but is supported for Windows app production workloads and Linux Web App for development and integration testing purposes. Read more details here.
  • Gateway required VNet Integration. The other version enables integration with VNets in other regions or with Classic VNets. This version requires the deployment of a Virtual Network Gateway into your VNet. It is only supported by Windows apps.

Additionally, Since VNet Integration is extended to use Azure container instance. For Linux web app, you could deploy it on Azure container instance in a VNet. See the template. This feature is currently in preview and you could know some limitations about deploying container instances into an Azure virtual network.

If your web app is hosting on other Azure services like Azure VM, you could use VNet to VNet connection or VNet peering or VPN connection to enable the communication between the two different virtual networks. Read more details here.

Hope this could help you.

Upvotes: 0

Related Questions