Skip to main content

Command Palette

Search for a command to run...

How to deploy Azure virtual machine on Linux Box - step-by-step

A virtual machine (VM) is a virtualized instance of a computer system used to create a whole new separate environment for computing operations.

Published
2 min read

To start you need to login to Azure portal (portal.azure.com) with your subscription acount. Type portal.azure.com into the browser and a login dialog box will be presented to you. Or open a Powershell command prompt and type in az login. This will produce the same result.

  1. Login to Azure portal

First Option: Called via the browser; type into the browser the url as shown below

Opens account login dialog box

Second option: Open the Windows PowerShell and type the command az login

Called via az login

  1. Azure dashboard opens as shown below

    1. Click on Create + a resource

4. On the right pane, under virtual machine, click on Create

  1. Click on create new to create a new Resource group

6. Give the virtual machine name

  1. Select the image which is the Linux operating system flavor

  1. Accept the default administrator username which is set at azureuser and leave the authentication type at SSH public key

  1. Go to Monitoring tab and disable monitoring for security reasons

  1. Leave the rest of the tabs as defaults if you don't have needs to change them

Management tab as default

Advanced tab as default

Tags tab as default

  1. Click Review + create to begin the process of creating the VM

Review completed and about to create, click on Create to begin

  1. Generate and download Key pairs to your system

Deployment in progress

  1. Deployment is completed, click on Go to resource

See the overview of the VM instance created

  1. Click on Connect to connect to the Linux VM just created

  1. Click on Select to use Azure Cloud Shell to connect

Azure Cloud Shell is launched as shown below

Expand the Cloud Shell window

This can also be connected via PowerShell as shown below

So, you have your VM now created as shown below

Resource group

List of Virtual Machines

That's it. Thanks for reading; hope you find it useful.