packer-plugin-azure
packer-plugin-azure copied to clipboard
Create new output vars
Description
Add/create output variables that contain the name of the resources packer spun up. If packer spun up a VM/NIC/HDD then it'd look something like the below still following the "Randomized" logic already in place.
e.g.
build.vm_name=pkrvm*
build.nic_name=pkrni*
build.osdisk_name=pkros*
etc
etc
Use Case(s)
The use case I've had in mind is if packer fails or the pipeline run is canceled it leaves behind resources it provisioned.
If I knew or could know the name of the resources it spun up I could write a simple shell script to be executed on packer failure to ensure the resources it spun up are indeed gone.
Potential configuration
NA
Potential References
NA