简体   繁体   English

如何从Web应用程序内部的容器(两个资源都在同一VNet上)访问Azure VM的私有IP地址?

[英]How can I reach the private IP address of an Azure VM from the container which is inside a Web App (both of the resources are on the same VNet)?

In Azure I have the following resources: A VM and a Linux Web App for container. 在Azure中,我具有以下资源:容器的VM和Linux Web App。 After putting them on the same VNet, the started Container within the App Service can't communicate through private IP. 将它们放在同一VNet上后,App Service中启动的Container无法通过私有IP进行通信。

I wanted to include sshd for the container for debugging purposes, however I couldn't connect to the container after connecting the Web App to the VNet (that already has the VM on it). 我想将sshd包含在容器中以用于调试目的,但是将Web App连接到VNet(已​​经有VM)后,我无法连接到容器。

Sounds to me like you still need to configure VNET integration for your Web App? 在我看来,您仍然需要为Web App配置VNET集成吗? https://docs.microsoft.com/en-us/azure/app-service/web-sites-integrate-with-vnet And also read here a bit: Azure Web App for Containers networking VNET https://docs.microsoft.com/zh-cn/azure/app-service/web-sites-integrate-with-vnet还要在这里阅读一下: 用于容器网络VNET的Azure Web应用程序

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何从 Azure Linux Web 应用程序访问 VNET 内的 VM? - How to access VM inside VNET from a Azure Linux Web App? Azure 如何在 VNET 内部通过私有 IP 调用 Azure 私有终结点(Azure 私有链接服务) - Azure How can I call Azure Private Endpoint (Azure Private Link service) by private IP inside of VNET Azure 如何在 VNET 内部调用私有 IP 的内部 API 管理服务 - Azure How can I call internal API Management service by private IP inside VNET 如何通过驻留在同一 Vnet 中的应用服务从 azure VM 数据盘读取数据? - How to read data from azure VM data disk via app service which resides in same Vnet? 如何使用来自 Internet 的私有 IP 地址 SSH 到 Azure VM - How to ssh to Azure VM using private IP address from internet Azure应用服务(Web应用)如何通过私有IP访问其他VM? - How can Azure App Service (web app) access other VM via private IP? 您使用什么IP地址通过点对站点VNET集成从Web App连接到VM? - What ip address do you use to connect to a VM from a Web App through point-to-site VNET Integration? 如何将azure应用服务计划连接到vnet,该vnet也通过对等连接到另一个vnet - How can I connect an azure app service plan to a vnet which is also connected through peering to another vnet 如何将Azure Web角色的专用IP地址设置为静态? - How can I set the private IP address of an Azure web role as static? 如何使用 ARM 模板将 Azure VM 添加到现有 Vnet 或新 Vnet - How can I add Azure VM to existing Vnet or new Vnet using ARM template
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM