DEV Community

Gbadamosi Tajudeen
Gbadamosi Tajudeen

Posted on

Launch a Linux Virtual Machine Using Custom Template in Azure

Deploying a custom template in Azure involves automating the provisioning and configuration of Azure resources using Azure Resource Manager (ARM) templates. The desired state of your infrastructure, including the resources, their attributes, dependencies, and customizations, is defined by a custom template, which is a JSON file.
To deploy your own template, Azure provides a variety of deployment methods. You can use Azure REST API, Azure DevOps, Azure PowerShell, Azure CLI, or Azure Portal. The deployment strategy you choose will depend on your preferences and the level of automation needed.
You may automate the deployment of your infrastructure, guarantee consistency across environments, and provide version control for your infrastructure-as-code by deploying a custom template on Azure. It simplifies the creation and management of Azure resources, increasing productivity and reducing the potential for human error.
In this blog post, we will explore how custom template in Azure Resource Manager (ARM) can be configured to spin up a Linux virtual machine through Ubuntu Terminal.

Steps to create a Custom Template and deploy using Ubuntu Terminal in Azure

Search for deploy a custom template in Azure resource page
Click on Create a Linux Virtual Machine (VM) and select Quickstart template in the Template Source

Linux VM

Steps to modify the template to customize it according to your requirements

Linux VM
Click on create new and enter the resource group name
Select the desired region
Edit the VM Name
Enter the admin Username
Select the authentication type password or SSH
Click on Review and create
Linux VM
After validation, click creates to initiate the deployment.
Linux VM
Deployment is complete
Click on Go to Resources
Linux VM
Click on “SimpleLinux VM”
Linux VM
Click on the connect button at the top bar of the overview page
!Linux VM](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ncd7go920qbayu18puzf.JPG)
To connect to the Linux VM, input the command SSh in the Ubuntu terminal and press enter.

Linux VM
To copy your IP address, go to the overview page
Lunch the Ubuntu terminal and input the command SSh as shown below. Click enter
Input your password and press enter
The Linux VM is launched

Top comments (0)