场景
我有一个已部署在 Azure 网站 中的 Azure Webjob,以及托管在云服务中的虚拟机MongoDB 数据库。 Azure Web 作业需要访问 MongoDB 集合
问题
可以将这个azure网站添加到云服务吗?这样做的原因是因为我想访问MongoDB服务,该服务只能在Web服务提供的内部局域网中使用。
或者也许我的 Azure 网站可以访问 MongoDB 的最佳方法是什么?
最佳答案
您可以Integrate your app with an Azure Virtual Network :
- 您创建了一个虚拟网络
- 您将应用程序与虚拟机连接。
The VNET Integration feature:
- requires a Standard or Premium pricing plan
- currently will only work with V1 or Classic VNETs
- supports TCP and UDP
- works with Web, Mobile and API apps
- enables an app to connect to only 1 VNET at a time
- enables up to 5 VNETs to be integrated with in an App Service Plan
- allows the same VNET to be used by multiple apps in an App Service Plan
- supports a 99.9% SLA due to a reliance on the VNET Gateway
There are some things that VNET Integration does not support including:
- mounting a drive
- AD integration
- NetBios
- private site access
关于Azure Webjob 与云服务中的虚拟机进行通信,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27390382/