如何在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
有人可以帮忙吗?谢谢!
弄清楚了。我用了 :
Get-AzureRole -ServiceName "serviceNameHere" -Slot "Production" -InstanceDetails | Format-Table -Auto "InstanceName", "InstanceSize", "InstanceStatus"
如果有人很快遇到这个问题。