Create an account



Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Azure how to use an ARM template to deploy Vm's including how to create a resource GP

#1
Watch the first part of this video to learn how to deploy a new ARM template into the Azure default directory. How to import the ARM template to azure. Then how to deploy using the ARM template, including thye creation of a new resource group to house the newly created Vm's. 

*Its kind of nice to see it in action on a live system rather than just read about it.  Check out the video below. 
https://mslabs.cloudguides.com/guides/AZ...PowerShell
The commands demonstrated in the video related to uploading and using the ARM template
#Delete resource groups
Get-AzureRmResourceGroup | Remove-AzureRmResourceGroup -verbose -Force

Get-AzResource -ResourceGroupName Resource-group1 | Group-Object -Property ResourceType | select -Property Count, Name | ft -AutoSize

#Get subscription info
az account show --output table

#use sub
az account set --subscription 'name of your subscription' (name of subscription shown in previous command)

#New resource group
New AzResourceGroup -name 'CreatePrivateEndpointsQS-rg' -location 'eastus'

#Deploy using template
$RgName -"CreatePrivateEndpointsQS-rg"
New-AzResourceGroupDeployment -ResourceGroupName -TemplateFile template.json -TemplatePerameterFile parameters.json




A great resource here...
Use ARM template test toolkit
"The Azure Resource Manager template (ARM template) test toolkit checks whether your template uses recommended practices. When your template isn't compliant with recommended practices, it returns a list of warnings with the suggested changes. By using the test toolkit, you can learn how to avoid common problems in template development. This article describes how to run the test toolkit and how to add or remove tests"

https://learn.microsoft.com/en-us/azure/...st-toolkit

IMO the entire series of training information for AZ700 is quite good. Full of great information on deploying resources in Azure.
https://learn.microsoft.com/en-us/traini...ns-az-700/
Reply





Users browsing this thread:
1 Guest(s)

Forum software by © MyBB Theme © iAndrew 2016