Skip to content

adamrushuk/Packer-Templates

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Packer-Templates

Packer Template examples to accompany https://adamrushuk.github.io/packer-example-windows/

Azure Windows Image

To create an example Azure Windows image, complete the following steps:

  1. Set required values in variables section of azure-windows-2012r2.json
  2. Run commands in Scripts\azure-prep.ps1 to:
    1. Login to Azure
    2. Create a Service Principle for Packer
    3. Set Azure environment variables
    4. Create a Resource Group for VM image
  3. Run .\Invoke-Packer.ps1 -Path "azure-windows-2012r2.json"

Azure Ubuntu Image

To create an example Azure Ubuntu image, complete the following steps:

  1. Set required values in variables section of azure-ubuntu.json
  2. Run commands in Scripts\azure-prep.ps1 to:
    1. Login to Azure
    2. Create a Service Principle for Packer
    3. Set Azure environment variables
    4. Create a Resource Group for VM image
  3. Run .\Invoke-Packer.ps1 -Path "azure-ubuntu.json"