github.com/inloco/packer@v1.3.2/examples/azure/freebsd.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": "MyFreeBsdOSImage", 18 19 "ssh_username": "{{user `ssh_user`}}", 20 "ssh_password": "{{user `ssh_pass`}}", 21 22 "os_type": "Linux", 23 "image_publisher": "MicrosoftOSTC", 24 "image_offer": "FreeBSD", 25 "image_sku": "11.1", 26 "image_version": "latest", 27 28 "location": "West US 2", 29 "vm_size": "Standard_DS2_v2" 30 }], 31 "provisioners": [{ 32 "execute_command": "chmod +x {{ .Path }}; {{ .Vars }} sudo -E sh '{{ .Path }}'", 33 "inline": [ 34 "env ASSUME_ALWAYS_YES=YES pkg bootstrap", 35 "/usr/sbin/waagent -force -deprovision+user && export HISTSIZE=0 && sync" 36 ], 37 "inline_shebang": "/bin/sh -x", 38 "type": "shell", 39 "skip_clean": "true", 40 "expect_disconnect": "true" 41 }] 42 43 }