Stretching a disk in Azure

A while back I covered Stretching a disk in AWS EC2.  Let’s take a look at how it’s done in Azure (Spoiler: it’s also quite simple).

For our example, we’ll be increasing the size of a Server 2016 OS managed disk from 30GB to 40GB.

serverdisk2.png

azuredisk1.png

First, we’ll need to stop the VM. Now, AWS currently supports increasing volumes on the fly- Azure does not…so as things currently stand, you need to schedule downtime.

azuredisk3.png

Once it’s fully stopped, we’re able to edit the Size field on the Disk > Overview tab.

azuredisk5.png

We’ll set the value to 40GB.

azuredisk6.png

Now, we can start the VM back up.

azuredisk7.png

 

In diskmgmt.msc, we can see the additional, unallocated 10GB.

azuredisk8.png

After extending the volume, it is available in the OS.

Azuredisk9.png

That’s it! Again, this is very simple. Now, I’d expect that we’ll eventually see the option to extend the volume while the VM is running, as it is a feature in Hyper-V.  For now, we’ll have to shut down to get volumes extended.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s