Steps To Deploy a Linux Virtual Machine using an ARM Template

Deploying a virtual machine (VM) using an Azure Resource Manager (ARM) template involves defining the VM configuration in a JSON template and then deploying that template to Azure.
Here’s a step-by-step guide to help you deploy a linux VM using an ARM…


This content originally appeared on DEV Community and was authored by Chidera Enyelu

Deploying a virtual machine (VM) using an Azure Resource Manager (ARM) template involves defining the VM configuration in a JSON template and then deploying that template to Azure.
Here’s a step-by-step guide to help you deploy a linux VM using an ARM template.

Using Azure Portal

  • Go to the Azure Portal. Azure portal
  • On the searchbar, search for "Deploy a custom ARM template"

Image description

  • Click on "select a template",there are several default templates.
  • Select the already made template "Linux VM template" or choose to build your own template in the editor.

Image description

  • Edit the JSON default template you selected or Paste the JSON template you chose to build into the editor and click Save.

Image description

Image description

On the basics tab, select the region, create a resource group, add an admin name and i used SSH Key instead of password and downloaded the key file.

Image description

  • Click Review + Create, review the settings, and click Create.

Image description

Image description

After Deployment of VM

The resources created are displayed in the resource group, choose the virtual machine to check if its running.

Image description

Image description

To connect to the linux VM using SSH key on commandpromt/powershell

  • On the file explorer, find the path to the shh key and copy path

Image description

  • Open your terminals(commandpromt/powershell).
  • Run this commands on your command prompt terminal

code
ssh -i path\to\your\key\your-key.pem username@ip-address

Image description

  • Once connected, you can install either Nginx or jenkins.

NOTE: you can download the template and use the same template to create another virtual machine.
By following these steps, you should be able to deploy a virtual machine using an ARM template in Azure.


This content originally appeared on DEV Community and was authored by Chidera Enyelu


Print Share Comment Cite Upload Translate Updates
APA

Chidera Enyelu | Sciencx (2024-08-16T13:39:41+00:00) Steps To Deploy a Linux Virtual Machine using an ARM Template. Retrieved from https://www.scien.cx/2024/08/16/steps-to-deploy-a-linux-virtual-machine-using-an-arm-template/

MLA
" » Steps To Deploy a Linux Virtual Machine using an ARM Template." Chidera Enyelu | Sciencx - Friday August 16, 2024, https://www.scien.cx/2024/08/16/steps-to-deploy-a-linux-virtual-machine-using-an-arm-template/
HARVARD
Chidera Enyelu | Sciencx Friday August 16, 2024 » Steps To Deploy a Linux Virtual Machine using an ARM Template., viewed ,<https://www.scien.cx/2024/08/16/steps-to-deploy-a-linux-virtual-machine-using-an-arm-template/>
VANCOUVER
Chidera Enyelu | Sciencx - » Steps To Deploy a Linux Virtual Machine using an ARM Template. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2024/08/16/steps-to-deploy-a-linux-virtual-machine-using-an-arm-template/
CHICAGO
" » Steps To Deploy a Linux Virtual Machine using an ARM Template." Chidera Enyelu | Sciencx - Accessed . https://www.scien.cx/2024/08/16/steps-to-deploy-a-linux-virtual-machine-using-an-arm-template/
IEEE
" » Steps To Deploy a Linux Virtual Machine using an ARM Template." Chidera Enyelu | Sciencx [Online]. Available: https://www.scien.cx/2024/08/16/steps-to-deploy-a-linux-virtual-machine-using-an-arm-template/. [Accessed: ]
rf:citation
» Steps To Deploy a Linux Virtual Machine using an ARM Template | Chidera Enyelu | Sciencx | https://www.scien.cx/2024/08/16/steps-to-deploy-a-linux-virtual-machine-using-an-arm-template/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.