An Azure service that is used to provision Windows and Linux virtual machines.
I will schedule whenever anyone is available to assist. Please reach out ASAP. ******@mtcrecovery.com or 6174-921-5791
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I'd like to contract a consultant to expand the OS disk for my VM. Anyone have a recommendation?
An Azure service that is used to provision Windows and Linux virtual machines.
I will schedule whenever anyone is available to assist. Please reach out ASAP. ******@mtcrecovery.com or 6174-921-5791
Can someone please reach out to me ASAP and schedule time to perform the upgrade.
******@mtcrecovery.com
617-921-5791
Hello @Stephen Pagana
You actually don't need a consultant for this! Expanding an OS disk on an Azure VM is a well-supported, self-service operation you can do entirely from the Azure portal or CLI.
It's a two-step process: resize the disk in Azure first, then extend the volume inside your OS. Here's exactly how to do it:
Before you start — take a snapshot
This takes 2 minutes and gives you a safety net in case anything goes sideways:
Portal: VM → Disks → click OS disk → Snapshots → Create
az snapshot create \
--resource-group <your-rg> \
--name <snapshot-name> \
--source <os-disk-name>
Step 1 — Deallocate the VM (brief downtime required for OS disks)
Unlike data disks, OS disk expansion does require the VM to be stopped and deallocated — a plain shutdown from inside the OS isn't enough.
Portal: VM → Overview → Stop (choose "Deallocate")
az vm deallocate --resource-group <your-rg> --name <vm-name>
Step 2 — Resize the disk in Azure
Portal: VM → Disks → click on the OS disk → Size + Performance → pick your new size → Resize
az disk update \
--resource-group <your-rg> \
--name <os-disk-name> \
--size-gb <new-size> # e.g. 256
Maximum supported OS disk size is 4,095 GB. And note — you can only go bigger, never smaller.
Then restart the VM:
az vm start --resource-group <your-rg> --name <vm-name>
Step 3 — Extend the volume inside the OS
Azure resizing the disk doesn't automatically expand the partition — you still need to tell the OS to use the new space.
For Windows (via PowerShell after RDP'ing in):
# Extend C: drive to use all available space
$maxSize = (Get-PartitionSupportedSize -DriveLetter C).SizeMax
Resize-Partition -DriveLetter C -Size $maxSize
# Confirm
Get-Partition -DriveLetter C | Select-Object DriveLetter, @{Name="SizeGB";Expression={[math]::Round($_.Size/1GB,2)}}
Open Disk Management → right-click C: → "Extend Volume" and follow the wizard.
Expand virtual hard disks on a Windows VM
https://learn.microsoft.com/en-us/azure/virtual-machines/windows/expand-disks
# Identify your OS disk device (usually /dev/sda or /dev/sdc)
lsblk
# Extend the partition (replace sda and 1 with your device/partition)
sudo growpart /dev/sda 1
# Resize the filesystem
# For ext4:
sudo resize2fs /dev/sda1
# For XFS (common on RHEL/CentOS):
sudo xfs_growfs /
# Verify
df -h
Note: On Ubuntu 16.04+, cloud-init handles the filesystem resize automatically after a reboot you may not need to run those commands at all.
Expand virtual hard disks on a Linux VM
https://learn.microsoft.com/en-us/azure/virtual-machines/linux/expand-disks
Recap :
| Snapshot > Protect your data first.
| Deallocate VM > Required for OS disk (brief downtime)
| Resize disk > Portal or CLI — pick your new size
| Start VM > Bring it back up
| Extend partition > Windows: PowerShell / Disk Mgmt. Linux: growpart + resize2fs
The whole process typically takes under 10 minutes.
References :
1.Expand OS disk – Windows
https://learn.microsoft.com/en-us/azure/virtual-machines/windows/expand-disks
2.Expand OS disk – Linux
https://learn.microsoft.com/en-us/azure/virtual-machines/linux/expand-disks
3.Create a snapshot of a disk
https://learn.microsoft.com/en-us/azure/virtual-machines/snapshot-copy-managed-disk
Thanks,
Manish.
AI answer
Expanding the OS disk of an Azure VM is a straightforward operation and typically does not require a consultant.
For a Linux VM:
df -Th
For a Windows VM:
If assistance is still preferred, look for Azure consultants or partners who specifically list experience with Azure Virtual Machines and disk management, but the documented steps above are the standard and supported way to expand OS disks.
References: