Forum Discussion
AzureBrian
Mar 30, 2020Brass Contributor
How to increase size of unmanaged disk attached to classic VM
Greetings. I have a classic VM (using the old Service Manager model) that I need to expand the storage on. The disk in question is a data disk, not an OS disk, and it is an Unmanaged disk of type P...
- Apr 01, 2020
Thanks for clarify. Azure supports disk resize for Classic VMs also. Can you please try the steps mentioned here: https://docs.microsoft.com/en-us/archive/blogs/madan/resizing-azure-vm-os-or-data-disk
AzureBrian
Apr 01, 2020Brass Contributor
Thanks for your response Sirius. Yes, I know the unmanaged disk scenario is in the same doc, but I think that only works for Resource Manager deployments. Again, there's no language in the doc that mentions the Classic scenario. Also, I've tried the Powershell listed in that section and I basically get a null array of disks. So, I'm thinking the Classic scenario is not supported with that Powershell.
I have also tried using the Azure classic CLI and though I can reference the disks using this command:
azure vm disk
there doesn't appear to be a way to update the size of the disk using the update command:
azure vm disk update --help
help: Update properties of a data-disk attached to a VM
help:
help: Usage: vm disk update [options] <vm-name> <lun>
help:
help: Options:
help: -h, --help output usage information
help: -v, --verbose use verbose output
help: -vv more verbose with debug output
help: --json use json output
help: -c, --host-caching <name> the caching behaviour of disk [None, ReadOnly, ReadWrite]
help: -d, --dns-name <name> filter VMs for the specified DNS name
help: -s, --subscription <id> the subscription id
help:
help: Current Mode: asm (Azure Service Management)
Any other thoughts?
Sirius Kuttiyan
Microsoft
Apr 01, 2020Thanks for clarify. Azure supports disk resize for Classic VMs also. Can you please try the steps mentioned here: https://docs.microsoft.com/en-us/archive/blogs/madan/resizing-azure-vm-os-or-data-disk
- AzureBrianMar 05, 2021Brass ContributorThanks Sirius! I finally got around to doing this on a couple of client VMs because we couldn't avoid it any longer. The steps in this article were just what I needed and worked like a charm. Thanks again!