github.com/rahart/packer@v0.12.2-0.20161229105310-282bb6ad370f/examples/azure/ubuntu.json (about) 1 { 2 "variables": { 3 "client_id": "{{env `ARM_CLIENT_ID`}}", 4 "client_secret": "{{env `ARM_CLIENT_SECRET`}}", 5 "resource_group": "{{env `ARM_RESOURCE_GROUP`}}", 6 "storage_account": "{{env `ARM_STORAGE_ACCOUNT`}}", 7 "subscription_id": "{{env `ARM_SUBSCRIPTION_ID`}}" 8 }, 9 "builders": [{ 10 "type": "azure-arm", 11 12 "client_id": "{{user `client_id`}}", 13 "client_secret": "{{user `client_secret`}}", 14 "resource_group_name": "{{user `resource_group`}}", 15 "storage_account": "{{user `storage_account`}}", 16 "subscription_id": "{{user `subscription_id`}}", 17 18 "capture_container_name": "images", 19 "capture_name_prefix": "packer", 20 21 "os_type": "Linux", 22 "image_publisher": "Canonical", 23 "image_offer": "UbuntuServer", 24 "image_sku": "16.04.0-LTS", 25 26 "azure_tags": { 27 "dept": "engineering", 28 "task": "image deployment" 29 }, 30 31 "location": "West US", 32 "vm_size": "Standard_A2" 33 }], 34 "provisioners": [{ 35 "execute_command": "chmod +x {{ .Path }}; {{ .Vars }} sudo -E sh '{{ .Path }}'", 36 "inline": [ 37 "apt-get update", 38 "apt-get upgrade -y", 39 40 "/usr/sbin/waagent -force -deprovision+user && export HISTSIZE=0 && sync" 41 ], 42 "inline_shebang": "/bin/sh -x", 43 "type": "shell" 44 }] 45 }