简体   繁体   中英

Azure VNET - Accessing VNET Resources from WebApp

I have deployed a VNET on Azure. I have also set up a Point-to-Site connection following this tutorial. I need 3 things on this Network.

  1. VM Instance for MongoDB Docker.
  2. WebApp API(ExpressJS) which should treat (1) as local address
  3. Connect my Local machine to VNET to manage my VM Instance

I managed to deploy (1)

I successfully connect my machine (3) to the VPN and can access (1) on local IP 10.1.0.5:PORT using Mongo DB Management tool.

For WebApp API (2). I have followed all the necessary steps mentioned here . And Azure Portal show that the App is connected properly.

Azure WebApp截图

According to this video I should be able to connect the VM (1) . However I cannot access the local resources from the WebApp API (2).

My Connection String for WebApp API(2) is of the following format:

mongodb://[username]:[password]@10.1.0.5:[port]/[db-name]

What can be the possible reason?

since this seems to be specific to your setup, I would recommend reaching out to support so the support team can do a thorough investigation.

-- Anavi N [MSFT]

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM