hashicorp avatar

Azure Image Builder

Wraps Packer's azure-arm builder for creating custom Azure VM images, either as managed images or Azure Compute Gallery entries. You'll use this when you need golden images with your tooling baked in rather than provisioning at boot time. The skill covers both service principal and managed identity auth, and helpfully warns you upfront that builds take 15-45 minutes and cost actual money. Good examples for both basic managed images and gallery images with multi-region replication. The troubleshooting section is practical, especially the reminder that Compute Gallery versions are immutable, so you can't just rebuild over an existing version number.

skills.sh installs
2.8K
GitHub stars
924
last updated
Aug 21, 2026

Install

$ npx -y skills add hashicorp/agent-skills --skill azure-image-builder --agent claude-code

Installs into .claude/skills of the current project.

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

Sponsors

Details

Repository
github.com/hashicorp/agent-skills
Categories
DevOps & CI/CD, AI & Agent Building, Cloud & Infrastructure
First seen
May 16, 2026

More from hashicorp/agent-skills

All 16
1hashicorp avatarwindows-builderhashicorp/agent-skillsBuild Windows images with Packer using WinRM communicator and PowerShell provisioners. Use when creating Windows AMIs, Azure images, or VMware templates.2.8Kskills.sh installs
2nexu-io avatarfigma-generate-librarynexu-io/open-designBuild or update a professional-grade design system library in Figma from a codebase. Useful for keeping the Figma source of truth in sync with shipped component2.8Kskills.sh installs
3slavingia avatarmvpslavingia/skillsGuide building a minimum viable product the minimalist entrepreneur way — manual first, then processized, then productized. Use when someone is ready to build t2.8Kskills.sh installs
4dpearson2699 avatarcore-datadpearson2699/swift-ios-skillsBuild, review, or improve Core Data persistence in apps that have not adopted SwiftData. Use when working with NSManagedObject subclasses, NSFetchedResultsContr2.8Kskills.sh installs
5juliusbrussee avatarcavemanjuliusbrussee/cavekitCaveman encoding for SPEC.md and spec-adjacent writes. Loaded by /spec, /build, /check. Cuts tokens ~75% vs prose while staying precise. Triggers on any write t2.8Kskills.sh installs
6apify avatarapify-lead-generationapify/agent-skillsGenerates B2B/B2C leads by scraping Google Maps, websites, Instagram, TikTok, Facebook, LinkedIn, YouTube, and Google Search. Use when user asks to find leads, 2.8Kskills.sh installs