This repository contains Packer templates that can be used as a starting point for building a VM image on Azure with the Packer azure-arm builder. If you are new to Packer on Azure and are not sure where to start, refer to the documentation of the basic template here and try running it. The following templates are available:
- Basic Windows template
- Custom Image as base image
- Azure Marketplace Image as base image
- Read from and Store in Azure Shared Image Gallery
You need to have an active Azure subscription where have enough rights to provision resources. You need to have Packer installed.
Packer templates are built with the build command. It is advisable to run a validate command first to check your syntax. Example:
packer validate basic-template.json
If validation succeeds run
packer build basic-template.json
I've also included the Azure DevOps pipeline YAML that I use for testing here.