github.com/mitchellh/packer@v1.3.2/builder/azure/common/template/template_parameters.go (about)

     1  package template
     2  
     3  // The intent of these types to facilitate interchange with Azure in the
     4  // appropriate JSON format. A sample format is below.  Each parameter listed
     5  // below corresponds to a parameter defined in the template.
     6  //
     7  // {
     8  //   "storageAccountName": {
     9  //     "value" : "my_storage_account_name"
    10  //   },
    11  //   "adminUserName" : {
    12  //     "value": "admin"
    13  //   }
    14  // }
    15  
    16  type TemplateParameter struct {
    17  	Value string `json:"value"`
    18  }
    19  
    20  type TemplateParameters struct {
    21  	AdminUsername              *TemplateParameter `json:"adminUsername,omitempty"`
    22  	AdminPassword              *TemplateParameter `json:"adminPassword,omitempty"`
    23  	DnsNameForPublicIP         *TemplateParameter `json:"dnsNameForPublicIP,omitempty"`
    24  	KeyVaultName               *TemplateParameter `json:"keyVaultName,omitempty"`
    25  	KeyVaultSecretValue        *TemplateParameter `json:"keyVaultSecretValue,omitempty"`
    26  	ObjectId                   *TemplateParameter `json:"objectId,omitempty"`
    27  	NicName                    *TemplateParameter `json:"nicName,omitempty"`
    28  	OSDiskName                 *TemplateParameter `json:"osDiskName,omitempty"`
    29  	PublicIPAddressName        *TemplateParameter `json:"publicIPAddressName,omitempty"`
    30  	StorageAccountBlobEndpoint *TemplateParameter `json:"storageAccountBlobEndpoint,omitempty"`
    31  	SubnetName                 *TemplateParameter `json:"subnetName,omitempty"`
    32  	TenantId                   *TemplateParameter `json:"tenantId,omitempty"`
    33  	VirtualNetworkName         *TemplateParameter `json:"virtualNetworkName,omitempty"`
    34  	VMSize                     *TemplateParameter `json:"vmSize,omitempty"`
    35  	VMName                     *TemplateParameter `json:"vmName,omitempty"`
    36  }