Created
February 4, 2015 13:05
-
-
Save pkirch/6b7f0f5e979ac9e35b57 to your computer and use it in GitHub Desktop.
This sample shows the different status values of a starting VM in Azure. In this sample the VM "host3" in service "leastetest3" is starting up.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Get-AzureVM | |
<# Output | |
ServiceName Name Status | |
----------- ---- ------ | |
leasetest host1 ReadyRole | |
leasetest2 host2 ReadyRole | |
leasetest3 host3 RoleStateUnknown | |
leasetest4 host4 StoppedDeallocated | |
leasetest5 host5 StoppedDeallocated | |
#> | |
Get-AzureVM | |
<# Output | |
ServiceName Name Status | |
----------- ---- ------ | |
leasetest host1 ReadyRole | |
leasetest2 host2 ReadyRole | |
leasetest3 host3 CreatingVM | |
leasetest4 host4 StoppedDeallocated | |
leasetest5 host5 StoppedDeallocated | |
#> | |
Get-AzureVM | |
<# Output | |
ServiceName Name Status | |
----------- ---- ------ | |
leasetest host1 ReadyRole | |
leasetest2 host2 ReadyRole | |
leasetest3 host3 StartingVM | |
leasetest4 host4 StoppedDeallocated | |
leasetest5 host5 StoppedDeallocated | |
#> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This script sample is used in the blog post at http://blogs.msdn.com/b/pkirchner/archive/2015/02/09/grundlagen-vms-in-azure-per-powershell-verwalten-auflisten-starten-stoppen-l-246-schen.aspx.