流量管理器不显示我刚创建的网络应用程序

Traffic manager does not show web app I just created

我的订阅中有多个 RG。我已经创建了一个 TM 和一个网络应用程序(高于 S1 计划)。

作为 TM 配置中的一个步骤,我有一个 Web 应用程序列表可供选择,但我刚刚创建的应用程序没有显示在该列表中。

是否有关于地区或 RG 的政策可以解释这种行为?

据我所知,将 Web 应用程序添加为流量管理器的端点时没有区域或资源组限制,但只有 'Standard' SKU 或更高版本的 Web 应用程序才有资格与流量管理器。阅读 some additional considerations apply when configuring Web Apps as endpoints in Traffic Manager.

首先,确保您已经很好地实现了应用程序服务,并按照 the correct steps 到应用程序服务端点到流量管理器配置文件。您单击 添加、select Azure Endpoint类型,并将 select app serviceapp service slot 作为 目标资源类型.

然后,如果您有多个订阅,请确保您已在同一个订阅中创建应用服务和流量管理器。

如果有任何门户问题或 Web 浏览器问题,我建议使用 Azure CLI or PowerShell 添加应用服务端点。

在此示例中,创建流量管理器配置文件并使用 Add-AzTrafficManagerEndpointConfig cmdlet 添加一个应用服务端点。

$TmProfile = New-AzTrafficManagerProfile -Name myprofile -ResourceGroupName MyRG -TrafficRoutingMethod Performance -RelativeDnsName myapp -Ttl 30 -MonitorProtocol HTTP -MonitorPort 80 -MonitorPath "/"

$webapp1 = Get-AzWebApp -Name webapp1
Add-AzTrafficManagerEndpointConfig -EndpointName webapp1ep -TrafficManagerProfile $TmProfile -Type AzureEndpoints -TargetResourceId $webapp1.Id -EndpointStatus Enabled

Set-AzTrafficManagerProfile -TrafficManagerProfile $TmProfile