你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
重要
若要使备用池成功创建和管理资源,需要访问订阅中的关联资源。 确保为备用池资源提供程序分配正确的权限,以便备用池正常运行。 有关详细说明,请参阅 为备用池配置角色权限。
本文讨论如何检索有关备用池及其中的容器组的信息。
备用池详细信息
使用备用池运行时视图 API 获取备用池的当前状态,包括可用的容器组数及其当前预配状态。
az standby-container-group-pool status --resource-group myResourceGroup --name myStandbyPool
{
"id": "/subscriptions/401ef76a-dea9-45da-b19a-db3efced675b/resourceGroups/myResourceGroup/providers/Microsoft.StandbyPool/standbyContainerGroupPools/myStandbyPool/runtimeViews/latest",
"instanceCountSummary": [
{
"instanceCountsByState": [
{
"count": 5,
"state": "Creating"
},
{
"count": 20,
"state": "Running"
},
{
"count": 0,
"state": "Deleting"
}
]
}
],
"name": "latest",
"provisioningState": "Succeeded",
"resourceGroup": "myResourceGroup",
"type": "Microsoft.StandbyPool/standbyContainerGroupPools/runtimeViews"
}
后续步骤
详细了解 Azure 容器实例的备用池。