Azure/azvmimagebuilder

How to set the VM image name?

030 opened this issue · 2 comments

030 commented

Currently the Azure Image Builder creates a random name consisting of 15 elements, e.g.: 3df452d3sr8fg67. The question is whether this could be overwritten and an image name could be set.

Related: https://devops.stackexchange.com/questions/15594/how-to-set-the-virtual-machine-name-using-azure-image-builder

What's the advantage of this? The VM it creates to conduct the customisations is temporary and gets deleted once completed.

030 commented

At the company a naming policy was enabled that enforces that the vm name should have a certain suffix. For now they removed the policy, but we wonder whether it would be possible to set a VM name to ensure that the naming policy can be enabled.