Versions in this module Expand all Collapse all v1 v1.3.2 Oct 29, 2018 Changes in this version + const BasicTemplate + const KeyVault + type AccessPolicies struct + ObjectId *string + Permissions *Permissions + TenantId *string + type DataDiskUnion struct + BlobURI *string + Caching compute.CachingTypes + CreateOption compute.DiskCreateOptionTypes + DiskSizeGB *int32 + Image *compute.VirtualHardDisk + Lun *int + ManagedDisk *compute.ManagedDiskParameters + Name *string + Vhd *compute.VirtualHardDisk + type OSDiskUnion struct + BlobURI *string + Caching compute.CachingTypes + CreateOption compute.DiskCreateOptionTypes + DiskSizeGB *int32 + Image *compute.VirtualHardDisk + ManagedDisk *compute.ManagedDiskParameters + Name *string + OsState compute.OperatingSystemStateTypes + OsType compute.OperatingSystemTypes + Vhd *compute.VirtualHardDisk + type Parameters struct + DefaultValue *string + Type *string + type Permissions struct + Keys *[]string + Secrets *[]string + type Plan struct + Name *string + Product *string + PromotionCode *string + Publisher *string + type Properties struct + AccessPolicies *[]AccessPolicies + AddressSpace *network.AddressSpace + DNSSettings *network.PublicIPAddressDNSSettings + DiagnosticsProfile *compute.DiagnosticsProfile + EnabledForDeployment *string + EnabledForTemplateDeployment *string + HardwareProfile *compute.HardwareProfile + IPConfigurations *[]network.IPConfiguration + NetworkProfile *compute.NetworkProfile + OsProfile *compute.OSProfile + PublicIPAllocatedMethod *network.IPAllocationMethod + Sku *Sku + StorageProfile *StorageProfileUnion + Subnets *[]network.Subnet + TenantId *string + Value *string + type Resource struct + ApiVersion *string + DependsOn *[]string + Location *string + Name *string + Plan *Plan + Properties *Properties + Resources *[]Resource + Tags *map[string]*string + Type *string + type Sku struct + Family *string + Name *string + type StorageProfileUnion struct + DataDisks *[]DataDiskUnion + ImageReference *compute.ImageReference + OsDisk *OSDiskUnion + type Template struct + ContentVersion *string + Parameters *map[string]Parameters + Resources *[]Resource + Schema *string + Variables *map[string]string + type TemplateBuilder struct + func NewTemplateBuilder(template string) (*TemplateBuilder, error) + func (s *TemplateBuilder) BuildLinux(sshAuthorizedKey string) error + func (s *TemplateBuilder) BuildWindows(keyVaultName, winRMCertificateUrl string) error + func (s *TemplateBuilder) SetAdditionalDisks(diskSizeGB []int32, isManaged bool) error + func (s *TemplateBuilder) SetCustomData(customData string) error + func (s *TemplateBuilder) SetImageUrl(imageUrl string, osType compute.OperatingSystemTypes) error + func (s *TemplateBuilder) SetManagedDiskUrl(managedImageId string, storageAccountType compute.StorageAccountTypes) error + func (s *TemplateBuilder) SetManagedMarketplaceImage(location, publisher, offer, sku, version, imageID string, ...) error + func (s *TemplateBuilder) SetMarketPlaceImage(publisher, offer, sku, version string) error + func (s *TemplateBuilder) SetOSDiskSizeGB(diskSizeGB int32) error + func (s *TemplateBuilder) SetPlanInfo(name, product, publisher, promotionCode string) error + func (s *TemplateBuilder) SetPrivateVirtualNetworkWithPublicIp(virtualNetworkResourceGroup, virtualNetworkName, subnetName string) error + func (s *TemplateBuilder) SetSharedGalleryImage(location, imageID string) error + func (s *TemplateBuilder) SetTags(tags *map[string]*string) error + func (s *TemplateBuilder) SetVirtualNetwork(virtualNetworkResourceGroup, virtualNetworkName, subnetName string) error + func (s *TemplateBuilder) ToJSON() (*string, error) + type TemplateParameter struct + Value string + type TemplateParameters struct + AdminPassword *TemplateParameter + AdminUsername *TemplateParameter + DnsNameForPublicIP *TemplateParameter + KeyVaultName *TemplateParameter + KeyVaultSecretValue *TemplateParameter + NicName *TemplateParameter + OSDiskName *TemplateParameter + ObjectId *TemplateParameter + PublicIPAddressName *TemplateParameter + StorageAccountBlobEndpoint *TemplateParameter + SubnetName *TemplateParameter + TenantId *TemplateParameter + VMName *TemplateParameter + VMSize *TemplateParameter + VirtualNetworkName *TemplateParameter