azurerm_linux_virtual_machine contains a “zone” key, where we can input a zone number such as 1, 2 or 3 for an azure vm. This works fine for a single VM. However, if I want to deploy n number of virtual machine and I add “count” variable in the resource, then how can I automatically calculate the zone key so that each VM is deployed on different zone.
Eg, I want to stand up 5 VMs
vm1- zone -1
vm2- zone -2
vm3- zone -3
vm4- zone -1
vm]5- zone -2