Skip to content

Commit 699cae4

Browse files
Set OS disk caching to ReadOnly for VMSS
Changed the OS disk caching mode from ReadWrite to ReadOnly in the azurerm_windows_virtual_machine_scale_set resource to improve performance and align with ephemeral disk best practices.
1 parent 2efcd27 commit 699cae4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

gh-runners/vmss.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ resource "azurerm_windows_virtual_machine_scale_set" "vmss" {
5959

6060
# Ephemeral OS disk for faster provisioning and auto-cleanup
6161
os_disk {
62-
caching = "ReadWrite"
62+
caching = "ReadOnly"
6363
storage_account_type = "Standard_LRS"
6464
diff_disk_settings {
6565
option = "Local"

0 commit comments

Comments
 (0)