Microsoft recently increased maximum Virtual disks size for all Azure datacentres. Now we can create disks up to 4TB and assign to Virtual machines. This also increases total capacity supported up to 256TBs per VM.
At the moment, we cannot create large disks or resize using the Azure Portal, and this needs to be done using an ARM template. Portal changes are planned to be rolled out within next few weeks along with the support for Azure backups and also Azure Site Recovery (Migration & DR).
Since the OS disks get created as a MBR drive, maximum supported for the OS disk is still limited at 2TB, however, Data disks can be attached up to 4TB of capacity.
In this blog post, let’s look at how we can create a 4TB Data disk using Resource Manager Templates and using PowerShell.
ARM Template for adding new 4TB Data disk for an existing VM
Step 01 – Making sure that you are running latest version of Azure PowerShell
Step 02 – create a managed disk using Azure Powershell
$ResourceGroupName = "NT-Proj01-RG1" $location = "australiaeast" $datadiskName = "4tbd1" New-AzureRmDisk -DiskName $dataDiskName -Disk (New-AzureRmDiskConfig -AccountType StandardLR -Location $location -CreateOption Empty -DiskSizeGB 4095)` -ResourceGroupName $ResourceGroupName
Looking at my resource group, I can now view my new disk resource
Step 03 – Attach new disks into a virtual machine
In my example below I’m using the Azure portal to assign our new 4TB disk which we created.
Hit save and the VM will get updated. After that, I’m going to login to the VM and have a look at the attached disk.
Using ARM Template
{ "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", "contentVersion": "1.0.0.0", "parameters": { "datadiskname": { "defaultValue": "4tbdatad3", "type": "String" } }, "variables": { }, "resources": [ { "type": "Microsoft.Compute/disks", "name": "[parameters('datadiskname')]", "apiVersion": "2016-04-30-preview", "location": "australiaeast", "properties": { "accountType": "Standard_LRS", "creationData": { "createOption": "Empty" }, "diskSizeGB": 4095 }, "dependsOn": [] } ], "outputs": { } }