Packer Plugin Azure banner
hashicorp hashicorp

Packer Plugin Azure

DevOps community

Description

Packer plugin for Azure Virtual Machine Image Builders

Installation

This entry records only its repository, not the path inside it, so there is no exact command to give. Open the source below and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

README

Packer Plugin Azure

The `Azure` multi-component plugin can be used with HashiCorp [Packer](https://www.packer.io) to create custom images. For the full list of available features for this plugin see [docs](docs).

Installation

Using pre-built releases

Using the `packer init` command

Starting from version 1.7, Packer supports a new `packer init` command allowing automatic installation of Packer plugins. Read the [Packer documentation](https://www.packer.io/docs/commands/init) for more information.

To install this plugin, copy and paste this code into your Packer configuration . Then, run [`packer init`](https://www.packer.io/docs/commands/init).

packer {
  required_plugins {
    azure = {
      version = ">= 2.6.0"
      source  = "github.com/hashicorp/azure"
    }
  }
}

**Note: Update to Packer Plugin Installation**

With the new Packer release starting from version v1.14.0, the `packer init` command will automatically install official plugins from the [HashiCorp release site.](https://releases.hashicorp.com/)

Going forward, to use newer versions of official Packer plugins, you'll need to upgrade to Packer version 1.14.0 or later. If you're using an older version, you can still install plugins, but as a workaround, you'll need to [manually install them using the CLI.](https://developer.hashicorp.com/packer/docs/plugins/install#manually-install-plugins-using-the-cli)

There is no change to the syntax or commands for installing plugins.

Manual installation

You can find pre-built binary releases of the plugin [here](https://github.com/hashicorp/packer-plugin-azure/releases). Once you have downloaded the latest archive corresponding to your target OS, uncompress it to retrieve the plugin binary file corresponding to your platform. To install the plugin, please follow the Packer documentation on [installing a plugin](https://www.packer.io/docs/extending/plugins/#installing-plugins).

From Sources

If you prefer to build the pl