简体   繁体   English

无法将Azure Web App集成到Vnet

[英]Cannot integrate Azure Web App to Vnet

I have Web App and SQL Server VM on Vnet running on Azure. 我在Azure上运行的Vnet上有Web App和SQL Server VM。 I would like to integrate Web App to virtual network. 我想将Web App集成到虚拟网络。

I'm followings https://docs.microsoft.com/en-us/azure/app-service-web/web-sites-integrate-with-vnet#managing-the-vnet-integrations 我正在关注https://docs.microsoft.com/zh-CN/azure/app-service-web/web-sites-integrate-with-vnet#managing-the-vnet-integrations

1) I created gateway subnet and gateway. 1)我创建了网关子网和网关。

2) I opened "App Service->Networking->VNet integration->Setup->Virtual network is visible but it is gray! 2)我打开“应用程序服务->网络-> VNet集成->设置->虚拟网络可见,但它是灰色的!

What I need to do that I can connect Web App to Vnet? 我可以做些什么才能将Web App连接到Vnet?

There are multiple reasons that a VNet can be grayed out including: VNet可以显示为灰色的原因有很多,其中包括:

• the VNet is in another subscription that your account has access to •VNet在您的帐户有权访问的另一个订阅中

the VNet does not have Point to Site enabled VNet没有启用“指向站点”

• the VNet does not have a dynamic routing gateway •VNet没有动态路由网关

According to your steps, This issue may caused by that you might not configure a P2S address pool of your VPN gateway . 根据您的步骤,此问题可能是由于您可能未配置VPN网关的P2S地址池引起的。

I did a test in my lab, and finally I can integrate my Web App to the Vnet. 我在实验室进行了测试,最后可以将Web应用程序集成到Vnet。 You should to check these two point as following images: 您应该检查这两点,如下图所示:

Your VPN ponit-to-site configuration: 您的VPN站点到站点配置: p2s配置

Your VNet connected devices: 您的VNet连接的设备: 您的Vnet连接的设备

How to Enabling Point to Site in a Resource Manager VNet: 如何在Resource Manager VNet中启用指向站点的点:

To configure a Resource Manager VNet with a gateway and Point to Site, you can use either PowerShell as documented here, Configure a Point-to-Site connection to a virtual network using PowerShell or use the Azure portal as documented here, Configure a Point-to-Site connection to a VNet using the Azure portal . 要配置具有网关和指向站点的Resource Manager VNet,可以使用此处所述的PowerShell,使用PowerShell 配置与虚拟网络的点对点连接,或使用此处所述的Azure门户, 配置点-使用Azure门户到VNet的站点到站点连接 The UI to perform this capability is not yet available. 执行此功能的UI尚不可用。 Note that you need to create certificates for the Point to Site configuration. 请注意,您需要为“指向站点”配置创建证书。 This is automatically configured when you connect your WebApp to the VNet. 当您将WebApp连接到VNet时,将自动对其进行配置。

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM