0% found this document useful (0 votes)
139 views

Create Virtual Machine in Azure

To create a virtual machine in Azure, one logs into their Azure account and searches for the Virtual Machine service. They select the subscription and resource group to create the VM in. Details like the VM name, region, OS image, size, and authentication method are specified. Networking details such as the virtual network, subnet, and public IP are also configured. Once additional options are selected, the VM is created.

Uploaded by

Pratyush Swain
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
139 views

Create Virtual Machine in Azure

To create a virtual machine in Azure, one logs into their Azure account and searches for the Virtual Machine service. They select the subscription and resource group to create the VM in. Details like the VM name, region, OS image, size, and authentication method are specified. Networking details such as the virtual network, subnet, and public IP are also configured. Once additional options are selected, the VM is created.

Uploaded by

Pratyush Swain
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 16

Create Virtual Machine (VM) in Azure

To create Virtual Machine (VM) in Azure, please follow below steps.

Step 1: Login to your Azure account.

Step 2: Search and goto Virtual Machine service.

https://www.linkedin.com/in/themr255/
Create Virtual Machine (VM) in Azure
Step 3: Here you will see all the virtual machines present in your subscriptions and which of them are
running and other info. And look for the subscription which is selected, you can change the subscription
in subscription filter if your VM is present in other subscription or you can select ALL value in
Subscription filter.

And as of now, we don’t have any virtual machines present in our subscription.

So now, we’ll create a Virtual Machine (VM) and then will connect to it.

https://www.linkedin.com/in/themr255/
Create Virtual Machine (VM) in Azure
Create Virtual Machine in Azure -
Step 1: Click on Create button.

Step 2: Now click on Azure Virtual Machine.

https://www.linkedin.com/in/themr255/
Create Virtual Machine (VM) in Azure
Step 3: Select and enter all required details a shown below,

Select Subscription in which you want to create your VM

Select Resource Group in which you want to create your


VM, select existing one or you can create a new one

Enter VM name

Select Region in which you want to create your VM

Select option as No Infra redundancy required, will discuss in


detail in next session

Scroll down a bit and select option as shown below,

Select Security Type as Standard

Select Ubuntu Image, here we selected Ubuntu 20.04 LTS

Select VM Architecture as x64

Select VM Size for RAM and CPU, you can


change the size as per requirement

Select Authentication Type as Password


Again you can change it to SSH Key as per requirement

https://www.linkedin.com/in/themr255/
Create Virtual Machine (VM) in Azure
Scroll down a bit and select options as shown below,

Enter Username for VM

Enter Password for VM

Select Allow Selected Ports to allow access

Select Port - SSH (22), so we will be able


to access that VM else you will need to
add it manually. If OS is Windows, then
select Port as RDP (3389).

Step 4: Click on button - Next: Disks >

Step 5: Select and enter info as shown below.

Select the OS Disk, here we are selecting as


Standard SSD. Change based on requirements

Click on Checkbox if you want to delete when


associated VM gets deleted i.e. VM which we are
creating

https://www.linkedin.com/in/themr255/
Create Virtual Machine (VM) in Azure
Scroll down a bit, then select and enter info as shown below,

Select the Key Management, here we are


keeping it as default to Platform-managed key.

You can attach any existing managed disk if you have


OR
You can create and then attach that managed disk

Step 6: Now click on button – Next : Networking >

Create a new Virtual Network (VNET) else you


can select the existing VNET

Select the Subnet

Select Public IP if any present in your


subscription, else keep it as new.

Select NIC Network Security Group, here


we’re selecting as Basic

https://www.linkedin.com/in/themr255/
Create Virtual Machine (VM) in Azure
Scroll down a bit, then select and enter info as shown below.

Select if you want to allow traffic on Ports

Select Ports on which you want to allow traffic

You can select this option if you want NIC


and Public IP associated with this VM.

You can mark this checkbox if you want low


latency & high throughput on NW Interface

Select Load Balancing Option, in this


