Overview of the Issue
When creating a Compute Gallery Image using Packer, azure_tags are correctly applied to the resource on the owner subscription, but if the Image Version is fetched from another subscription using the Azure proxy resource the artifactTags returned is an empty list.
Reproduction Steps
- Create an image with Packer with
azure_tags set.
sig image-version list -r GalleryName -g gallery_resource-group -i imageDefinitionName
[...]
"tags": {
"key1": "value1",
[...]
az sig image-version list-shared --gallery-unique-name GalleryUniqueID -i imageDefinitionName --location westus2 --shared-to tenant
[
{
"artifactTags": {},
[...]
Plugin and Packer version
Using FROM docker.io/hashicorp/packer:1.14.2@sha256:250bf3081634255dcabb112ceefd8c77f0b9093e16b21a15516d03a7e996d239 AS packer
Simplified Packer Buildfile
source "azure-arm" "arm" {
azure_tags = {
key1 = value1
Overview of the Issue
When creating a Compute Gallery Image using Packer,
azure_tagsare correctly applied to the resource on the owner subscription, but if the Image Version is fetched from another subscription using the Azure proxy resource theartifactTagsreturned is an empty list.Reproduction Steps
azure_tagsset.Plugin and Packer version
Using
FROM docker.io/hashicorp/packer:1.14.2@sha256:250bf3081634255dcabb112ceefd8c77f0b9093e16b21a15516d03a7e996d239 AS packerSimplified Packer Buildfile