I have a piece of code that is creating 2 vms in Azure, I would like each VM in a different availability zone. I have the following line set:
zone = “2 + [count.index]”
When i run terraform plan it works says no issues but when i come to run apply it fails because it doesnt like the command. Is what i am trying to achieve possible or not? I thought about changing count.index to windows_vm_count to see if that would work.
The error i get is this:
Original Error: Code=“InvalidAvailabilityZone” Message="The zone(s) ‘2 + [count.index]’ for resource ‘Microsoft.Compute/virtualMachines/vmname’ is not supported
I dont know a huge amount about TF so please dont get too technical