Deploy Linux VMs on Azure with ARM Template
In this blog post we’ll have a look 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 starter 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
you can also see these on below Microsoft’s azure webpage , note that templates on below page are displayed directly from GitHub library itself
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 template available in GitHub repo.
Deployment from GITHUB
- Open given GitHub repository in any supported browser.
- Search for and template as per your requirement. For this simple deployment , we’ll choose template named 101-vm-simple-linux.
- Select the template, this will open template’s READ ME file which includes basic info such as what this template will do , required parameters etc.
- Click on Deploy to Azure Button , you can select visualize to see what all things this template will create before deploying it in actual.
- This will open another tab in your browser and redirect to Azure portal. This will open deployment page directly if you’ve already logged in , or it will ask for credentials first.
- 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 deployment.
- Once created , you can access the machine via SSH.
Using Quickstart templates using Azure Portal.
In this example , we’ll try to use these templates directly from Azure portal, instead of GitHub repo.
- Login to Azure Portal ,and click on New >> Search for template deployment
- Select template deployment and Click Create
- Click on Edit Template, this will open a blank template for you. Click on Quickstart template button on ribbon.
- Select the template from the dropdown(these are same templates available on GITHUB library). This will display brief overview about template along with author name.
- 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.