Press "Enter" to skip to content

Deploy Linux VMs on Azure with ARM Template

0

In this blog post, we’ll have a look at deploying Linux workload using Azure-QuickStart ARM templates. See this if you are looking to deploy VM using Azure Portal.

Quickstart templates are created by Community members and are available on GitHub. You can always download these and leverage them for deployment or even as a starting point for your custom template.
ARM templates can also install and configure applications inside your VM’s such as MySQL DB etc.

Azure QuickStart templates can be found on below GITHUB repository
https://github.com/Azure/azure-quickstart-templates
you can also see these on below Microsoft’s azure webpage, note that templates on the below page are displayed directly from the GitHub library itself
https://azure.microsoft.com/en-in/documentation/templates/
You can also contribute to this repository by creating some custom template, this goes through a validation process, once approved it will be visible on GITHUB and Azure webpage along with your name. More on contribution here- https://github.com/Azure/azure-quickstart-templates/tree/master/1-CONTRIBUTION-GUIDE

Now let’s create a VM using one of these community-contributed templates available in GitHub repo.

Deployment from GITHUB

  1. Open given GitHub repository in any supported browser.
  2. Search for and template as per your requirement. For this simple deployment, we’ll choose a template named 101-vm-simple-linux.
  3. Select the template, this will open the template’s READ ME file which includes basic info such as what this template will do , required parameters etc.
  4. Click on Deploy to Azure Button , you can select visualize to see what all things this template will create before deploying it in actual.
  5. This will open another tab in your browser and redirect to Azure portal. This will open the deployment page directly if you’ve already logged in , or it will ask for credentials first.
  6. Enter the required parameters values as follows along with basic settings such as Azure subscription, resource group , accepting legal terms. Once done click on create to start the deployment.
  7. Once created , you can access the machine via SSH.

Using QuickStart templates using the Azure Portal.

In this example, we’ll try to use these templates directly from Azure portal, instead of GitHub repo.

  1. Login to Azure Portal ,and click on New >> Search for template deployment
  2. Select template deployment and Click Create
  3. Click on Edit Template, this will open a blank template for you. Click on QuickStart template button on the ribbon.
  4. Select the template from the dropdown(these are same templates available on GITHUB library). This will display brief overview of template along with author name.
  5. Click OK , this will load the template in your deployment , provide parameters as asked by template and create resources the same way we did in last example from GitHub.

With this, we’ve come to end of this blog post.

Thank you for reading.

Leave a Reply

Your email address will not be published. Required fields are marked *