- Basics about ARM Templates
- Exporting ARM Templates
- Downloading ARM Templates
- Editing and deploying ARM Templates in the Azure Portal
- Deploying a VM using an Azure ARM Quickstart
-
Open Azure Portal and sign in.
-
Trigger Template Export for Resource Group
PracticalDevOps-Dev
:
-
Download exported template and make yourself familiar with the code.
-
Discussion points:
- Describe basic concepts of Azure Resource Manager and ARM templates
- Speak about structure of ARM templates (e.g. parameters, variables, resources, etc.)
- Point out the use of template functions
- Code walk-through for generated PowerShell scripts
If you are very familiar with PowerShell, you can do the following steps using the downloaded code instead of editing and deploying it in the Azure Portal.
-
Replace all
-dev
by-test
and save the changed template. -
Deploy changed template with the following parameters. This step might take a while.
-
Open Azure Quickstart Templates on GitHub.
-
Take a look at Quickstart Templates on GitHub. In particular, look for the
docker-simple-on-ubuntu
template (link). -
Take a look at the UI for the Quickstart Templates in the Azure Portal. Again, look for the Deploy an Ubuntu VM with Docker Engine template (link).
-
Discussion points:
- Why are the Quickstart Templates so useful?
- Describe different ways of deploying them (PowerShell, using the embedded Deploy to Azure button)
- How does the Deploy to Azure mechanism work?
-
In the next example, we are going to need a Docker host. Use the button Deploy to Azure in the Quickstart Template to deploy a Docker host in your Azure subscription.
-
Use the following settings when deploying the Docker host (note that you have to choose your own unique names for storage account and DNS name):
-
Make sure that your deployment was successful. If it was, you are prepared for the next exercise.
If you have time left, you could additionally cover topics like:
- Demonstrate ARM template support in Visual Studio
- Create and deploy ARM template from scratch using Visual Studio project
- Deploy ARM template using a PowerShell script
- Deploy a more complex template from Azure Quickstarts