Retrieving the randomized name Packer has selected. #3505
Replies: 2 comments 7 replies
-
Hi @JRobertsDS! The most useful parameter is https://www.packer.io/docs/builders/azure/arm#capture_container_name |
Beta Was this translation helpful? Give feedback.
-
Hi @miketimofeev and @JRobertsDS, I'm trying to capture the OSDiskUri value, so it can be used in another stage in my pipeline. my question is how can i get/capture/know the randmized value "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" and used it later to create my OSDiskUri value? The text here is from the link that was provided above: Thank you |
Beta Was this translation helpful? Give feedback.
-
Thanks for this project!
I am flummoxed in trying to retrieve the name that Packer has selected for the final image (.vhd) file.
The packer docs here: https://www.packer.io/docs/builders/azure/arm
say that Packer creates a random value and uses it to name many things including the final OS Disk Name, "pkros" + randomValue, and that's what appears in the storage account on azure.
I'd love to retrieve that random value during the build, but yowza, it's not obvious to me how to do it. Ideas?
Beta Was this translation helpful? Give feedback.
All reactions