github.com/orivej/packer@v0.10.1/examples/azure/centos.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      "ssh_user": "centos",
    10      "ssh_pass": null
    11    },
    12    "builders": [{
    13      "type": "azure-arm",
    14  
    15      "client_id": "{{user `client_id`}}",
    16      "client_secret": "{{user `client_secret`}}",
    17      "resource_group_name": "{{user `resource_group`}}",
    18      "storage_account": "{{user `storage_account`}}",
    19      "subscription_id": "{{user `subscription_id`}}",
    20      "tenant_id": "{{user `tenant_id`}}",
    21  
    22      "capture_container_name": "images",
    23      "capture_name_prefix": "packer",
    24  
    25      "ssh_username": "{{user `ssh_user`}}",
    26      "ssh_password": "{{user `ssh_pass`}}",
    27  
    28      "os_type": "Linux",
    29      "image_publisher": "OpenLogic",
    30      "image_offer": "CentOS",
    31      "image_sku": "7.2",
    32      "image_version": "latest",
    33      "ssh_pty": "true",
    34  
    35      "location": "South Central US",
    36      "vm_size": "Standard_A2"
    37    }],
    38    "provisioners": [{
    39      "execute_command": "echo '{{user `ssh_pass`}}' | {{ .Vars }} sudo -S -E sh '{{ .Path }}'",
    40      "inline": [
    41        "yum update -y",
    42        "/usr/sbin/waagent -force -deprovision+user && export HISTSIZE=0 && sync"
    43      ],
    44      "inline_shebang": "/bin/sh -x",
    45      "type": "shell",
    46      "skip_clean": true
    47    }]
    48  }