azure-image-builder — Claude Code skill for Azure images
This skill guides Packer builds for Azure managed images and Azure Compute Gallery. Use it when preparing custom images for Azure virtual machines.
npx skills add hashicorp/agent-skills --skill azure-image-builder -a claude-codeWhat azure-image-builder does
The skill covers Packer’s azure-arm builder for producing a managed image or publishing one to Azure Compute Gallery. Its HCL examples configure an Ubuntu Linux image, a region and a VM size, with shell provisioning shown for package updates.
Authentication examples use either a Service Principal with environment variables or Azure CLI authentication through Managed Identity. The build workflow runs packer init ., packer validate . and packer build .. Gallery image versions cannot be overwritten, so each build needs a version that does not already exist.
What it helps with
- build a managed Azure image from a Packer template
- publish an Ubuntu image to Azure Compute Gallery
- configure Packer credentials with a Service Principal
- validate a template before building an image
Example prompts for the agent
- Create a Packer template for an Ubuntu managed image in Azure.
- Set up a Packer source that publishes to Azure Compute Gallery.
- Check my Packer template and give me the commands to build the Azure image.
How to install azure-image-builder
1Skills CLI (Vercel)
npx skills add hashicorp/agent-skills --skill azure-image-builder -a claude-code2Manually: put the files in place
~/.claude/skills/azure-image-builder/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/azure-image-builder/
1Skills CLI (Vercel)
npx skills add hashicorp/agent-skills --skill azure-image-builder -a codex2Manually: put the files in place
.agents/skills/azure-image-builder/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add hashicorp/agent-skills --skill azure-image-builder -a cursor2Manually: put the files in place
.cursor/skills/azure-image-builder/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install hashicorp/agent-skills azure-image-builder2Manually: put the files in place
.github/skills/azure-image-builder/SKILL.md1Skills CLI (Vercel)
npx skills add hashicorp/agent-skills --skill azure-image-builder -a gemini-cli2Platform CLI
gemini skills install https://github.com/hashicorp/agent-skills --path plugins/packer/skills/azure-image-builderManually: put the files in place
.devin/skills/azure-image-builder/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add hashicorp/agent-skills --skill azure-image-builder -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Step by step, with commands for each platform: How to install skills in Claude Code: five ways
Questions about azure-image-builder
How do I install azure-image-builder in Codex?
Run npx skills add hashicorp/agent-skills --skill azure-image-builder -a codex. The skill file is at .agents/skills/azure-image-builder/SKILL.md.
What does azure-image-builder do?
It helps configure Packer to create Azure managed images or publish images to Azure Compute Gallery. The examples also cover authentication and the build workflow.
Can I overwrite an Azure Compute Gallery image version?
No. Gallery image versions are immutable, so use a different version for another build.