Created
February 4, 2015 13:08
-
-
Save pkirch/aff99159719addbd5e95 to your computer and use it in GitHub Desktop.
This sample shows how to select only the Status property for a single VM in Azure via PowerShell.
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 -ServiceName leasetest3 -Name host3 | Select-Object -Property Status | |
<# Output | |
Status | |
------ | |
RoleStateUnknown | |
#> |
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.