[英]How to consume a windows service running on localhost:port in a private virtual machine from a web app deployed in azure app service?
I have tried the VNet Integration in the App service and what will be the ip address for connecting to the service in the vm from the web app deployed in the app service.我已经尝试了应用服务中的 VNet 集成,以及从应用服务中部署的 Web 应用连接到 vm 中服务的 IP 地址是什么。
suppose the ip of the vm is xxxx and the service is running at port no abc of localhost so accessing the service form the vm is using localhost:abc假设 vm 的 ip 是 xxxx 并且服务在 localhost 的 no abc 端口上运行,因此从 vm 访问服务是使用 localhost:abc
So, how can i access this service in an app service.那么,我如何在应用服务中访问此服务。
Assuming the app service is connected(VNet Integration) to VNet1-Subnet1.假设应用服务已连接(VNet 集成)到 VNet1-Subnet1。 And the VM with private IP abcd that is hosting the windows service available on port x is hosted on VNet2-Subnet2.
并且在端口 x 上托管 Windows 服务的具有私有 IP abcd 的 VM 托管在 VNet2-Subnet2 上。 Ensure the connectivity(VNet peering/NSG/OS firewall) exists between two entities(app service and VM) using TCPPING 'abcd:x'.
使用 TCPPING 'abcd:x' 确保两个实体(应用服务和 VM)之间存在连接(VNet 对等/NSG/OS 防火墙)。 You could use the same 'abcd:x' to connect to windows service from App service.
您可以使用相同的 'abcd:x' 从 App 服务连接到 Windows 服务。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.