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

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

我一直在努力将自定义域添加到我的一个站点,因为它已在另一个站点上使用。我有这些:

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 

这些网站都设置了自定义域 x.com。这两个站点都在同一个流量管理器配置文件和 DNS 点 x.com -CNAME-> tmprofile1.trafficmanager.net 中。一切都很好

我创建了另一个名为 EastUsAppServicePlan2 的应用服务 plan(这次是 S1),并且我在其中创建了一个新的应用服务它叫 eus2-x-com.azurewebsites.net。尽管这个新的应用服务与两个已经存在的 不同的应用服务计划,我正在尝试向这个新的应用服务添加相同的 x.com 自定义域:

x.com custom domain is already assigned to website eus-x-com.azurewebsites.net

我一直认为应用服务计划类似于一个IIS实例,每个应用服务计划都有一个唯一的IP地址,但似乎不是。如果我 nslookup eus-x-com.azurewebsites.net(EastUsAppServicePlan1 中的一个站点)我得到一个 IP 12.34.56.78 如果我 nslookup eus2-x-com.azurewebsites.net(新 EastUSAppServicePlan2 中的站点)我得到相同的 IP 12.34.56.78

看来,是地区决定IP;即使我在同一地区创建不同的应用程序服务计划,它们都将具有相同的 IP 地址吗? (它可能解释了我遇到的其他一些问题)

通过从 the Microsoft documentation 中提取定义,我们有:

Azure App Service is a multi-tenant service, except for App Service Environments. 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 地址的情况。这是由 Azure 管理的,所以你无法控制它,除非你有一个场景,你想为你的应用程序使用专用的静态入站 IP 地址,然后你可以利用 基于 IP 的 SSL 绑定 功能使它们具有相同的 IP 地址。