
Azure Image Builder
hashicorp/agent-skillsOfficial
Packer template recipes for building Azure managed images and Compute Gallery image versions with the azure-arm builder.
- CCM score
- 69 of 100
- skills.sh installs
- 2.9K
- GitHub stars
- 941
- last updated
- Aug 21, 2026
Own this skill? Claim it
What it does
- Covers two output targets: a basic managed image and an Azure Compute Gallery image with replication regions and storage account type
- Includes HCL templates with plugin requirements, sensitive variables, timestamped image names, and a shell provisioner, plus service principal and managed identity auth
- Provides build commands (
packer init,packer validate,packer build) and notes that builds take 15 to 45 minutes and incur compute and storage costs - Designed for teams creating custom base images for Azure VMs, with troubleshooting for auth failures, immutable gallery versions, and provisioning timeouts
Install
$ npx -y skills add hashicorp/agent-skills --skill azure-image-builder -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
Files
Azure Image Builder
Build Azure managed images and Azure Compute Gallery images using Packer's azure-arm builder.
Reference: Azure ARM Builder
Note: Building Azure images incurs costs (compute, storage, data transfer). Builds typically take 15-45 minutes depending on provisioning and OS.
Basic Managed Image
packer {
required_plugins {
azure = {
source = "github.com/hashicorp/azure"
version = "~> 2.0"
}
}
}
variable "client_id" {
type = string
sensitive = true
}
variable "client_secret" {
type = string
sensitive = true
}
variable "subscription_id" {
type = string
}
variable "tenant_id" {
type = string
}
variable "resource_group" {
type = string
default = "packer-images-rg"
}
locals {
timestamp = regex_replace(timestamp(), "[- TZ:]", "")
}
source "azure-arm" "ubuntu" {
client_id = var.client_id
client_secret = var.client_secret
subscription_id = var.subscription_id
tenant_id = var.tenant_id
Details
- Repository
- github.com/hashicorp/agent-skills
- Category
- DevOps & Cloud
- First seen
- May 16, 2026
More from hashicorp/agent-skills
All 16- Windows Builder2.9K
- Terraform Style Guide13.8K
- Terraform Test9.5K
- Refactor Module6.9K
- Terraform Stacks5.9K
- Terraform Search Import5.2K
- Provider Resources4.3K
- New Terraform Provider4.1K
- Provider Actions4.1K
- Run Acceptance Tests3.9K
- Azure Verified Modules3.5K
- Provider Test Patterns3.5K
- Provider Docs3.4K
- Aws Ami Builder3.4K
- Push To Registry3.2K
Similar to Azure Image Builder
More DevOps & Cloud
aws-ami-builderhashicorp/agent-skills3.4K installsPacker template guide that builds custom EC2 AMIs with the amazon-ebs builder and cost-aware defaults.
windows-builderhashicorp/agent-skills2.9K installsPacker template guide for building Windows images on AWS, Azure, and VMware with WinRM.
azuremindrally/skills718 installsGuidelines for Azure infrastructure, pipelines, Kubernetes, and security that enforce least privilege and configuration-driven deployments.
azure-cloud-architectalirezarezvani/claude-skills631 installsDesigns Azure architectures and Bicep templates with cost analysis, pattern selection, and CI/CD setup.
azure-pipelines-generatorakin-ozer/cc-devops-skills733 installsGenerates production-ready Azure Pipelines YAML for CI, multi-stage CD, Docker, Kubernetes, and reusable templates.