github.com/kikitux/packer@v0.10.1-0.20160322154024-6237df566f9f/builder/azure/arm/template_parameters.go (about) 1 // Copyright (c) Microsoft Corporation. All rights reserved. 2 // Licensed under the MIT License. See the LICENSE file in builder/azure for license information. 3 4 package arm 5 6 // The intent of these types to facilitate interchange with Azure in the 7 // appropriate JSON format. A sample format is below. Each parameter listed 8 // below corresponds to a parameter defined in the template. 9 // 10 // { 11 // "storageAccountName": { 12 // "value" : "my_storage_account_name" 13 // }, 14 // "adminUserName" : { 15 // "value": "admin" 16 // } 17 // } 18 19 type TemplateParameter struct { 20 Value string `json:"value"` 21 } 22 23 type TemplateParameters struct { 24 AdminUsername *TemplateParameter `json:"adminUsername,omitempty"` 25 AdminPassword *TemplateParameter `json:"adminPassword,omitempty"` 26 DnsNameForPublicIP *TemplateParameter `json:"dnsNameForPublicIP,omitempty"` 27 ImageOffer *TemplateParameter `json:"imageOffer,omitempty"` 28 ImagePublisher *TemplateParameter `json:"imagePublisher,omitempty"` 29 ImageSku *TemplateParameter `json:"imageSku,omitempty"` 30 OSDiskName *TemplateParameter `json:"osDiskName,omitempty"` 31 SshAuthorizedKey *TemplateParameter `json:"sshAuthorizedKey,omitempty"` 32 StorageAccountName *TemplateParameter `json:"storageAccountName,omitempty"` 33 VMSize *TemplateParameter `json:"vmSize,omitempty"` 34 VMName *TemplateParameter `json:"vmName,omitempty"` 35 }