For system, network and cloud administrators

How to update the size of an Azure managed disk using Azure PowerShell

It comes helpful to know how to update the size of a newly created disk in Azure. So, in your PowerShell session type:

New-AzDiskUpdateConfig -DiskSizeGB 64 | Update-AzDisk -ResourceGroupName yourresourcegroup -DiskName thenameofyourdisk

Verify:

Get-AzDisk -ResourceGroupName yourresourcegroup -Name thenameofyourdisk

Leave a Reply

Your email address will not be published.