Creating A Windows Virtual Machine On The Azure Portal And Expanding The OS Disk

In this article, I am going to show you how to create the Windows Virtual Machine in the Azure Portal and also how to expand the OS disk in the Virtual Machine.Here, Windows Virtual Machine has been built through the Azure Portal.This method provides a browser-based UI for Creating and configuring and managing the VM.
 
Prerequisites
  • An Azure Subscription.
What is Windows VM? 
 
A virtual machine (VM) is an operating system (OS) or application environment that is installed on software, which imitates dedicated hardware. The end user has the same experience on a virtual machine as they would have on specialized equipment.

Follow the steps to create the Windows Server 2016 VM,
 
Step-1
 
Sign-in into the Azure Portal.
 
Step-2
 
Click "+New" and Select "Compute" then Choose followed by "Windows Server  2016 Datacenter".

 

Step-3
 
Enter the required Virtual machine Information on the Basic blade, then remember the username and password that is used to log in to the VM.Then press OK.

 

Select the Size of our VM and select View all for additional options.Then Choose "select."



In the settings blade, don't change anything and keep the defaults then choose Ok.

 

On the Summary Blade, Press OK to create the Virtual Machine.

 
 
Step-4
 
After the successful deployment, Our VM properties are shown in the Properties blade.Press connect. The Remote desktop Protocol file is created and downloaded in the browser.

 

Step-5
 
To connect our VM, Open the RDP file, and it asks for the establishment of a connection.Press Connect.
 

Enter the Username and password that we have given in the creation of Virtual Machine, then press OK.

 
 
Then you may receive the certificate and press "Yes" to establish the connection.

 
 
Step-6

Our VM connection is initialized and shown on our Local Machine. Then open the System Configuration that shows our Configuration of our VM.

 

Step-7
 
Open the File Explorer; then you see our Local disk space is low.We need to expand the OS Disk. Our Default Os drive has 127GB space only. It is possible to expand the disk and also the addition of a disk is also possible. 

 
 
Follow the steps to Expand the OS Disk,
 
Step-8
 
Return to our Azure Portal and open our VM Properties then Press Stop to Stop our VM.

 

In our VM Resources blade, Choose the Disk on the left side ribbon of our VM and click the Disk.

 

In the Size field, Enter the disk space you wanted and then Press Save.

 

Step-9 

Start our VM and connect the VM and Search for the Server Explorer and open it. Then choose File and Storage Services.

 

Choose disks, under the volumes tab and Right-click our volume then choose Extend Volume.

 

It Opens the Extend Volume Windows, enters the disk space we wanted to extend and Press OK.

 
 
Finally, open the File Explorer and open our This PC then it shows the Volume Size of OS disk is Changed.

 

Summary 

I hope that you understood how to create the Windows server 2016 VM in the Azure Portal, and then I demonstrated how to expand our OS disk using the Azure Portal.

Similar Articles