This document provides an overview of Azure Resource Manager (ARM) templates and how to use them to deploy resources to Azure. It begins with an introduction to ARM templates and their basic structure. It then covers building templates with parameters, deploying templates from Visual Studio and PowerShell, and some tips and best practices. It concludes with a demonstration of deploying a single virtual machine using an ARM template.
Report
Share
Report
Share
1 of 33
Download to read offline
More Related Content
Azure ARM Templates 101
1. CLD321
Aaron Saikovski
Specialist Solution Architect – Microsoft Cloud Technologies
Rackspace Australia
T: @RuskyDuck72 E: aaron.saikovski@rackspace.com
Azure ARM Templates - 101
12. Building your own templates
Active Online community
Shared repositories -> GitHub, Quickstart
Visual Studio tools help get you started
Seek out an expert at Microsoft Ignite 2017
Useful Links:
https://github.com/Azure/azure-quickstart-templates
https://azure.microsoft.com/en-us/resources/templates/
16. Building your own templates
ARM templates -> deploy -> redeploy
Source control and versioning
Deploy via Visual Studio or via PowerShell
New-AzureRmResourceGroupDeployment
-Name ((Get-ChildItem $templateFile).BaseName + '-' +
((Get-Date).ToUniversalTime()).ToString('MMdd-HHmm'))
-ResourceGroupName $ResourceGroupName
-TemplateFile $templateFile
-TemplateParameterFile $parametersFile
18. Recap
Lots of samples available
Tooling is 1st class
Lots of options for deployment
Start with existing and modify to suit
Incremental deployment model
20. Tips and Tricks
ARM -> Resource Group ->Resources
Resource Location -> Different to Resource Group
Standard Storage -> Premium
Keep SDK and tools up to date
21. Tips and Tricks..cont
Use JSON Lint (http://jsonlint.com/)
Layer templates
Set correct subscription
$activesub = Get-AzureRmSubscription -
SubscriptionId 'XXX-XXX-XXX-XXX'
-TenantId 'XXX-XXX-XXX-XXX'
$activesub | Set-AzureRmContext
24. Recap
Resources deployed to different region than Resource
Group
Keep tools up to date
JSONLint fix JSON syntax
-TemplateParameterObject via PowerShell
27. Recap
Layered ARM Deployment
Simple VM Deployment
Incremental ARM Model
Mix of Visual Studio and PowerShell
Change VM Size via ARM
Resource dependencies
30. Complete your session evaluation on MyIgnite
for your chance to WIN one of many daily prizes.
(image of prizes tbc)
Session evaluation
31. Visit Channel 9 to access a wide range of Microsoft training
and event recordings https://channel9.msdn.com/
Head to the TechNet Eval Centre to download trials of the latest
Microsoft products http://Microsoft.com/en-us/evalcenter/
Visit Microsoft Virtual Academy for free online training visit
https://www.microsoftvirtualacademy.com
Continue your Ignite learning path
32. CLD321
Aaron Saikovski
Specialist Solution Architect – Microsoft Cloud Technologies
Rackspace Australia
T: @RuskyDuck72 E: aaron.saikovski@rackspace.com
Azure ARM Templates - 101