Meaning of Deploying and Configuring a Linux Ubuntu Server 20.04 LTs Virtual Machine in Azure and how to do it in Microsoft Azure
Deploying a Linux virtual machine in Azure means creating a pretend computer running on Linux that's hosted in Microsoft's cloud through the Azure Portal at portal.azure.com, where you sign up for a free trial at azure.microsoft.com/free if needed, log in, search for "virtual machines," click "Create," fill in the Basics tab with details like subscription, resource group named something like "myGroup," VM name like "myLinuxVM," image Ubuntu Server 20.04, size for power and cost, SSH public key for secure login with a username like "azureuser," allow inbound ports like SSH and HTTP, then review and create it, which takes a few minutes, and you can find full steps at https://learn.microsoft.com/en-us/azure/virtual-machines/linux/quick-create-portal. Configuring it involves connecting via SSH using a command like "ssh -i path-to-your-key-file azureuser@your-VM-IP-address" on your computer after ensuring port 22 is open in the Networking settings, updating software inside with "sudo apt-get update," installing things like a web server with "sudo apt-get install nginx," resizing the VM by stopping it and changing size under Settings, monitoring on the Overview page for status and stats, setting auto-shutdown to save money, troubleshooting connections by checking if it's running and firewall rules, and using portal tools to start, stop, delete, or view details, with more on connecting at https://learn.microsoft.com/en-us/azure/virtual-machines/linux-vm-connect and management at https://learn.microsoft.com/en-us/azure/virtual-machines/linux/tutorial-manage-vm, plus checking pricing at azure.microsoft.com/pricing/calculator to avoid surprises since you pay when it's on.
In this article, we will be focusing on the following:
In this exercise you deploy and configure a Linux virtual machine.
- In the Azure Portal Search Bar, enter Virtual Machines and select Virtual Machines from the list of results.
- On the Virtual Machines page, choose Create and select Azure Virtual Machine.
- On the Basics page of the Create A Virtual Machine wizard, select the following settings and then choose Review + Create.
Property Value
Subscription Your subscription
Resource Group rg-alpha
Virtual machine name Linux-VM2
Region East US
Availability options No infrastructure redundancy required
Security type Standard
Image Ubuntu Server 20.04 LTs – x64 Gen2
VM architecture x64
Size Standard_D2s_v3 – 2 vcpus, 8 GiB memory
Authentication type Password
Username Prime
Password [Select a unique secure password]P@ssw0rdP@ssw0rd
Public inbound ports None
- Review the information and choose Create.
- After the VM deploys, open the VM properties page and choose Extensions + Applications under Settings.
- Choose Add and select the Network Watcher Agent for Linux. Choose Next and then choose Review and Create. Choose Create.
- Configure the AzureNetworkWatcherExtension and the OmsAgentForLinux extension so that they automatically upgrade.
- To Dissociate the Virtual Machine, go to the virtual machine, click on Public Ip address, click Dissociate to Dissociate the virtual machine
- To Associate the Virtual Machine, go to the virtual machine, click on Public Ip address, click Dissociate to Associate the virtual machine
- To Stop or Deallocate the Virtual Machine, go to the virtual machine, click Stop to Stop or Deallocate the virtual machine
- To Start the Virtual Machine, go to the virtual machine, click Start to Start the virtual machine
Top comments (0)