example we’ll keep it as None. You can
use Azure Load Balancer or Application
Gateway as per requirement.

Step 7: Now click on button – Next : Management >

Step 8: Select and enter the info as shown below,

Select checkbox if you want to create System


Managed Identity else leave it as unchecked

To enable corporate Active Directory credential


to login to VM else leave it as unchecked

https://www.linkedin.com/in/themr255/
Create Virtual Machine (VM) in Azure
Scroll down a bit, then select or enter info as shown below.

Select checkbox if you want to configures


your virtual machine to automatically Shut
down daily.

Select Patch orchestration options, else leave it


as default. This allow you to control how patches
will be applied to your virtual machine.

Step 9: Now click on button – Next : Monitoring >

Step 10: Select and enter the required info as shown below,

Enable this checkbox if you want


to Add commonly used alert rule

Enable this feature to troubleshoot boot failures


for custom or platform images.
Note – This can increase the cost for data traffic in
storage account

Enable it to get metrics every minute for


your virtual machine and use it to set alert
for your VM.

Step 11: Now click on button – Next : Advanced >

Step 12: Select and enter the required info as shown below,

https://www.linkedin.com/in/themr255/
Create Virtual Machine (VM) in Azure

Select extension to add new features, like


configuration management, for e.g. Custom
Script Extension

Using this option, you can easily add or


remove applications on your VM after VM
creation.

Scroll down a bit, then select and enter info as shown below,

Use this to inject/pass a script or other


metadata or pre-install packages into a
Microsoft Azure virtual machine (VM) at
provisioning time.

If you want any file or data to be accessible


to your applications throughout the
lifetime of the virtual machine.

Scroll down till the end if the page, as we will keep those option as default for this example.

Step 13: Now click on button – Next : Tags >

https://www.linkedin.com/in/themr255/
Create Virtual Machine (VM) in Azure
Step 14: Select and enter the required info as shown below,

Added tag for environment. You can identify


the resources based on tags and also you can
use it Azure Policy.

You can add more tags as per requirements

Step 15: Now click on button – Next : Review + create >

Step 16: Click on Create button.

Here you can see, how much cost it will incur


per hour for your VM.

https://www.linkedin.com/in/themr255/
Create Virtual Machine (VM) in Azure
Now you will this message, as Deployment is in progress as it is deploying our VM and its associated
resources

Wait for few minutes, then you will see below message that your deployment is complete

https://www.linkedin.com/in/themr255/
Create Virtual Machine (VM) in Azure
Step 16: Click on Go to resource button to goto your newly created VM. And now you can see your VM.

Now you can also goto Virtual Machine Service to see what virtual machines are present now. Check the
steps given at start of this document. And then you will see all the VMs present in your subscription.

https://www.linkedin.com/in/themr255/
Create Virtual Machine (VM) in Azure
Connecting to Virtual Machine using Serial Console -
Step 1: Goto your Virtual Machine.

Step 2: Search Serial Console in search bar.

https://www.linkedin.com/in/themr255/
Create Virtual Machine (VM) in Azure
Step 3: Click on Serial Console button.

Step 4: Enter Username and Password to login to VM.

If the user credentials are correct then you will be able to access the VM using Serial Console.

Step 5: To disconnect serial console session / Logout just execute below command,

exit

https://www.linkedin.com/in/themr255/
Create Virtual Machine (VM) in Azure
Connecting to Virtual Machine using SSH Client -
Step 1: Goto your Virtual Machine.

Step 2: Copy Public IP of your VM.

Note – Port 22 inbound is already added when we created the VM

Step 3: Open Putty application and enter Public IP copied from Step 2 in host field and port should be
22.

https://www.linkedin.com/in/themr255/
Create Virtual Machine (VM) in Azure
Step 6: Click on Open button.

Step 7: Enter the user name and password to login to VM. Hit Enter button.

And that’s it, finally you are able to connect to your Azure Virtual Machine using SSH Client i.e. Putty

https://www.linkedin.com/in/themr255/

You might also like