Created
December 6, 2016 20:37
-
-
Save m-gagne/7ae738ca5795aa1cd802e6470d8e13f1 to your computer and use it in GitHub Desktop.
Stop all VMs in Azure Subscription
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-AzureRmVM | ForEach-Object { Stop-AzureRmVM -ResourceGroupName $_.ResourceGroupName -Name $_.Name -Confirm:$false -Force } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment