azure - 如何将多个 Web 应用程序添加到单个网络中,以便连接到一个 Web 应用程序的 vnet 也可以访问其他 Web 应用程序

标签 azure azure-virtual-network vnet

目的: 我正在破解我的前同事在 Azure 中完成的 2 年实现。我不确定如何让 3 个不同的 Web 应用程序使用 3 个唯一的 DNS 服务器。

我需要实现什么目标:

我在 Azure 中有一个虚拟网络,我已将 DNS 服务器指定为自定义(我已在 VM DNS 设置中添加了 IP)。我还在同一个应用程序服务器下有 3 个网络应用程序。现在我已通过网络设置将 VNet 连接到 web-app-1。

我还需要将 web-app-2 和 web-app-3 链接到 Vnet。

我需要实现的目标: 是否可以使 web-app-2 和 web-app-3 访问 Vnet,而不直接将该 VNet 添加到这些 Web 应用程序?有没有办法让 web-app-2 和 web-app-3 与已经连接到 Vnet 的 web-app-1 链接?或者只能通过网络将 vnet 连接到所有网络应用程序?

最佳答案

您可以通过混合连接将应用 2 和 3(或所有应用)连接到 vNET(或本地网络)上的虚拟机。这样,应用程序就可以访问与虚拟机位于同一网络上的资源,因为虚拟机成为代理。

https://learn.microsoft.com/en-us/azure/app-service/app-service-hybrid-connections

Within App Service, Hybrid Connections can be used to access application resources in other networks. It provides access from your app to an application endpoint. It does not enable an alternate capability to access your application. As used in App Service, each Hybrid Connection correlates to a single TCP host and port combination. This means that the Hybrid Connection endpoint can be on any operating system and any application, provided you are accessing a TCP listening port.

关于azure - 如何将多个 Web 应用程序添加到单个网络中,以便连接到一个 Web 应用程序的 vnet 也可以访问其他 Web 应用程序,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54266248/

相关文章:

Azure kubernetes 服务创建问题

azure - 流量管理器权重路由方法似乎效果不太好

Azure 防火墙 : Most common Azure Firewall Policy Rule Collection Rules

Azure VNET 子网委派

Azure NSG 专用 IP 配置(白名单)Vnet 到 Vnet 通信

Azure 页面重新加载时出现 Angular 网站问题

azure - 我今天可以做出哪些设计决策,以便以后更轻松地迁移到 Azure 和 Azure 表?

azure - 使用 VPN 连接到 Azure SQL 数据库(点到站点)

azure - Cloud Foundry cli 命令失败 "Error performing request: lame referral"

Azure-AKS:使用 Postman 测试启用了 TLS 的 Ingress