如何在 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"
如果有人很快遇到这个问题。
关于powershell - 使用 Azure Powershell 获取角色即时状态,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47870895/