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.
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.
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.
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.
Step 4: once validation is passed, click on the create button.
Once you have successfully deployed, go to the resource group.
Step 5: Then click on the VM named simplelinuxvm.
Then click on connect which is on the upper left side of the VM screen.
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.
Once the details are entered properly, You will be connected to your VM.
Top comments (0)