Skip to content

azure_tags are not carried to the artifactTags on the Azure proxy resource #547

@alguimodd

Description

@alguimodd

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

  1. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions