Skip to content
This repository has been archived by the owner on Jul 28, 2021. It is now read-only.

Latest commit

 

History

History
33 lines (21 loc) · 1.11 KB

File metadata and controls

33 lines (21 loc) · 1.11 KB

packer-provisioner-azurerm-vm-extension

packer-provisioner-azurerm-vm-extension is a provisioner plugin for Packer that let you add/remove Azure VM Extension during the provisioning phase.

Tested with Packer <=1.3. The plugin may need to be adapted for Packer >=1.4 because of the addition of HCL2.

Use Cases

Example

An example is provided for provisioning a Windows VM with the DSC Extension.

However, any Azure VM Extension should work.

Build & Usage

# build binary
$ go build -v .

# move plugin to specific directory
$ mkdir -p $HOME/.packer.d/plugins
$ mv packer-provisioner-azurerm-vm-extension $HOME/.packer.d/plugins

# run packer
$ cd example/
$ packer build -var 'foo=bar' [...] ./packer_example.json

For more information, read the Packer plugin documentation.