I have a text file with two names in it client1 and client2.
I have a Powershell script made to read the text file and my understanding of it is that it creates an array already.
$clientvariable = Get-Content -Path {FilePath}/{File};
Write-Host "vso[task.setvariable variable=clientname]$clientvariable
So now clientname has the value $clientvariable which is set to client1 client2 and I can index each position if needed.
How can I use this in an Azure pipeline YAML so that each name can be individually looked at and looped through one after the next?
The goal is to take each name and create a resource with the name from the file in conjuction with an ARM template i.e. client1SQLserver client2SQLserver
I've seen that you can use templates with parameteres to create for loops so would that work in this case or is there some other way to do what I'm looking for?
