Open In App

Microsoft Azure – Improvements in Linux Virtual Machine

Last Updated : 31 Mar, 2023
Improve
Improve
Like Article
Like
Save
Share
Report

In this article we will learn how to easily create a Linux virtual machine using SSH keys and to connect to it. Azure makes it super easy for you to create a VM and connect to it.

The new virtual machine creates an experience on Azure, the only input that you need here is the virtual machine name. Everything else Azure automatically defaults for you, so you can quickly and seamlessly create a virtual machine on Azure with just one click. 

Azure also automatically generates the SSH key pair for you, so you no longer have to use third-party tools or the SSH keygen command to go in and paste your key. Azure automatically now does that for you. You can also use an existing key stored in Azure because Azure saves this key, so you can reuse it for future VMs.

Looking right to the review and creation. And then you can go ahead and create your virtual machine. What happens is that Azure tells you to download private key pair first, so you can use that to connect to your VM later. And remember, the public key gets stored in Azure, so you can reuse it for other virtual machines if you like.

Let’s go to the VM overview for a VM that’s already been deployed. One of the first things you can see here is you have done a lot of work to improve the VM overview experience and one of the things you can immediately see is the new tabs that Azure has. The tabs are an effective way to organize different information, so you can different things about your virtual machine.

Now, You go to connect. You click SSH. And the one thing that you need to provide to Azure is your private key path. So, just tell Azure where it’s stored on your local machine.

Copy the command to your clipboard. And you go to my command prompt and all you have to do is simply just paste in the command, hit enter. It’s that easy to connect to your virtual machine on Azure. 

Now, suppose that connection was not successful. Azure also has in-context troubleshooting options where you can test your SSH connection or use the Azure troubleshooter experience to figure out what else is going on, so you can effectively diagnose your connection and get ready to connect to your VM.

As you see, Azure has made it super easy to create a Linux VM SSH key on Azure. All you have to do is provide the virtual machine name and to connect to it, all you have to do is copy and paste one command.


Previous Article
Next Article

Similar Reads

Microsoft Azure - Resize a Azure Virtual Machine for Windows or Linux Servers
In this article, we will look into the process of resizing Azure VM size for Linux and Windows servers. Implementation: Follow the below steps to resize a Azure Virtual Machine with new size. Note: The Process is same for both the Windows and Linux OS Servers. Step 1: Log in to Azure Portal. Step 2: Go to Virtual Machines and select your Virtual Ma
2 min read
Microsoft Azure - RDP to Azure Virtual Machines using Azure Bastion
In this article, we will learn how to do RDP(Remote Desktop Protocol) / SSH(Secure Shell) Connection to an Azure VM using Azure Bastion. First, let's discuss Azure Bastion. The Azure Bastion service is a fully platform-managed PaaS service that you provision inside your virtual network. It provides secure and seamless RDP/SSH connectivity to your v
3 min read
Microsoft Azure - Setting up a Auto Shutdown For Azure Virtual Machine
Setting up an Auto-shutdown will help in reducing the cost of azure virtual machines. This setup is very useful during non-working hours as it saves cost and is a good practice for working with VMs in Azure. Implementation: Follow the below steps to set up auto-shutdown of Azure Virtual Machines: Step 1: Login to Azure Portal at https://portal.azur
2 min read
Microsoft Azure - Retrieve Azure Virtual Machine Admin User Name
In this article, you will get to know, how you can find an azure Virtual machine admin user name in crucial situations to recover an azure VM Username. Purpose - this username will help you to reset an azure VM password in the absence of Admin or else if some forget or In case of verifying the username. Implementation: Follow the below steps to fin
1 min read
Microsoft Azure - Manage Virtual Machine via Azure Mobile App
In this article, you will get to know how to stay connected and in control of Azure virtual machines while using the Azure mobile app. The Azure mobile app is also called a VM app. Implementation: You would see the metric chart and find that spike visually via the chart and then you have those commands available for you that you can just in one cli
2 min read
Microsoft Azure - Track CPU Utilization of a Azure Virtual Machines using KQL Log Query
In this article, we will look into the process of finding the Minimum, Average, and Maximum CPU Utilization of all Azure Virtual Machines using KQL Log Query. Here the Perf KQL Counter Operator is used to find Azure Virtual Machines performance from collected data logs. Implementation: Follow the below steps to Run the Log Queries. Step 1: Log in t
4 min read
Microsoft Azure - Get Azure VM Properties using Azure PowerShell
The purpose of using the Azure PowerShell Commands is to quickly analyze the overall properties of VM/VMs at once the filtering the with select and where conditions. To find the properties of an Azure VM, you can perform the following commands in Azure Cloud Shell to get the details. Command: Get-AzVM Output: 1. Get all properties of an Azure Virtu
2 min read
Microsoft Azure - Configure Azure SQL with Azure CLI
In this article, we're going to take a closer look at how you can configure something like connectivity using the Azure CLI. What we have here is we are in Azure Data Studio and similar to the SQL notebook we are actually using a PowerShell notebook. That just means all our code cells are going to run PowerShell and we are just connecting to localh
4 min read
Microsoft Azure - Get CPU Utilization Data of a Azure VM in Azure Portal
Azure Virtual Machines (VM) is one of several types of on-demand, scalable computing resources that Azure offers. In this article, we will look into the process of getting the CPU Utilization data of an Azure VM in Azure Portal. Implementation: Follow the steps to get the CPU Utilization of an Azure VM in Azure Portal: Step 1: Log in to your Azure
2 min read
Microsoft Azure - Archive Azure VM to Azure Storage Account
In this article, we will be implementing a solution to archive a select azure VM snapshot to a select storage account for archiving using azure cloud shell. For implementation, we will be using Azure CLI commands. Prerequisite:VM SnapshotA storage account is neededUser needs "Storage Blob Contributor Data" IAM Role Access on Archiving Storage Accou
2 min read