【发布时间】:2019-01-09 12:18:18
【问题描述】:
我的 Web 应用程序在 Azure 上运行,并横向扩展以拥有多个实例。 我可以使用 Azure 的管理 API 获取列表实例名称,如下所示
https://management.azure.com/subscriptions/"SubscriptionID"/resourceGroups/"ResournceGroupName"/providers/Microsoft.Web/sites/"sitename"/instances?api-version=2018-02-01
此 API 为我提供以下信息
"value": [
{
"id": "/subscriptions/subscriptionid/resourceGroups/websitename/providers/Microsoft.Web/sites/websitename/instances/instancename",
"name": "68e9f48782245c3a112318 INSTANCE NAME ac97aa9f0b55a4b0eb7a0",
"type": "Microsoft.Web/sites/instances",
"location": "UK West",
"properties": {
"name": "68e9f48782245c3a112318 INSTANCE NAME ac97aa9f0b55a4b0eb7a0",
"siteInstanceName": "68e9f48782245c3a112318 INSTANCE NAME ac97aa9f0b55a4b0eb7a0"
}
我想知道每个实例的 IP 地址。任何人都可以帮助我如何得到它。
【问题讨论】:
-
还有问题吗?或者如果它有帮助,你可以接受它。
标签: azure azure-web-app-service