使用Azure Powershell获取角色即时状态

问题描述 投票:1回答:1

如何在Azure Powershell中获取角色实例的状态?我正在使用以下命令,但它没有向我显示角色的状态

Get-AzureRole -ServiceName serviceNameHere

这是输出:

RoleName             : Role Name
InstanceCount        : 1
DeploymentID         : ***deployment id*******
OSVersion            : ***OSVersion*******
ServiceName          : ***service name*******
OperationDescription : Get-AzureRole  
OperationId          : ***operation id*******
OperationStatus      : Succeeded

有人可以帮忙吗?谢谢!

powershell azure
1个回答
0
投票

弄清楚了。我用了 :

Get-AzureRole -ServiceName "serviceNameHere" -Slot "Production" -InstanceDetails | Format-Table -Auto "InstanceName", "InstanceSize", "InstanceStatus"

如果有人很快遇到这个问题。

© www.soinside.com 2019 - 2024. All rights reserved.