04 Feb

Extend Microsoft Azure Data Disk & OS Disk

Extend Microsoft Azure Data Disk & OS Disk

To extend Microsoft Azure Data Disk & OS Disk,  the Powershell method can be used for both Classic and ARM models. By default, the OS disk will be 30 GB for Virtual Machines, which may not be sufficient as the ore data is started to get saved into the OS drive.

Extend Data Disk using Powershell – Classic Mode

To extend a Data disk in an Azure Virtual Machine in Classic Mode, we need to perform the below steps,

  1. Open the Windows Powershell ISE and execute the below script

Extend Data Disk using powershell – ARM Mode

To extend a Data disk in an Azure Virtual Machine in ARM Mode, we need to perform the below steps,

  1. Open the Windows Powershell ISE and execute the below script

Extend OS Disk using Powershell – Classic Mode

To extend a OS disk in an Azure Classic Mode Virtual Machine, we need to perform the below steps,

Open the Windows Powershell ISE and execute the below script

Extend OS Disk using Powershell – ARM Mode

To extend a OS disk in an Azure ARM mode Virtual Machine, we need to perform the below steps,

Open the Windows Powershell ISE and execute the below script

Extend the File System Volume of Extended Data or OS Disk – Windows

Once the data disk is extended, the next step is to extend the file system volume on that data disk. For Windows based virtual machines, You can do the volume extension from Server Manager -> Tools -> Computer Management -> Disk Management

Step 1. Open the Server Manager Window

Extend Microsoft Azure Data Disk & OS Disk

Step 2 : Click Tools and then click Computer Management

Extend Microsoft Azure Data Disk & OS Disk

It will open up a window similar to the below picture. Click the Disk Management menu. It will list all the available volumes.

Extend Microsoft Azure Data Disk & OS Disk

Select the Volume, that you wish to extend. Right click the volume to open the menu. Click the Extend Volume option.

Extend Microsoft Azure Data Disk & OS Disk

Click Next button as shown below

Extend Microsoft Azure Data Disk & OS Disk

Then select the size as shown below. Here, we are using a sample volume to extend. So we are extending by 397 MB. After the size is selected, click “Next

Extend Microsoft Azure Data Disk & OS Disk

Now click “Finish” to complete the volume resize.

Extend Microsoft Azure Data Disk & OS Disk

Now you will see the extended volume under Disk Management.
Extend Microsoft Azure Data Disk & OS Disk

https://docs.microsoft.com/en-us/azure/virtual-machines/virtual-machines-windows-expand-os-disk

https://blogs.msdn.microsoft.com/cloud_solution_architect/2016/05/24/step-by-step-how-to-resize-a-linux-vm-os-disk-in-azure-arm/

Leave a Reply

Your email address will not be published. Required fields are marked *

20 + four =