简体   繁体   English

Azure 应用服务计划是否类似于 IIS 实例?

[英]Is an Azure app service plan analogous to an instance of IIS?

I've been struggling with adding a custom domain to one of my sites because it's already in use on another site.我一直在努力将自定义域添加到我的一个站点,因为它已在另一个站点上使用。 I have these:我有这些:

TMProfile1                         tm profile
 +EastUSAppServicePlan1            app service plan S2
   +eus-x-com.azurewebsites.net    app service
     +x.com                        custom domain

 +WestUSAppServicePlan1            app service plan S2
   +wus-x-com.azurewebsites.net    app service
     +x.com                        custom domain 

These sites both have a custom domain of x.com set up.这些站点都设置了x.com的自定义域。 Both these sites are in the same traffic manager profile and the DNS points x.com -CNAME-> tmprofile1.trafficmanager.net .这两个站点都在同一个流量管理器配置文件中,并且 DNS 指向x.com -CNAME-> tmprofile1.trafficmanager.net All is good一切都很好

I've created another app service plan (this time an S1) called EastUsAppServicePlan2 and I created a new app service inside of it called eus2-x-com.azurewebsites.net .我创建了另一个应用程序服务计划(此时的S1)呼吁EastUsAppServicePlan2和我创建了一个新的应用程序服务中的叫eus2-x-com.azurewebsites.net Even though this new app service is in a different app service plan to the two that already exist, I'm trying to add the same x.com custom domain to this new app service:尽管这个新的应用服务与已经存在的两个应用服务计划不同,但我正在尝试将相同的x.com自定义域添加到这个新的应用服务中:

x.com custom domain is already assigned to website eus-x-com.azurewebsites.net x.com 自定义域已分配给网站eus-x-com.azurewebsites.net

I always thought that an app service plan is analogous to an instance of IIS, and that every app service plan would have a unique IP address but it seems not.我一直认为一个应用服务计划类似于一个 IIS 实例,每个应用服务计划都会有一个唯一的 IP 地址,但似乎不是。 If I nslookup eus-x-com.azurewebsites.net (a site in EastUsAppServicePlan1) I get an IP of 12.34.56.78 and if I nslookup eus2-x-com.azurewebsites.net (the site in the new EastUSAppServicePlan2) I get the same IP of 12.34.56.78如果我nslookup eus-x-com.azurewebsites.netnslookup eus-x-com.azurewebsites.net一个站点)我得到 12.34.56.78 的 IP,如果我nslookup eus2-x-com.azurewebsites.net (新 EastUSAppServicePlan2 中的站点)我得到与 12.34.56.78 相同的 IP

It seems to be then, that it is region that determines IP;那么,似乎是地区决定了 IP; even if I create different app service plans in the same region, they will all have the same IP address?即使我在同一个地区创建不同的应用服务计划,它们也会有相同的IP地址吗? (It might explain some of the other issues I'm having) (它可能解释了我遇到的其他一些问题)

By pulling the definition from the Microsoft documentation , we have:通过从Microsoft 文档中提取定义,我们有:

Azure App Service is a multi-tenant service, except for App Service Environments. Azure 应用服务是一种多租户服务,应用服务环境除外。 Apps that are not in an App Service environment (not in the Isolated tier) share network infrastructure with other apps.不在应用服务环境(不在隔离层)中的应用与其他应用共享网络基础结构。 As a result, the inbound and outbound IP addresses of an app can be different, and can even change in certain situations.因此,应用程序的入站和出站 IP 地址可能不同,甚至在某些情况下会发生变化。

So, even in same region you may have scenarios that your apps, using different service plans, have same inbound ip addresses, or different.因此,即使在同一地区,您也可能会遇到您的应用程序使用不同服务计划、具有相同的入站 IP 地址或不同的情况。 That's managed by Azure, so you have no control over it, unless you have a scenario that you want to use a dedicated static inboud ip address to your apps, then you can leverage the IP-based SSL binding feature to have the same ip address for them.这是由 Azure 管理的,因此您无法控制它,除非您有一个方案希望对您的应用程序使用专用的静态入站 ip 地址,然后您可以利用基于 IP 的 SSL 绑定功能来拥有相同的 ip 地址为他们。

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

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