简体   繁体   English

Azure Web应用程序访问服务矩阵的虚拟网络

[英]Azure web app accessing service fabric's virtual network

I have a Service Fabric cluster hosting many legacy WCF services and I would like to connect an Azure App Service (running a website) to the fabric cluster's VNET, such that it can communicate with the WCF services in the cluster. 我有一个Service Fabric群集,该群集承载许多旧版WCF服务,并且我想将Azure App Service(运行网站)连接到Fabric群集的VNET,以便它可以与群集中的WCF服务进行通信。

I connected my fabric cluster's VNET to an existing virtual network of our organization using VNET peering and I can connect to the WCF services from VMs within the existing virtual network. 我使用VNET对等连接将结构群集的VNET连接到组织的现有虚拟网络,并且可以从现有虚拟网络中的VM连接到WCF服务。

However, when connecting from the app service, I got the following error: 但是,从应用程序服务连接时,出现以下错误:

Could not connect to net.tcp://10.0.0.250:8020/. 无法连接到net.tcp://10.0.0.250:8020 /。 The connection attempt lasted for a time span of 00:00:00. 连接尝试持续时间为00:00:00。 TCP error code 10013: An attempt was made to access a socket in a way forbidden by its access permissions 10.0.0.250:8020. TCP错误代码10013:尝试以其访问许可10.0.0.250:8020禁止的方式访问套接字。

I have configured an internal load balancer and its working ok if I connect from within the virtual network. 如果从虚拟网络内部连接,我已经配置了内部负载平衡器,并且可以正常工作。 Does anyone know why it doesn't work for the web app? 有谁知道为什么它不适用于网络应用程序?

If you want to access the resources in a VNet from Azure App Service, you could enable networking for app service . 如果要从Azure App Service访问VNet中的资源,则可以为 App Service 启用网络 Note that 注意

VNet Integration gives your web app access to resources in your virtual network but doesn't grant inbound private access to your web app from the virtual network. VNet Integration使您的Web应用程序可以访问虚拟网络中的资源,但不会授予从虚拟网络对Web应用程序的入站私有访问权限。 Private site access refers to making your app only accessible from a private network such as from within an Azure virtual network. 私有站点访问是指使您的应用程序只能从私有网络(例如从Azure虚拟网络内部)访问。 VNet Integration is only for making outbound calls from your app into your VNet. VNet集成仅用于从应用程序向VNet发出出站呼叫。

There are two versions of VNet integration, you could use Regional VNet Integration if service fabric's virtual network in the same region as your web app. VNet集成有两种版本,如果服务结构的虚拟网络与Web应用程序位于同一区域,则可以使用“区域VNet集成”。

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

相关问题 将Azure Web App连接到Service Fabric - Connecting Azure Web App to Service Fabric 从 azure 应用服务访问虚拟机上的服务 - Accessing service on a Virtual Machine from azure app service Azure 数据工厂:访问驻留在虚拟网络中的 Web 服务 - Azure Data Factory: Access web service residing in virtual network 附加到现有虚拟网络的Service Fabric群集 - Service Fabric Cluster attached to an existing Virtual Network 从其他Azure资源访问与虚拟网络集成的应用程序服务 - Access an App Service integrated with a Virtual Network from other Azure resources 将Angular模板Web应用添加到Azure Service Fabric群集吗? - Adding Angular Template Web App To Azure Service Fabric Cluster? Azure Service Fabric单个虚拟机 - Azure Service Fabric Single Virtual Machine 从虚拟网络访问Azure表 - Accessing Azure Tables from within a virtual network .NET核心Web API作为Azure应用程序服务上的虚拟应用程序 - .NET core web API as virtual application on Azure app service 我是否需要Azure API管理服务来限制Azure虚拟网络内的Web api端点? - Do I need Azure API Management service to restrict web api endpoints inside an Azure virtual network?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM