Quantcast
Channel: MSDN Blogs
Viewing all articles
Browse latest Browse all 12366

One Line Command to Shutdown all Running Azure VMs using PowerShell

$
0
0

After a long time, I managed one single line command to shutdown all Azure VMs in one single Subscription.

Get-AzureVM | Where { $_.Status -ne "StoppedDeallocated" } | Stop-AzureVM -Force

Namoskar!!!


Viewing all articles
Browse latest Browse all 12366

Trending Articles