You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Error: expanding `os_disk`: `diff_disk_settings` can only be set when `caching` is set to `ReadOnly`
with azurerm_linux_virtual_machine.main,
on main.tf line 39, in resource "azurerm_linux_virtual_machine""main":
resource "azurerm_linux_virtual_machine""main" {
Expected Behaviour
The ephemeral OS disk examples use ReadWrite caching, which is not allowed when diff_disk_settings is used to enable ephemeral OS disk:
-> **NOTE:**`diff_disk_settings` can only be set when `caching` is set to `ReadOnly`. More information can be found [here](https://docs.microsoft.com/azure/virtual-machines/ephemeral-os-disks-deploy#vm-template-deployment)
The text was updated successfully, but these errors were encountered:
Is there an existing issue for this?
Community Note
Terraform Version
1.6.4
AzureRM Provider Version
3.96.0
Affected Resource(s)/Data Source(s)
azurerm_linux_virtual_machine, azurerm_windows_virtual_machine, azurerm_linux_virtual_machine_scale_set, azurerm_windows_virtual_machine_scale_set
Terraform Configuration Files
Debug Output/Panic Output
Expected Behaviour
The ephemeral OS disk examples use ReadWrite caching, which is not allowed when
diff_disk_settings
is used to enable ephemeral OS disk:terraform-provider-azurerm/examples/vm-scale-set/linux/ephemeral-os-disk/main.tf
Line 57 in 7f80c0b
terraform-provider-azurerm/examples/virtual-machines/linux/ephemeral-os-disk/main.tf
Line 60 in 7f80c0b
terraform-provider-azurerm/examples/vm-scale-set/windows/ephemeral-os-disk/main.tf
Line 57 in 7f80c0b
terraform-provider-azurerm/examples/virtual-machines/windows/ephemeral-os-disk/main.tf
Line 60 in 7f80c0b
The examples should be updated to use ReadOnly caching.
Actual Behaviour
No response
Steps to Reproduce
Important Factoids
No response
References
terraform-provider-azurerm/website/docs/r/linux_virtual_machine.html.markdown
Line 303 in 7f80c0b
The text was updated successfully, but these errors were encountered: