Skip to content

az copy image extension doesn´t support tags #134

Closed

Description

@sandrobxxx

Extension name (the extension in question)

"extensionType": "whl",
"name": "image-copy-extension",
"version": "0.0.5"

Description of issue (in as much detail as possible)

Dear all,

I just write a shell based automation script to copy images from a source region in multiple target regions. I would like to change the existing tags of the source image for the target images.

I just think about to tag the target images later on, but that´s also not supported with the az cli.
Does someone know a workaround? Or it´s planned to implement tags for the extension?

Because the workaround which I use for now is like:

  1. Create managed disk and source image
  2. Create all target images with tags in the source region
  3. Copy the target images from the source region and delete the temporary images in the source region

In addition, I don´t want to use powershell scipts because all our automations are based on Perl or shell.

Regards Sandro

Activity

  1. sandrobxxx commented on Apr 13, 2018

    @sandrobxxx
    Author

    In addition, a function like "--target-object-name" of the images extension will be also very helpful for me.

    Regards Sandro

  2. tamirkamara commented on Apr 13, 2018

    @tamirkamara
    Contributor

    Hi sandrobxxx

    1. I don't understand the end goal with the tag - you want to set tags for the new images that the extension creates?
    2. Setting the name of the new image (with target-object-name) - what is the use-case for this? also, the extension can create multiple copies so one name would result in multiple images with the same name in multiple regions... Is this the desired result?
  3. sandrobxxx commented on Apr 13, 2018

    @sandrobxxx
    Author

    Hi Tamir Kamara (@tamirkamara), thanks for the fast response,

    Regarding point 1: Tags are really important for use because we use an adaption of that also for different cloud provider. We have to set therefore a few tags for regions, kernel versions, productive or dev images and so one.

    1. We have several use cases for an target image name, in general we prepair and test our images in one region and want to copy this in all other target regions.
    • we have to add the target region in the image name like
    • we create also customer specific images which have to re-named during the copy in all regions

    Regards Sandro

  4. tamirkamara commented on Apr 16, 2018

    @tamirkamara
    Contributor

    sandrobxxx
    I want to clarify - if the extension will have a parameter to note the target image additional tags like:
    --target-tags tag1=value1 tag2=value2

    Does that accomplish what you need?

  5. sandrobxxx commented on Apr 16, 2018

    @sandrobxxx
    Author

    @ tamirkamara

    Yes correct, that´s more than helpful for us.

    Could you please check also for the target-object-name feature which I describe / requested before?

    Thanks Sandro

  6. added a commit that references this issue on Dec 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions