简体   繁体   English

如何从部署在 Azure 应用服务中的 Web 应用使用在私有虚拟机中的 localhost:port 上运行的 Windows 服务?

[英]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.

相关问题 如何调度 Http Post Service 部署在 Azure App Service Web App from Z3A580F142203677F1F30BCF - How to Schedule Http Post Service deployed on Azure App Service Web App from Azure 从 azure 应用服务访问虚拟机上的服务 - Accessing service on a Virtual Machine from azure app service Windows Azure虚拟机和云服务Node.js应用程序部署 - Windows Azure Virtual Machine and cloud service nodejs app deploy 从Azure Web应用程序中使用soap Web服务 - Consume soap web service from Azure web app 如何为在非经典Azure虚拟机中的端口80上运行的Web应用程序配置自定义域名 - How to configure a custom domain name for web app running on port 80 in non-classic azure virtual machine Java web app not responding to HTTP requests when deployed to Azure App Service using Windows app service plan - Java web app not responding to HTTP requests when deployed to Azure App Service using Windows app service plan Azure中虚拟机和应用服务之间的Vnet - Vnet between Virtual Machine and App Service in Azure 如何在Azure中的特定虚拟机上创建应用程序服务? - How do i create app service on particular virtual machine in Azure? 如何调试部署在Azure App Service上的Web API? - How to debug Web API deployed on Azure App Service? Spring Boot App部署在Azure App Service端口8080 - Spring Boot App deployed on Azure App Service port 8080
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM