英文:
Is there a way to increase Azure VM OS disk size via terraform
问题
Azure VM 是通过 Terraform 代码创建的,OS 磁盘大小设置为 256 GB。
是否有办法在不重新创建 VM 的情况下增加 OS 磁盘空间(使用 Terraform)?
我的当前 Terraform 代码是:
os_disk {
name = "disk23"
disk_size_gb = 256
caching = "ReadWrite"
storage_account_type = "StandardSSD_LRS"
}
英文:
The Azure VM was created via terraform code with OS disk size set as 256 GB.
Is there a way to increase the OS disk space (using terraform) without recreating the VM?
My current terraform code is
os_disk {
name = "disk23"
disk_size_gb = 256
caching = "ReadWrite"
storage_account_type = "StandardSSD_LRS"
}
答案1
得分: 0
更改 disk_size_gb
的值并运行 terraform plan
,不会显示销毁操作,只会显示一个新的更改。
已更改为所需的值。
英文:
Changing the value on disk_size_gb
and running terraform plan
shows no destruction but just a new change.
Changed to the desired value.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论