Vnet between Virtual Machine and App Service in Azure

我怕爱的太早我们不能终老 提交于 2019-12-10 15:59:15

问题


I cannot figure out how to connect a Web App (App Service) to a Virtual Machine in Azure. I've create a VNet from the Web App configuration panel.

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. (Looks like these terms are used interchangeably, or is it something different).

I've create a classic 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? Are there any other requirements I'm missing?


回答1:


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.

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)

You could create a v2 VNet and have a site to site VPN between them. This would give a reasonably flat / Open IP structure. 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.




回答2:


I found another way.(I also found some discussion online that V2 VNET integration should be ready in a matter of days or weeks.)

There is a Preview tool called resource explorer. Launch here: https://resources.azure.com

Expand your resource group and then under Microsoft.Web, find your web app.

Click on that, and scroll down in the details pane to find the following outboundIpAddresses

For each of these, go to your Resource Manager VM Network Security resource, and add the required Inbound Security Rule. Watch out, the inbound security rule changes do not take effect immediately. I observed delays of about 2 mins before they worked.

Tested working on my setup, last couple of hours. Hoping the outbound IP allocation remains the same. 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/



来源:https://stackoverflow.com/questions/34998899/vnet-between-virtual-machine-and-app-service-in-azure

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!