'Azure VM: OS disk size

After creating a Windows Server Virtual Machine in Azure I noticed that the OS disk (C: drive) is only 30GB in size.

My impression was that all new VMs have 127GB OS disk size. (Expand the OS drive of a Windows VM in Azure)

Could someone clarify please?

Edit

Also, I was creating a VM using my MSDN subscription - could that be the cause of this?

Edit 2

I managed to increase the OS drive size by running the following (as described in linked article above). Then I had to resize the disk inside the OS.

Login-AzureRmAccount
Select-AzureRmSubscription -SubscriptionName 'my-subscription-name'
$rgName = 'my-resource-group-name'
$vmName = 'my-vm-name'
$vm = Get-AzureRmVM -ResourceGroupName $rgName -Name $vmName
Stop-AzureRmVM -ResourceGroupName $rgName -Name $vmName
# Set the size to whatever is needed.
$vm.StorageProfile.OSDisk.DiskSizeGB = 1023
Update-AzureRmVM -ResourceGroupName $rgName -VM $vm
Start-AzureRmVM -ResourceGroupName $rgName -Name $vmName


Solution 1:[1]

The disk size has been changed from 127GB to 30GB by Microsoft yesterday. But that size is way too small. Once you install some applications your disk is full. It has to do with the way managed disks are invoiced. Allocated space instead of used space.

Solution:

  1. shutdown VM
  2. change size of OS disk
  3. start VM
  4. extend volume in disk management

Microsoft did the change without informing their clients, changing documentation,... waiting for news from the account manager but that is the info I got from technical contact.

Solution 2:[2]

You are correct, saw that yesterday. A way to circumvent this for the moment: I am using ARM to create the VMs, and now you can specify the disk size (to 60GB or 200GB, whatever you want), but the actual C partition is only 30GB. You need to go to Computer Management and expand the size of the C partition to occupy the entire disk. Also, if using ARM for provisioning, you could use the previous SKU version of the Windows 2012 R2 / Windows 2016 OS image. Hope that helps anyone!

Solution 3:[3]

By default a temporary vhd is created for temporary files, so we need to add a disk to store the os... the default second disk is automatically added for the Os (for example in A1 basic, the temp disk is 40 Gb, and the second disk is 127 Gb) this extra second disk need to be calculated for price estimation (it should be there by default in the calculator) Frederic.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Malte Schwerhoff
Solution 2
Solution 3