- Start resource creation, then stop on last stage, do not deploy it
- Download template zip using
Download a template for automation
- Review and download the template
Connect-AzAccount -SubscriptionName "Azure for Students"
-Set-AzContext -SubscriptionName "Azure for Students"
$rgName="rg-vm-ubuntu-pwsh-arm"
$location="CentralUS"
New-AzResourceGroup -Name $rgName -Location $lcoation
$templatePath = "./arm_templates/exported-portal-rg-ubuntu-vm/template.json"
$parametersPath = "./arm_templates/exported-portal-rg-ubuntu-vm/parameters.json"
$vmName="vm-ubuntu-pwsh-arm"
New-AzResourceGroupDeployment -Name $vmName -ResourceGroupName $rgName -TemplateFile $templatePath -TemplateParameterFile $parametersPath
Remove-AzResourceGroup -Name $rgName