Skip to content

Latest commit

 

History

History
31 lines (19 loc) · 1.57 KB

README.md

File metadata and controls

31 lines (19 loc) · 1.57 KB

Building Azure VM images using Packer and Powershell DSC

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.

Build status

Content Details

Primary folder is "packer-win2019-IIS-Php". It has the following contents

  1. packer template
  2. powershell dsc script
  3. packer dsc provisioner, plugin that needs to reside alongside the packer exe file
  4. 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
  5. Build yaml for someone to base their build pipeline of

Future Work

  1. Try out Azure Image Builder Service that uses packer behind the scene
  2. Try out Azure Shared Image Gallery Service to store the generated images

Acknowledgements

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