Versions in this module Expand all Collapse all v1 v1.3.2 Oct 29, 2018 Changes in this version + const BuilderId + const DefaultCloudEnvironmentName + const DefaultImageVersion + const DefaultPrivateVirtualNetworkWithPublicIp + const DefaultSasBlobContainer + const DefaultSecretName + const DefaultUserName + const DefaultVMSize + const EnvPackerLogAzureMaxLen + const KeySize + var EndpointCommunicationText = map[EndpointType]string + var TemplateFuncs = template.FuncMap + func GetKeyVaultDeployment(config *Config) (*resources.Deployment, error) + func GetVirtualMachineDeployment(config *Config) (*resources.Deployment, error) + type AdditionalDiskArtifact struct + AdditionalDiskUri string + AdditionalDiskUriReadOnlySas string + type Artifact struct + AdditionalDisks *[]AdditionalDiskArtifact + ManagedImageId string + ManagedImageLocation string + ManagedImageName string + ManagedImageResourceGroupName string + OSDiskUri string + OSDiskUriReadOnlySas string + OSType string + StorageAccountLocation string + TemplateUri string + TemplateUriReadOnlySas string + func NewArtifact(template *CaptureTemplate, getSasUrl func(name string) string, osType string) (*Artifact, error) + func NewManagedImageArtifact(osType, resourceGroup, name, location, id string) (*Artifact, error) + func (*Artifact) BuilderId() string + func (*Artifact) Destroy() error + func (*Artifact) Files() []string + func (a *Artifact) Id() string + func (a *Artifact) State(name string) interface{} + func (a *Artifact) String() string + type Authenticate struct + func NewAuthenticate(env azure.Environment, clientID, clientSecret, tenantID string) *Authenticate + type AzureClient struct + InspectorMaxLength int + LastError azureErrorResponse + Template *CaptureTemplate + VaultClientDelete common.VaultClient + func NewAzureClient(subscriptionID, resourceGroupName, storageAccountName string, ...) (*AzureClient, error) + type Builder struct + func (b *Builder) Cancel() + func (b *Builder) Prepare(raws ...interface{}) ([]string, error) + func (b *Builder) Run(ui packer.Ui, hook packer.Hook, cache packer.Cache) (packer.Artifact, error) + type CaptureBootDiagnostics struct + Enabled bool + type CaptureDiagnosticProfile struct + BootDiagnostics CaptureBootDiagnostics + type CaptureDisk struct + Caching string + CreateOption string + Image CaptureUri + Name string + OSType string + Vhd CaptureUri + type CaptureHardwareProfile struct + VMSize string + type CaptureNetworkInterface struct + Id string + type CaptureNetworkProfile struct + NetworkInterfaces []CaptureNetworkInterface + type CaptureOSProfile struct + AdminPassword string + AdminUsername string + ComputerName string + type CaptureOperation struct + OperationId string + Properties *CaptureOperationProperties + Status string + type CaptureOperationProperties struct + Output *CaptureTemplate + type CaptureProperties struct + DiagnosticsProfile CaptureDiagnosticProfile + HardwareProfile CaptureHardwareProfile + NetworkProfile CaptureNetworkProfile + OSProfile CaptureOSProfile + ProvisioningState int + StorageProfile CaptureStorageProfile + type CaptureResources struct + ApiVersion string + Location string + Name string + Properties CaptureProperties + Type string + type CaptureStorageProfile struct + DataDisks []CaptureDisk + OSDisk CaptureDisk + type CaptureTemplate struct + ContentVersion string + Parameters map[string]CaptureTemplateParameter + Resources []CaptureResources + Schema string + type CaptureTemplateParameter struct + DefaultValue string + Type string + type CaptureUri struct + Uri string + type Config struct + AdditionalDiskSize []int32 + AsyncResourceGroupDelete bool + AzureTags map[string]*string + BuildResourceGroupName string + CaptureContainerName string + CaptureNamePrefix string + ClientID string + ClientSecret string + CloudEnvironmentName string + Comm communicator.Config + CustomDataFile string + CustomManagedImageName string + CustomManagedImageResourceGroupName string + ImageOffer string + ImagePublisher string + ImageSku string + ImageUrl string + ImageVersion string + Location string + ManagedImageName string + ManagedImageResourceGroupName string + ManagedImageStorageAccountType string + OSDiskSizeGB int32 + OSType string + ObjectID string + Password string + PlanInfo PlanInformation + PrivateVirtualNetworkWithPublicIp bool + ResourceGroupName string + SharedGallery SharedImageGallery + StorageAccount string + SubscriptionID string + TempComputeName string + TempResourceGroupName string + TenantID string + UserName string + VMSize string + VirtualNetworkName string + VirtualNetworkResourceGroupName string + VirtualNetworkSubnetName string + type EndpointType int + const PrivateEndpoint + const PublicEndpoint + const PublicEndpointInPrivateNetwork + type OpenSshKeyPair struct + func NewOpenSshKeyPair() (*OpenSshKeyPair, error) + func NewOpenSshKeyPairWithSize(keySize int) (*OpenSshKeyPair, error) + func (s *OpenSshKeyPair) AuthorizedKey() string + func (s *OpenSshKeyPair) PrivateKey() []byte + type PlanInformation struct + PlanName string + PlanProduct string + PlanPromotionCode string + PlanPublisher string + type SharedImageGallery struct + GalleryName string + ImageName string + ImageVersion string + ResourceGroup string + Subscription string + type StepCaptureImage struct + func NewStepCaptureImage(client *AzureClient, ui packer.Ui) *StepCaptureImage + func (*StepCaptureImage) Cleanup(multistep.StateBag) + func (s *StepCaptureImage) Run(ctx context.Context, state multistep.StateBag) multistep.StepAction + type StepCreateResourceGroup struct + func NewStepCreateResourceGroup(client *AzureClient, ui packer.Ui) *StepCreateResourceGroup + func (s *StepCreateResourceGroup) Cleanup(state multistep.StateBag) + func (s *StepCreateResourceGroup) Run(ctx context.Context, state multistep.StateBag) multistep.StepAction + type StepDeleteAdditionalDisk struct + func NewStepDeleteAdditionalDisks(client *AzureClient, ui packer.Ui) *StepDeleteAdditionalDisk + func (*StepDeleteAdditionalDisk) Cleanup(multistep.StateBag) + func (s *StepDeleteAdditionalDisk) Run(ctx context.Context, state multistep.StateBag) multistep.StepAction + type StepDeleteOSDisk struct + func NewStepDeleteOSDisk(client *AzureClient, ui packer.Ui) *StepDeleteOSDisk + func (*StepDeleteOSDisk) Cleanup(multistep.StateBag) + func (s *StepDeleteOSDisk) Run(ctx context.Context, state multistep.StateBag) multistep.StepAction + type StepDeleteResourceGroup struct + func NewStepDeleteResourceGroup(client *AzureClient, ui packer.Ui) *StepDeleteResourceGroup + func (*StepDeleteResourceGroup) Cleanup(multistep.StateBag) + func (s *StepDeleteResourceGroup) Run(ctx context.Context, state multistep.StateBag) multistep.StepAction + type StepDeployTemplate struct + func NewStepDeployTemplate(client *AzureClient, ui packer.Ui, config *Config, deploymentName string, ...) *StepDeployTemplate + func (s *StepDeployTemplate) Cleanup(state multistep.StateBag) + func (s *StepDeployTemplate) Run(ctx context.Context, state multistep.StateBag) multistep.StepAction + type StepGetCertificate struct + func NewStepGetCertificate(client *AzureClient, ui packer.Ui) *StepGetCertificate + func (*StepGetCertificate) Cleanup(multistep.StateBag) + func (s *StepGetCertificate) Run(_ context.Context, state multistep.StateBag) multistep.StepAction + type StepGetDataDisk struct + func NewStepGetAdditionalDisks(client *AzureClient, ui packer.Ui) *StepGetDataDisk + func (*StepGetDataDisk) Cleanup(multistep.StateBag) + func (s *StepGetDataDisk) Run(ctx context.Context, state multistep.StateBag) multistep.StepAction + type StepGetIPAddress struct + func NewStepGetIPAddress(client *AzureClient, ui packer.Ui, endpoint EndpointType) *StepGetIPAddress + func (*StepGetIPAddress) Cleanup(multistep.StateBag) + func (s *StepGetIPAddress) Run(ctx context.Context, state multistep.StateBag) multistep.StepAction + type StepGetOSDisk struct + func NewStepGetOSDisk(client *AzureClient, ui packer.Ui) *StepGetOSDisk + func (*StepGetOSDisk) Cleanup(multistep.StateBag) + func (s *StepGetOSDisk) Run(ctx context.Context, state multistep.StateBag) multistep.StepAction + type StepPowerOffCompute struct + func NewStepPowerOffCompute(client *AzureClient, ui packer.Ui) *StepPowerOffCompute + func (*StepPowerOffCompute) Cleanup(multistep.StateBag) + func (s *StepPowerOffCompute) Run(ctx context.Context, state multistep.StateBag) multistep.StepAction + type StepSaveWinRMPassword struct + BuildName string + Password string + func (s *StepSaveWinRMPassword) Cleanup(multistep.StateBag) + func (s *StepSaveWinRMPassword) Run(_ context.Context, state multistep.StateBag) multistep.StepAction + type StepSetCertificate struct + func NewStepSetCertificate(config *Config, ui packer.Ui) *StepSetCertificate + func (*StepSetCertificate) Cleanup(multistep.StateBag) + func (s *StepSetCertificate) Run(_ context.Context, state multistep.StateBag) multistep.StepAction + type StepValidateTemplate struct + func NewStepValidateTemplate(client *AzureClient, ui packer.Ui, config *Config, factory templateFactoryFunc) *StepValidateTemplate + func (*StepValidateTemplate) Cleanup(multistep.StateBag) + func (s *StepValidateTemplate) Run(ctx context.Context, state multistep.StateBag) multistep.StepAction + type TempName struct + AdminPassword string + CertificatePassword string + ComputeName string + DeploymentName string + KeyVaultName string + NicName string + OSDiskName string + PublicIPAddressName string + ResourceGroupName string + SubnetName string + VirtualNetworkName string + func NewTempName() *TempName