hashicorp / packer-plugin-azure

Packer plugin for Azure Virtual Machine Image Builders
https://www.packer.io/docs/builders/azure
Mozilla Public License 2.0
47 stars 76 forks source link

Support for custom resource build suffix #414

Open antoni0shuleshov opened 1 month ago

antoni0shuleshov commented 1 month ago

Description

Add an optional parameter custom_resource_build_suffix, that is similar to custom_resource_build_prefix. If this parameter is set the temporary resources will be named accordingly. E.g. Azure KeyVault resource will be named custom_resource_build_prefixresourcetypecustom_resource_build_suffix If custom_resource_build_suffix is not set the name will be custom_resource_build_prefix + resourcetype + 5 character random alphanumeric string

Use Case(s)

In case of using Azure Policy that enforces special naming convention packer script will fail.