简体   繁体   English

Azure中虚拟机和应用服务之间的Vnet

[英]Vnet between Virtual Machine and App Service in Azure

I cannot figure out how to connect a Web App ( App Service ) to a Virtual Machine in Azure. 我无法弄清楚如何将Web App( App Service )连接到Azure中的虚拟机 I've create a VNet from the Web App configuration panel. 我从Web App配置面板创建了一个VNet。

All items are created using the Resource Management model, are in the same subscription and are at least of the Standard pricing tier. 所有项目均使用资源管理模型创建,属于同一订阅且至少为标准定价层。

Apparently a Web App cannot be connected to a V2 VNet. 显然,Web App无法连接到V2 VNet。 (Looks like these terms are used interchangeably, or is it something different). (看起来这些术语可以互换使用,或者它是不同的东西)。

I've create a classic Vnet (V1?). 我创建了一个经典的Vnet(V1?)。 But I cannot seem to find out how to connect my Virtual machine to it. 但我似乎无法找到如何将我的虚拟机连接到它。

How can I connect both a Web App and VM to the same network? 如何将Web App和VM连接到同一网络? Are there any other requirements I'm missing? 我还缺少其他要求吗?

Unfortunately you're not missing anything, and this is all rather messy at the moment and it is probably wise to hold off trying to deploy into a VNet until they've got it all working properly. 不幸的是,你没有遗漏任何东西,而且现在这一切都相当混乱,推迟尝试部署到VNet直到他们完全正常工作可能是明智之举。

However, if this is something you particularly need, your choices will be to keep everything at v1, or to just have the web app VNet at v1 and create a v2 VNet for your VMs (you can't put v2 VM into a v1 VNet) 但是,如果这是您特别需要的,您的选择是将所有内容保留在v1,或者只是在v1上安装Web应用程序VNet并为您的VM创建v2 VNet(您无法将v2 VM放入v1 VNet )

You could create a v2 VNet and have a site to site VPN between them. 您可以创建一个v2 VNet,并在它们之间有一个站点到站点VPN。 This would give a reasonably flat / Open IP structure. 这将提供合理的平坦/开放IP结构。 The problem with this will be that you are limited to approx 10mb bandwidth and the only way to up that would be to use Express Route. 这样做的问题是你只能使用大约10mb的带宽,唯一的方法就是使用Express Route。

I found another way.(I also found some discussion online that V2 VNET integration should be ready in a matter of days or weeks.) 我发现了另一种方式。(我还在网上发现了一些关于V2 VNET集成应该在几天或几周内准备就绪的讨论。)

There is a Preview tool called resource explorer. 有一个名为资源浏览器的预览工具。 Launch here: https://resources.azure.com 在这里发布: https//resources.azure.com

Expand your resource group and then under Microsoft.Web, find your web app. 展开您的资源组,然后在Microsoft.Web下,找到您的Web应用程序。

Click on that, and scroll down in the details pane to find the following outboundIpAddresses 单击它,然后在详细信息窗格中向下滚动以查找以下outboundIpAddresses

For each of these, go to your Resource Manager VM Network Security resource, and add the required Inbound Security Rule. 对于其中每个,请转到Resource Manager VM Network Security资源,然后添加所需的入站安全规则。 Watch out, the inbound security rule changes do not take effect immediately. 注意,入站安全规则更改不会立即生效。 I observed delays of about 2 mins before they worked. 在他们工作之前我观察了大约2分钟的延误。

Tested working on my setup, last couple of hours. 在我的设置上进行了测试,持续了几个小时。 Hoping the outbound IP allocation remains the same. 希望出站IP分配保持不变。 UPDATE: Outbound IP addresses now available in Azure Portal: https://social.msdn.microsoft.com/forums/azure/en-US/fd53afb7-14b8-41ca-bfcb-305bdeea413e/maintenance-notice-upcoming-changes-to-increase-capacity-for-outbound-network-calls http://ruslany.net/2015/06/how-to-find-out-outbound-ip-addresses-used-by-azure-web-app/ 更新: Azure门户中现在提供的出站IP地址: https//social.msdn.microsoft.com/forums/azure/en-US/fd53afb7-14b8-41ca-bfcb-305bdeea413e/maintenance-notice-upcoming-changes-to -increase-capacity-for-outbound-network-calls http://ruslany.net/2015/06/how-to-find-out-outbound-ip-addresses-used-by-azure-web-app/

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

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