DEV Community

Henry
Henry

Posted on

Creating a Linux Virtual Machine on Azure Using Custom Templates

Azure, Microsoft's cloud computing platform, provides a seamless experience for creating and managing virtual machines (VMs). With Azure's flexibility, you can leverage custom templates to streamline the process of provisioning Linux-based VMs. In this blog post, we will guide you through the steps to create a Linux virtual machine on Azure using custom templates.

Step 1: Prepare the Custom Template.

Image description
Begin by logging into your Azure account and search for Deploy a custom template then create or obtain a custom template that defines the configuration of your Linux VM. Azure Resource Manager (ARM) templates are written in JSON and allow you to define the desired state of your infrastructure. You can either create your own template or leverage existing templates from Azure Quickstart Templates or the Azure Marketplace. Today we will be working with the Quickstart Templates.

Image description
Step 2: Then select 'create a linux virtual machine'
You can decide to edit the template, edit the parameters or visualize depending on your desired customization.

Image description
step 3: Add Your Admin name, select authentication type as password for a quick connection the input your chosen password.Then click the review+create button.

Image description
Step 4: once validation is passed, click on the create button.

Image description
Once you have successfully deployed, go to the resource group.

Image description
Step 5: Then click on the VM named simplelinuxvm.

Image description
Then click on connect which is on the upper left side of the VM screen.

Image description
To connect to your linux you created on Azure, go to powershell terminal or input the following command in your linux terminal.
ssh and then click enter.

Image description
Once the details are entered properly, You will be connected to your VM.

Image description

Top comments (0)