Ephemeral OS disk examples use ReadWrite caching #25275
Open
Description
Is there an existing issue for this?
- I have searched the existing issues
Community Note
- Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
- Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
- If you are interested in working on this issue or have submitted a pull request, please leave a comment and review the contribution guide to help.
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
https://github.com/hashicorp/terraform-provider-azurerm/tree/7f80c0bb23fe7835ded5e88c3217bdaef071a615/examples/virtual-machines/linux/ephemeral-os-disk
Debug Output/Panic Output
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:
The examples should be updated to use ReadOnly caching.
Actual Behaviour
No response
Steps to Reproduce
terraform apply -auto-approve -var location=eastus -var prefix=test
Important Factoids
No response