github.com/inloco/packer@v1.3.2/examples/azure/ubuntu.json (about) 1 { 2 "variables": { 3 "client_id": "{{env `ARM_CLIENT_ID`}}", 4 "client_secret": "{{env `ARM_CLIENT_SECRET`}}", 5 "subscription_id": "{{env `ARM_SUBSCRIPTION_ID`}}" 6 }, 7 "builders": [{ 8 "type": "azure-arm", 9 10 "client_id": "{{user `client_id`}}", 11 "client_secret": "{{user `client_secret`}}", 12 "subscription_id": "{{user `subscription_id`}}", 13 14 "os_type": "Linux", 15 "image_publisher": "Canonical", 16 "image_offer": "UbuntuServer", 17 "image_sku": "16.04-LTS", 18 19 "managed_image_resource_group_name": "packertest", 20 "managed_image_name": "MyUbuntuImage", 21 22 "azure_tags": { 23 "dept": "engineering", 24 "task": "image deployment" 25 }, 26 27 "location": "South Central US", 28 "vm_size": "Standard_DS2_v2" 29 }], 30 "provisioners": [{ 31 "execute_command": "chmod +x {{ .Path }}; {{ .Vars }} sudo -E sh '{{ .Path }}'", 32 "inline": [ 33 "apt-get update", 34 "apt-get upgrade -y", 35 36 "/usr/sbin/waagent -force -deprovision+user && export HISTSIZE=0 && sync" 37 ], 38 "inline_shebang": "/bin/sh -x", 39 "type": "shell" 40 }] 41 }