How to increase os disk size? by default linux vm will take 30GiB using os_disk block


I’m new to terraform and I have one requirement to increase the os disk size, as per terraform code default it’s taking 30 GiB if I want to increase it to 60 GiB what code needs to write?

I don’t want to add additional disks, just want to increase os disk size.

resource “azurerm_windows_virtual_machine” “example” {
name = “example-machine”
resource_group_name =
location = azurerm_resource_group.example.location
size = “Standard_F2”
admin_username = “adminuser”
admin_password = “P@$$w0rd1234!”
network_interface_ids = [,

os_disk {
caching = “ReadWrite”
storage_account_type = “Standard_LRS”