A high-performance, durable block storage designed to be used with Azure Virtual Machines and Azure VMware Solution.
Hello Hoàng Ân
In Azure, changing the size of an OS disk typically does not require a VM reboot when done through the Azure Portal or Azure CLI . However, Terraform behaves differently due to the way it handles disk resizing operations.
This feature has the limitations on this to the below
- Install and use either:
- The latest Azure CLI
- The latest Azure PowerShell module
- The Azure portal
- Or an Azure Resource Manager template with an API version that's
2021-04-01or newer.
To avoid a reboot, the disk resize operation needs to be perceived by Terraform as a non-disruptive change or run using CLI commands.
Please let me know if you have further questions
You can mark it 'Accept Answer' if this helped.