I would like to port my packer recipe from aws to azure.
I use amazon-ebssurrogate to create an hardened version of Ubuntu (basically running hardening scripts on the os disk, format the second drive with wanted partitions and rsync/chroot to finalize).
I looked to azure-chroot which does not seems to fit my needs.
I don’t know if someone has lived the same issue.
It seems I have some options :
- look at azure-arm and find a way to create shared image using the second drive
- spawn a packer machine to use azure-chroot (and do the partitionning prior the chroot)
- build locally on hyper-v then migrate the image to the gallery
Thanks for the reading and the possible answer