I couldn’t find an easy way to pass the multiple tags using azure_tag / azure_tags details using the command line.
Also, tried using an .hcl file with content
locals {
azure_tags = {
"managedby" = "packer"
"choco_branch" = "master"
"choco_project" = "chocoautorefresh"
}
}
OR
azure_tags = {
"managedby" = "packer"
"choco_branch" = "master"
"choco_project" = "chocoautorefresh"
}
When I pass the file tags.hcl to var-file param I see the following error
Error reading variables in 'tags.hcl': invalid character 'ï' looking for beginning of value
Need a mechanism to pass multiple tags to packer.exe build command either through -var or -var-file option.