0
votes

Scenario:

  1. Azure Linux VM created inside VNET (with subnet)
  2. Oracle database created on the Linux VM
  3. Azure Linux Web App created outside the VNET

Query: How can my Linux Web App connect to the database on VM within VNET from outside and get a result set back? So both inbound and outbound from VNET point of view - only to the webapp.

Went through Azure docs about Private endpoint and VNET Integration but am still not sure whether these individually or together will be needed to make this work.

Thanks

1

1 Answers

0
votes

As I understand, you just need to connect your WebApp to Azure Linux VM with Oracle DB created inside VNET in secure way.

I would recommend you to integrate your WebApp with an existing Azure VNET with Azure Linux VM.

  1. In your WebApp go to "Networking" and then select "Click here to configure". enter image description here

  2. Select "Add VNet" and choose VNET with Azure Linux VM and then Subnet. enter image description here

  3. In the Configuration of your WebApp set Oracle connection string with private IP address of Azure Linux VM.

https://docs.microsoft.com/en-us/azure/app-service/web-sites-integrate-with-vnet#enable-vnet-integration