{"id":78415,"date":"2016-05-30T11:59:43","date_gmt":"2016-05-30T18:59:43","guid":{"rendered":"https:\/\/blogs.technet.microsoft.com\/heyscriptingguy\/?p=78415"},"modified":"2019-02-18T09:10:43","modified_gmt":"2019-02-18T16:10:43","slug":"powertip-show-azure-resource-manager-virtual-machine-status-with-powershell","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/scripting\/powertip-show-azure-resource-manager-virtual-machine-status-with-powershell\/","title":{"rendered":"PowerTip: Show Azure Resource Manager virtual machine status with PowerShell"},"content":{"rendered":"<p><strong>Summary<\/strong>: Using the Azure Resource Manager cmdlets to see the running state of a virtual machine.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/29\/2019\/02\/q-for-powertip.jpg\" alt=\"Hey, Scripting Guy! Question\" \/>\u00a0I remember using the old cmdlets for Azure, and they would show the status of my virtual machines.\u00a0 How can I do that with the new cmdlets?<\/p>\n<p style=\"padding-left: 30px\"><img decoding=\"async\" src=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/29\/2019\/02\/a-for-powertip.jpg\" alt=\"Hey, Scripting Guy! Answer\" \/>\u00a0Use the <strong>Get-AzureRM<\/strong> cmdlet with the <strong>\u2013Status<\/strong> parameter to expand the available properties. Here\u2019s a simple example to pull the statuses of a virtual machine: Here is an example:<\/p>\n<p style=\"padding-left: 90px\"><code>Get-AzureRMVM \u2013Name HSG-Linux1 \u2013ResourceGroupName HSG-AzureRG \u2013Status | Select-Object \u2013expandproperties Statuses<\/code><\/p>\n<p style=\"padding-left: 30px\"><img decoding=\"async\" src=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/29\/2019\/02\/7610.Dr.ScriptoForTips.jpg\" alt=\"The Doctor\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Summary: Using the Azure Resource Manager cmdlets to see the running state of a virtual machine. \u00a0I remember using the old cmdlets for Azure, and they would show the status of my virtual machines.\u00a0 How can I do that with the new cmdlets? \u00a0Use the Get-AzureRM cmdlet with the \u2013Status parameter to expand the available [&hellip;]<\/p>\n","protected":false},"author":596,"featured_media":87096,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[568,639,641],"tags":[56,356,154,45],"class_list":["post-78415","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-hey-scripting-guy","category-powertip","category-windows-powershell","tag-guest-blogger","tag-powertip","tag-sean-kearney","tag-windows-powershell"],"acf":[],"blog_post_summary":"<p>Summary: Using the Azure Resource Manager cmdlets to see the running state of a virtual machine. \u00a0I remember using the old cmdlets for Azure, and they would show the status of my virtual machines.\u00a0 How can I do that with the new cmdlets? \u00a0Use the Get-AzureRM cmdlet with the \u2013Status parameter to expand the available [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/posts\/78415","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/users\/596"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/comments?post=78415"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/posts\/78415\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/media\/87096"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/media?parent=78415"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/categories?post=78415"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/tags?post=78415"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}