Skip to content
On this page

List of commands to remember for Azure networking

Show account summary Shows:

  • EnvironmentName
  • HomeTenantId
  • Subscription name
  • Subscription state
  • TenantId
txt
az account show --output table

Create VM

txt
az account set --subscription "Subscription name"
$RGName = "ResourceGroupName"
New-AzResourceGroupDeployment -ResourceGroupName $RGName -TemplateFile azuredeploy.json -TemplateParameterFile azuredeploy.parameters.json

Create Resource group

txt
az account set --subscription "Subscription name"
$RGName = "ResourceGroupName"
New-AzResourceGroup -Name $RGName -Location "eastus"