Versions in this module Expand all Collapse all v1 v1.0.7 May 13, 2022 Changes in this version + const BuilderId + const DefaultCustomImageCaptureTimeout + const DefaultImageVersion + const DefaultPrivateVirtualNetworkWithPublicIp + const DefaultSasBlobContainer + const DefaultSecretName + const DefaultSharedGalleryTimeout + const DefaultUserName + const DefaultVMSize + const EnvPackerLogAzureMaxLen + const KeySize + var TemplateFuncs = template.FuncMap + func GetVirtualMachineDeployment(config *Config) (*dtl.LabVirtualMachineCreationParameter, error) + type AdditionalDiskArtifact struct + AdditionalDiskUri string + AdditionalDiskUriReadOnlySas string + type Artifact struct + AdditionalDisks *[]AdditionalDiskArtifact + ManagedImageDataDiskSnapshotPrefix string + ManagedImageId string + ManagedImageLocation string + ManagedImageName string + ManagedImageOSDiskSnapshotName 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 ArtifactParameter struct + Name string + Type string + Value string + func (*ArtifactParameter) FlatMapstructure() interface{ ... } + type AzureClient struct + DtlCustomImageClient dtl.CustomImagesClient + DtlEnvironmentsClient dtl.EnvironmentsClient + DtlLabsClient dtl.LabsClient + DtlVirtualMachineClient dtl.VirtualMachinesClient + DtlVirtualNetworksClient dtl.VirtualNetworksClient + InspectorMaxLength int + LastError azureErrorResponse + Template *CaptureTemplate + VaultClientDelete common.VaultClient + func NewAzureClient(subscriptionID, resourceGroupName string, cloud *azure.Environment, ...) (*AzureClient, error) + type Builder struct + func (b *Builder) ConfigSpec() hcldec.ObjectSpec + func (b *Builder) Prepare(raws ...interface{}) ([]string, []string, error) + func (b *Builder) Run(ctx context.Context, ui packersdk.Ui, hook packersdk.Hook) (packersdk.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 + AzureTags map[string]*string + CaptureContainerName string + CaptureNamePrefix string + ClientConfig client.Config + Comm communicator.Config + CustomImageCaptureTimeout time.Duration + CustomManagedImageName string + CustomManagedImageResourceGroupName string + DisallowPublicIP bool + DiskCachingType string + DtlArtifacts []DtlArtifact + ImageOffer string + ImagePublisher string + ImageSku string + ImageUrl string + ImageVersion string + LabName string + LabResourceGroupName string + LabSubnetName string + LabVirtualNetworkName string + Location string + ManagedImageName string + ManagedImageResourceGroupName string + ManagedImageStorageAccountType string + OSDiskSizeGB int32 + OSType string + Password string + PlanID string + PollingDurationTimeout time.Duration + SharedGallery SharedImageGallery + SharedGalleryDestination SharedImageGalleryDestination + SharedGalleryTimeout time.Duration + SkipSysprep bool + StorageType string + UserName string + VMCreationResourceGroup string + VMName string + VMSize string + func (*Config) FlatMapstructure() interface{ ... } + func (c *Config) Prepare(raws ...interface{}) ([]string, error) + type DtlArtifact struct + ArtifactId string + ArtifactName string + Parameters []ArtifactParameter + RepositoryName string + func (*DtlArtifact) FlatMapstructure() interface{ ... } + type FlatArtifactParameter struct + Name *string + Type *string + Value *string + func (*FlatArtifactParameter) HCL2Spec() map[string]hcldec.Spec + type FlatConfig struct + AdditionalDiskSize []int32 + AzureTags map[string]*string + CaptureContainerName *string + CaptureNamePrefix *string + ClientCertExpireTimeout *string + ClientCertPath *string + ClientID *string + ClientJWT *string + ClientSecret *string + CloudEnvironmentName *string + CustomImageCaptureTimeout *string + CustomManagedImageName *string + CustomManagedImageResourceGroupName *string + DisallowPublicIP *bool + DiskCachingType *string + DtlArtifacts []FlatDtlArtifact + ImageOffer *string + ImagePublisher *string + ImageSku *string + ImageUrl *string + ImageVersion *string + LabName *string + LabResourceGroupName *string + LabSubnetName *string + LabVirtualNetworkName *string + Location *string + ManagedImageName *string + ManagedImageResourceGroupName *string + ManagedImageStorageAccountType *string + MetadataHost *string + OSDiskSizeGB *int32 + OSType *string + ObjectID *string + PackerBuildName *string + PackerBuilderType *string + PackerCoreVersion *string + PackerDebug *bool + PackerForce *bool + PackerOnError *string + PackerSensitiveVars []string + PackerUserVars map[string]string + Password *string + PauseBeforeConnect *string + PlanID *string + PollingDurationTimeout *string + SSHAgentAuth *bool + SSHBastionAgentAuth *bool + SSHBastionCertificateFile *string + SSHBastionHost *string + SSHBastionInteractive *bool + SSHBastionPassword *string + SSHBastionPort *int + SSHBastionPrivateKeyFile *string + SSHBastionUsername *string + SSHCertificateFile *string + SSHCiphers []string + SSHClearAuthorizedKeys *bool + SSHDisableAgentForwarding *bool + SSHFileTransferMethod *string + SSHHandshakeAttempts *int + SSHHost *string + SSHKEXAlgos []string + SSHKeepAliveInterval *string + SSHKeyPairName *string + SSHLocalTunnels []string + SSHPassword *string + SSHPort *int + SSHPrivateKey []byte + SSHPrivateKeyFile *string + SSHProxyHost *string + SSHProxyPassword *string + SSHProxyPort *int + SSHProxyUsername *string + SSHPty *bool + SSHPublicKey []byte + SSHReadWriteTimeout *string + SSHRemoteTunnels []string + SSHTemporaryKeyPairBits *int + SSHTemporaryKeyPairName *string + SSHTemporaryKeyPairType *string + SSHTimeout *string + SSHUsername *string + SSHWaitTimeout *string + SharedGallery *FlatSharedImageGallery + SharedGalleryDestination *FlatSharedImageGalleryDestination + SharedGalleryTimeout *string + SkipSysprep *bool + StorageType *string + SubscriptionID *string + TenantID *string + Type *string + UseAzureCLIAuth *bool + VMName *string + VMSize *string + WinRMHost *string + WinRMInsecure *bool + WinRMNoProxy *bool + WinRMPassword *string + WinRMPort *int + WinRMTimeout *string + WinRMUseNTLM *bool + WinRMUseSSL *bool + WinRMUser *string + func (*FlatConfig) HCL2Spec() map[string]hcldec.Spec + type FlatDtlArtifact struct + ArtifactId *string + ArtifactName *string + Parameters []FlatArtifactParameter + RepositoryName *string + func (*FlatDtlArtifact) HCL2Spec() map[string]hcldec.Spec + type FlatSharedImageGallery struct + GalleryName *string + ImageName *string + ImageVersion *string + ResourceGroup *string + Subscription *string + func (*FlatSharedImageGallery) HCL2Spec() map[string]hcldec.Spec + type FlatSharedImageGalleryDestination struct + SigDestinationGalleryName *string + SigDestinationImageName *string + SigDestinationImageVersion *string + SigDestinationReplicationRegions []string + SigDestinationResourceGroup *string + func (*FlatSharedImageGalleryDestination) HCL2Spec() map[string]hcldec.Spec + type OpenSshKeyPair struct + func NewOpenSshKeyPair() (*OpenSshKeyPair, error) + func NewOpenSshKeyPairWithSize(keySize int) (*OpenSshKeyPair, error) + func (s *OpenSshKeyPair) AuthorizedKey() string + func (s *OpenSshKeyPair) PrivateKey() []byte + type SharedImageGallery struct + GalleryName string + ImageName string + ImageVersion string + ResourceGroup string + Subscription string + func (*SharedImageGallery) FlatMapstructure() interface{ ... } + type SharedImageGalleryDestination struct + SigDestinationGalleryName string + SigDestinationImageName string + SigDestinationImageVersion string + SigDestinationReplicationRegions []string + SigDestinationResourceGroup string + func (*SharedImageGalleryDestination) FlatMapstructure() interface{ ... } + type StepCaptureImage struct + func NewStepCaptureImage(client *AzureClient, ui packersdk.Ui, config *Config) *StepCaptureImage + func (*StepCaptureImage) Cleanup(multistep.StateBag) + func (s *StepCaptureImage) Run(ctx context.Context, state multistep.StateBag) multistep.StepAction + type StepDeleteVirtualMachine struct + func NewStepDeleteVirtualMachine(client *AzureClient, ui packersdk.Ui, config *Config) *StepDeleteVirtualMachine + func (*StepDeleteVirtualMachine) Cleanup(multistep.StateBag) + func (s *StepDeleteVirtualMachine) Run(ctx context.Context, state multistep.StateBag) multistep.StepAction + type StepDeployTemplate struct + func NewStepDeployTemplate(client *AzureClient, ui packersdk.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 StepPowerOffCompute struct + func NewStepPowerOffCompute(client *AzureClient, ui packersdk.Ui, config *Config) *StepPowerOffCompute + func (*StepPowerOffCompute) Cleanup(multistep.StateBag) + func (s *StepPowerOffCompute) Run(ctx context.Context, state multistep.StateBag) multistep.StepAction + type StepPublishToSharedImageGallery struct + func NewStepPublishToSharedImageGallery(client *AzureClient, ui packersdk.Ui, config *Config) *StepPublishToSharedImageGallery + func (*StepPublishToSharedImageGallery) Cleanup(multistep.StateBag) + func (s *StepPublishToSharedImageGallery) Run(ctx context.Context, stateBag multistep.StateBag) multistep.StepAction + type StepSaveWinRMPassword struct + BuildName string + Password string + func (s *StepSaveWinRMPassword) Cleanup(multistep.StateBag) + func (s *StepSaveWinRMPassword) 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(c *Config) *TempName