github.com/rahart/packer@v0.12.2-0.20161229105310-282bb6ad370f/builder/azure/common/template/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 template 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 KeyVaultName *TemplateParameter `json:"keyVaultName,omitempty"` 28 KeyVaultSecretValue *TemplateParameter `json:"keyVaultSecretValue,omitempty"` 29 ObjectId *TemplateParameter `json:"objectId,omitempty"` 30 OSDiskName *TemplateParameter `json:"osDiskName,omitempty"` 31 StorageAccountBlobEndpoint *TemplateParameter `json:"storageAccountBlobEndpoint,omitempty"` 32 TenantId *TemplateParameter `json:"tenantId,omitempty"` 33 VMSize *TemplateParameter `json:"vmSize,omitempty"` 34 VMName *TemplateParameter `json:"vmName,omitempty"` 35 }