github.com/inloco/packer@v1.3.2/examples/azure/marketplace_plan_info.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      "managed_image_resource_group_name": "packertest",
    15      "managed_image_name": "MyMarketplaceOSImage",
    16  
    17      "os_type": "Linux",
    18      "image_publisher": "bitnami",
    19      "image_offer": "rabbitmq",
    20      "image_sku": "rabbitmq",
    21  
    22      "azure_tags": {
    23          "dept": "engineering",
    24          "task": "image deployment"
    25      },
    26  
    27      "plan_info": {
    28        "plan_name": "rabbitmq",
    29        "plan_product": "rabbitmq",
    30        "plan_publisher": "bitnami"
    31      },
    32  
    33      "location": "West US",
    34      "vm_size": "Standard_DS2_v2"
    35    }],
    36    "provisioners": [{
    37      "execute_command": "chmod +x {{ .Path }}; {{ .Vars }} sudo -E sh '{{ .Path }}'",
    38      "inline": [
    39        "apt-get update",
    40        "apt-get upgrade -y",
    41  
    42        "/usr/sbin/waagent -force -deprovision+user && export HISTSIZE=0 && sync"
    43      ],
    44      "inline_shebang": "/bin/sh -x",
    45      "type": "shell"
    46    }]
    47  }