Skip to content

Commit

Permalink
Update main.bicep
Browse files Browse the repository at this point in the history
Possible fix for issue: #3850
  • Loading branch information
3891sinneD authored Nov 29, 2024
1 parent 5655db2 commit a567746
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion avm/res/compute/virtual-machine/main.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -515,7 +515,7 @@ resource managedDataDisks 'Microsoft.Compute/disks@2024-03-02' = [
diskIOPSReadWrite: dataDisk.?diskIOPSReadWrite
diskMBpsReadWrite: dataDisk.?diskMBpsReadWrite
}
zones: zone != 0 ? array(string(zone)) : null
zones: zone != 0 && !contains(dataDisk.managedDisk.storageAccountType, 'ZRS') ? array(string(zone)) : null
}
]

Expand Down

0 comments on commit a567746

Please sign in to comment.