azure-image-builder

Automate Azure VM image creation with Packer's azure-arm builder.

790|117|Updated Nov 8, 2025
One-click install
npx skills add https://github.com/hashicorp/agent-skills --skill azure-image-builder
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: azure-image-builder
Source: https://github.com/hashicorp/agent-skills/tree/main/packer/builders/skills/azure-image-builder
Command: npx skills add https://github.com/hashicorp/agent-skills --skill azure-image-builder

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Build Azure managed images and Compute Gallery images using Packer, enabling consistent, repeatable VM images across environments.

Core Features & Use Cases

  • Build Azure-managed images with the azure-arm builder for Linux and Windows.
  • Create Compute Gallery (Shared Image Gallery) images for centralized image management and regional deployment.
  • Use cases include standardizing base images for CI pipelines, rapid provisioning of environments, and reproducible disaster recovery templates.

Quick Start

Create a Packer template using the azure-arm builder, then run packer init and packer build to generate the image.

Frequently Asked Questions about azure-image-builder

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I build Azure managed images with Packer?

To build Azure managed images, configure the Packer azure-arm builder in your template with the required Azure credentials and resource group. Run packer init and packer build to generate the image.

What is the best way to automate Azure VM image creation for CI pipelines?

Automating Azure VM image creation with Packer ensures consistent, repeatable base images across environments. Using the azure-arm builder standardizes images for rapid provisioning in CI pipelines and reproducible disaster recovery templates.

Do I need Azure credentials to use the Packer azure-arm builder?

Yes, using the Packer azure-arm builder requires Azure credentials including client_id, client_secret, subscription_id, and tenant_id configured in the template alongside a defined resource group.

Can I create Azure Compute Gallery images using Packer?

Yes, Packer targets Azure Compute Gallery images using the azure-arm builder. This enables centralized image management and regional deployment alongside standard managed images.

Does Packer support building custom VM images for both Linux and Windows on Azure?

Yes, Packer builds custom Azure-managed images for both Linux and Windows using the azure-arm builder. This ensures consistent VM images across environments for rapid provisioning.

Why use Packer for Azure image creation instead of manual snapshots?

Using Packer for Azure image creation provides consistent, repeatable VM images across environments, unlike manual snapshots. It standardizes base images for reliable provisioning and reproducible disaster recovery templates.