Skip to content

Commit

Permalink
Enable DiskPlacementType setting for Azure VMs
Browse files Browse the repository at this point in the history
  • Loading branch information
sharsonia committed Jan 15, 2025
1 parent 6348227 commit 69d2a8b
Show file tree
Hide file tree
Showing 6 changed files with 1,033 additions and 14 deletions.
4 changes: 2 additions & 2 deletions lisa/sut_orchestrator/azure/arm_template.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ func getEphemeralOSImage(node object) object => {
name: '${node.name}-osDisk'
diffDiskSettings: {
option: 'local'
placement: 'CacheDisk'
placement: node.disk.ephemeral_disk_placement_type
}
caching: 'ReadOnly'
createOption: 'FromImage'
Expand Down Expand Up @@ -333,7 +333,7 @@ resource nodes_data_disks 'Microsoft.Compute/disks@2022-03-02' = [
}
]

resource nodes_vms 'Microsoft.Compute/virtualMachines@2022-08-01' = [for i in range(0, node_count): {
resource nodes_vms 'Microsoft.Compute/virtualMachines@2024-03-01' = [for i in range(0, node_count): {
name: nodes[i].name
location: nodes[i].location
tags: combined_vm_tags
Expand Down
Loading

0 comments on commit 69d2a8b

Please sign in to comment.