Azure Webjob 与云服务中的虚拟机进行通信

标签 azure azure-webjobs azure-cloud-services

场景

我有一个已部署在 Azure 网站 中的 Azure Webjob,以及托管在云服务中的虚拟机MongoDB 数据库。 Azure Web 作业需要访问 MongoDB 集合

问题

可以将这个azure网站添加到云服务吗?这样做的原因是因为我想访问MongoDB服务,该服务只能在Web服务提供的内部局域网中使用。

或者也许我的 Azure 网站可以访问 MongoDB 的最佳方法是什么?

最佳答案

您可以Integrate your app with an Azure Virtual Network :

  1. 您创建了一个虚拟网络
  2. 您将应用程序与虚拟机连接。

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/

相关文章:

Azure webjob - QueueTrigger 停止触发

azure - 如何让 New-AzureADPolicy 在 azure cloud shell 中工作

c# - 确定 Azure Web 角色的实例 IP 地址

Azure云服务磁盘空间不足

c# - Azure Functions V4 .NET 7 以编程方式获取默认/主 key

azure - 在 Azure WebJob 中使用 Akka.net Ask 超时

linux - 克隆 Azure Linux 虚拟机

azure - Azure Web 作业中的 X509CertificateCollection 问题

javascript - 使用 CSV 批量上传到 Azure 存储

powershell - 使用 powershell -> LoaderException 从 Azure 存储下载 blob