User Tools

Site Tools


azure_powershell_cheat_sheet

Azure PowerShell Cheat Sheet

Login-AzureRmAccount Associate PowerShell session with an account.
Get-AzureRmSubscription List subscriptions.
Get-AzureRmSubscription -SubscriptionName whatever | Select-AzureRmSubscription Set the current subscription.
Get-AzureRmContext Get the current subscription.
Get-AzureRmVm List the VMs.
Stop-AzureRmVm -ResourceGroupName whatever -Name whatever Stop a VM.
azure_powershell_cheat_sheet.txt · Last modified: 2017/06/19 20:26 (external edit)