Repo that can be used to automate the process of building Azure VM images (using Packer and Powershell DSC) and then using the generated images to spin up single VMs or scalesets in Azure.
Primary folder is "packer-win2019-IIS-Php". It has the following contents
- packer template
- powershell dsc script
- packer dsc provisioner, plugin that needs to reside alongside the packer exe file
- packer exe file ..* since packer should be able to locate the packer dsc provisioner so 2 options are download both packer exe and provisioner exe to a known location in the repo and modify the PATH variable to use this version of packer exe --* or use a self-hosted agent and set up the environment accordingly
- Build yaml for someone to base their build pipeline of
- Try out Azure Image Builder Service that uses packer behind the scene
- Try out Azure Shared Image Gallery Service to store the generated images
Greatly appreciate the below blogs posts for the insight and guidance
Sam Cogan guideline on Packer Images + Azure Devops
Arinam Hazra blog post on simple image automation with packer