I'm trying to add multiple tags through a variable using Azure-CLI (using Powershell Core).
az resource tag --tags ${tagsToAdd} --id $resource.id
Where $tagsToAdd="a=b c=d"
But this gives me only one tag :
"tags": {
"a": "b c=d"
}
What is wrong with this? Using az resource tag --tags a=b c=d --id $resource.id
correctly produces two tags.