Packer Template examples to accompany https://adamrushuk.github.io/packer-example-windows/
To create an example Azure Windows image, complete the following steps:
- Set required values in variables section of
azure-windows-2012r2.json
- Run commands in
Scripts\azure-prep.ps1
to:- Login to Azure
- Create a Service Principle for Packer
- Set Azure environment variables
- Create a Resource Group for VM image
- Run
.\Invoke-Packer.ps1 -Path "azure-windows-2012r2.json"
To create an example Azure Ubuntu image, complete the following steps:
- Set required values in variables section of
azure-ubuntu.json
- Run commands in
Scripts\azure-prep.ps1
to:- Login to Azure
- Create a Service Principle for Packer
- Set Azure environment variables
- Create a Resource Group for VM image
- Run
.\Invoke-Packer.ps1 -Path "azure-ubuntu.json"