I'm trying to deploy two VMs in to selective availability zones in my Azure subscription. I was referring the code below to to get an idea how zone works with Azure VM deployment.
"zones": "[split(string(add(mod(copyIndex(),3),1)), ',')]"
Now I am trying to parameterize or introduce variable in some way so that I can have two different zone explicitly defined for two VMs and but works with any zone number between 1 to 3.
Does anyone know how I would achieve this?