github.com/inloco/packer@v1.3.2/examples/azure/debian.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      "resource_group_name": "{{user `resource_group`}}",
    15      "storage_account": "{{user `storage_account`}}",
    16      "subscription_id": "{{user `subscription_id`}}",
    17  
    18      "managed_image_resource_group_name": "packertest",
    19      "managed_image_name": "MyDebianOSImage",
    20  
    21      "ssh_username": "{{user `ssh_user`}}",
    22      "ssh_password": "{{user `ssh_pass`}}",
    23  
    24      "os_type": "Linux",
    25      "image_publisher": "credativ",
    26      "image_offer": "Debian",
    27      "image_sku": "9",
    28      "ssh_pty": "true",
    29  
    30      "location": "South Central US",
    31      "vm_size": "Standard_DS2_v2"
    32    }],
    33    "provisioners": [{
    34      "execute_command": "echo '{{user `ssh_pass`}}' | {{ .Vars }} sudo -S -E sh '{{ .Path }}'",
    35      "inline": [
    36        "apt-get update",
    37        "apt-get upgrade -y",
    38  
    39        "/usr/sbin/waagent -force -deprovision+user && export HISTSIZE=0 && sync"
    40      ],
    41      "inline_shebang": "/bin/sh -x",
    42      "skip_clean": true,
    43      "type": "shell"
    44    }]
    45  }