github.com/inloco/packer@v1.3.2/examples/azure/suse.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 "ssh_user": "packer", 7 "ssh_pass": "{{env `ARM_SSH_PASS`}}" 8 }, 9 "builders": [{ 10 "type": "azure-arm", 11 12 "client_id": "{{user `client_id`}}", 13 "client_secret": "{{user `client_secret`}}", 14 "subscription_id": "{{user `subscription_id`}}", 15 16 "managed_image_resource_group_name": "packertest", 17 "managed_image_name": "MySuseOSImage", 18 19 "ssh_username": "{{user `ssh_user`}}", 20 "ssh_password": "{{user `ssh_pass`}}", 21 22 "os_type": "Linux", 23 "image_publisher": "SUSE", 24 "image_offer": "SLES", 25 "image_sku": "12-SP3", 26 "ssh_pty": "true", 27 28 "location": "South Central US", 29 "vm_size": "Standard_DS2_v2" 30 }], 31 "provisioners": [{ 32 "execute_command": "echo '{{user `ssh_pass`}}' | {{ .Vars }} sudo -S -E sh '{{ .Path }}'", 33 "inline": [ 34 "zypper update -y", 35 36 "/usr/sbin/waagent -force -deprovision+user && export HISTSIZE=0 && sync" 37 ], 38 "inline_shebang": "/bin/sh -x", 39 "skip_clean": true, 40 "type": "shell" 41 }] 42 }