A high-performance, durable block storage designed to be used with Azure Virtual Machines and Azure VMware Solution.
Hello Kunal.
Thank you for your question. I understand the concern around cost optimization when the Azure Marketplace image (Windows Server 2022 + SQL Web) provisions a 128 GB OS disk by default, even though your actual usage is much lower.
Why the Azure portal blocks reducing OS disk size
Azure does not support shrinking an OS disk in place. Managed disks—especially OS disks—can only be expanded, not reduced, to prevent data corruption or boot issues. This is expected behavior, and the Azure portal correctly enforces this limitation.
Recreate the VM with a smaller OS disk
The only supported way to truly reduce OS disk size is to create a new VM:
- Use a base Windows Server 2022 image (which allows OS disk size selection)
- Specify a smaller OS disk (e.g., 64 GB) at creation time
- Install SQL Server Web manually
- Migrate databases and application data (preferably on data disks)
This approach is fully supported and avoids risks associated with unsupported disk manipulation.
Use a custom image
If you want to keep the same configuration:
- Generalize (Sysprep) the VM
- Capture a custom image
- Deploy a new VM from that image and choose a smaller OS disk, if the image supports it.
Optimize data placement (Best practice for SQL workloads)
While the OS disk can’t be reduced:
- Move SQL data, logs, and backups to separate data disks
- Right‑size data disks based on actual usage
- For data disks, the supported way to reduce size is to create a smaller disk, migrate data, and delete the larger disk
This pattern is officially documented and supported for data disks.
Reducing or shrinking an Azure VM OS disk is not supported and may result in data loss or an unsupported configuration. Always ensure backups are in place before any disk or VM re‑creation activities.
If the issue persists or you’d like guidance on recreating the VM or migrating SQL workloads safely, please comment in the Comment section, and we’ll be happy to assist further and respond promptly.
Thanks,
Manish.