ResourceModules icon indicating copy to clipboard operation
ResourceModules copied to clipboard

[Feature Request]: Expand ImageTemplate removal

Open AlexanderSehr opened this issue 3 years ago • 1 comments

Description

Once #1726 is merged, we should consider bumping up the image template removal a bit:

There is a similar logic for the DevOps Self-Hosted construct here.

There are 2 main differences compared to the implementation in #1726 (Remove-ImageTemplate.ps1):

  • The script filters for image template not in status new or running
  • The script filters all found image template essentially for the prefix. Main reason being - If I run the script multiple times, or something about the pipeline fails or anything, the full image template name will be lost.

AlexanderSehr avatar Aug 05 '22 19:08 AlexanderSehr

Agree, and I suggest to leverage the new namePrefix output of the image template module for the second point

eriqua avatar Aug 05 '22 19:08 eriqua

With the current logic the template is removed - but only if nothing goes wrong. And as the name is different on every run you'd need to update stuff manually

rahalan avatar Aug 16 '22 16:08 rahalan

Moved back to needs triage to suggest its closure given this won't be relevant with the new dependencies approach.

eriqua avatar Oct 05 '22 22:10 eriqua