github.com/orivej/packer@v0.10.1/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 "tenant_id": "{{env `ARM_TENANT_ID`}}" 9 }, 10 "builders": [{ 11 "type": "azure-arm", 12 13 "client_id": "{{user `client_id`}}", 14 "client_secret": "{{user `client_secret`}}", 15 "resource_group_name": "{{user `resource_group`}}", 16 "storage_account": "{{user `storage_account`}}", 17 "subscription_id": "{{user `subscription_id`}}", 18 "tenant_id": "{{user `tenant_id`}}", 19 20 "capture_container_name": "images", 21 "capture_name_prefix": "packer", 22 23 "os_type": "Linux", 24 "image_publisher": "Canonical", 25 "image_offer": "UbuntuServer", 26 "image_sku": "16.04.0-LTS", 27 28 "location": "West US", 29 "vm_size": "Standard_A2" 30 }], 31 "provisioners": [{ 32 "execute_command": "chmod +x {{ .Path }}; {{ .Vars }} sudo -E sh '{{ .Path }}'", 33 "inline": [ 34 "apt-get update", 35 "apt-get upgrade -y", 36 37 "/usr/sbin/waagent -force -deprovision+user && export HISTSIZE=0 && sync" 38 ], 39 "inline_shebang": "/bin/sh -x", 40 "type": "shell" 41 }] 42 }