Skip to content

Latest commit

 

History

History
28 lines (18 loc) · 879 Bytes

File metadata and controls

28 lines (18 loc) · 879 Bytes

Deploy ARM template using CLI

Get ARM template via Azure Portal

  • Start resource creation, then stop on last stage, do not deploy it
  • Download template zip using Download a template for automation

Download_template

  • Review and download the template

Review_template

Deploy ARM via CLI

  • Create resource group

    • $rgName="rg-ubuntu-vm-arm"
    • $location="westus"
    • az group create -n $rgName -l $location
  • Deploy template

    • $templatePath = "./arm_templates/exported-portal-rg-ubuntu-vm/template.json"
    • $parametersPath = "./arm_templates/exported-portal-rg-ubuntu-vm/parameters.json"
    • az deployment group create -g $rgName --template-file $templatePath --parameters $parametersPath

Delete resource group

  • az group delete -n $rgName --yes