Versions in this module Expand all Collapse all v1 v1.0.7 May 13, 2022 Changes in this version + const BuilderId + const DefaultImageVersion + const DefaultKeyVaultSKU + const DefaultPrivateVirtualNetworkWithPublicIp + const DefaultSasBlobContainer + const DefaultSecretName + const DefaultUserName + const DefaultVMSize + const EnvPackerLogAzureMaxLen + const KeySize + var EndpointCommunicationText = map[EndpointType]string + 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 + ManagedImageDataDiskSnapshotPrefix string + ManagedImageId string + ManagedImageLocation string + ManagedImageName string + ManagedImageOSDiskSnapshotName string + ManagedImageResourceGroupName string + ManagedImageSharedImageGalleryId string + OSDiskUri string + OSDiskUriReadOnlySas string + OSType string + StateData map[string]interface{} + 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, osDiskSnapshotName, ... string, ...) (*Artifact, error) + func NewManagedImageArtifactWithSIGAsDestination(osType, resourceGroup, name, location, id, osDiskSnapshotName, ... 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 AzureClient struct + InspectorMaxLength int + LastError azureErrorResponse + Template *CaptureTemplate + VaultClientDelete keyvault.VaultsClient + func NewAzureClient(...) (*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 + AllowedInboundIpAddresses []string + AsyncResourceGroupDelete bool + AzureTag config.NameValues + AzureTags map[string]string + BootDiagSTGAccount string + BuildKeyVaultName string + BuildKeyVaultSKU string + BuildResourceGroupName string + CaptureContainerName string + CaptureNamePrefix string + ClientConfig client.Config + Comm communicator.Config + CustomDataFile string + CustomManagedImageName string + CustomManagedImageResourceGroupName string + CustomResourcePrefix string + DiskCachingType string + ImageOffer string + ImagePublisher string + ImageSku string + ImageUrl string + ImageVersion string + KeepOSDisk bool + LicenseType string + Location string + ManagedImageDataDiskSnapshotPrefix string + ManagedImageName string + ManagedImageOSDiskSnapshotName string + ManagedImageResourceGroupName string + ManagedImageStorageAccountType string + ManagedImageZoneResilient bool + OSDiskSizeGB int32 + OSType string + Password string + PlanInfo PlanInformation + PollingDurationTimeout time.Duration + PrivateVirtualNetworkWithPublicIp bool + ResourceGroupName string + SharedGallery SharedImageGallery + SharedGalleryDestination SharedImageGalleryDestination + SharedGalleryImageVersionEndOfLifeDate string + SharedGalleryImageVersionExcludeFromLatest bool + SharedGalleryImageVersionReplicaCount int32 + SharedGalleryTimeout time.Duration + StorageAccount string + TempComputeName string + TempNicName string + TempOSDiskName string + TempResourceGroupName string + UserAssignedManagedIdentities []string + UserDataFile string + UserName string + VMSize string + VirtualNetworkName string + VirtualNetworkResourceGroupName string + VirtualNetworkSubnetName string + func (*Config) FlatMapstructure() interface{ ... } + func (c *Config) Prepare(raws ...interface{}) ([]string, error) + type EndpointType int + const PrivateEndpoint + const PublicEndpoint + const PublicEndpointInPrivateNetwork + type FlatConfig struct + AdditionalDiskSize []int32 + AllowedInboundIpAddresses []string + AsyncResourceGroupDelete *bool + AzureTag []config.FlatNameValue + AzureTags map[string]string + BootDiagSTGAccount *string + BuildKeyVaultName *string + BuildKeyVaultSKU *string + BuildResourceGroupName *string + CaptureContainerName *string + CaptureNamePrefix *string + ClientCertExpireTimeout *string + ClientCertPath *string + ClientID *string + ClientJWT *string + ClientSecret *string + CloudEnvironmentName *string + CustomDataFile *string + CustomManagedImageName *string + CustomManagedImageResourceGroupName *string + CustomResourcePrefix *string + DiskCachingType *string + ImageOffer *string + ImagePublisher *string + ImageSku *string + ImageUrl *string + ImageVersion *string + KeepOSDisk *bool + LicenseType *string + Location *string + ManagedImageDataDiskSnapshotPrefix *string + ManagedImageName *string + ManagedImageOSDiskSnapshotName *string + ManagedImageResourceGroupName *string + ManagedImageStorageAccountType *string + ManagedImageZoneResilient *bool + 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 + PauseBeforeConnect *string + PlanInfo *FlatPlanInformation + PollingDurationTimeout *string + PrivateVirtualNetworkWithPublicIp *bool + ResourceGroupName *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 + SharedGalleryImageVersionEndOfLifeDate *string + SharedGalleryImageVersionExcludeFromLatest *bool + SharedGalleryImageVersionReplicaCount *int32 + SharedGalleryTimeout *string + StorageAccount *string + SubscriptionID *string + TempComputeName *string + TempNicName *string + TempOSDiskName *string + TempResourceGroupName *string + TenantID *string + Type *string + UseAzureCLIAuth *bool + UserAssignedManagedIdentities []string + UserDataFile *string + VMSize *string + VirtualNetworkName *string + VirtualNetworkResourceGroupName *string + VirtualNetworkSubnetName *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 FlatPlanInformation struct + PlanName *string + PlanProduct *string + PlanPromotionCode *string + PlanPublisher *string + func (*FlatPlanInformation) 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 + SigDestinationStorageAccountType *string + SigDestinationSubscription *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 PlanInformation struct + PlanName string + PlanProduct string + PlanPromotionCode string + PlanPublisher string + func (*PlanInformation) FlatMapstructure() interface{ ... } + 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 + SigDestinationStorageAccountType string + SigDestinationSubscription string + func (*SharedImageGalleryDestination) FlatMapstructure() interface{ ... } + type StepCaptureImage struct + func NewStepCaptureImage(client *AzureClient, ui packersdk.Ui) *StepCaptureImage + func (*StepCaptureImage) Cleanup(multistep.StateBag) + func (s *StepCaptureImage) Run(ctx context.Context, state multistep.StateBag) multistep.StepAction + type StepCertificateInKeyVault struct + func NewStepCertificateInKeyVault(cli common.AZVaultClientIface, ui packersdk.Ui, config *Config) *StepCertificateInKeyVault + func (*StepCertificateInKeyVault) Cleanup(multistep.StateBag) + func (s *StepCertificateInKeyVault) Run(ctx context.Context, state multistep.StateBag) multistep.StepAction + type StepCreateResourceGroup struct + func NewStepCreateResourceGroup(client *AzureClient, ui packersdk.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 packersdk.Ui) *StepDeleteAdditionalDisk + func (*StepDeleteAdditionalDisk) Cleanup(multistep.StateBag) + func (s *StepDeleteAdditionalDisk) 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 StepGetCertificate struct + func NewStepGetCertificate(client *AzureClient, ui packersdk.Ui) *StepGetCertificate + func (*StepGetCertificate) Cleanup(multistep.StateBag) + func (s *StepGetCertificate) Run(ctx context.Context, state multistep.StateBag) multistep.StepAction + type StepGetDataDisk struct + func NewStepGetAdditionalDisks(client *AzureClient, ui packersdk.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 packersdk.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 packersdk.Ui) *StepGetOSDisk + func (*StepGetOSDisk) Cleanup(multistep.StateBag) + func (s *StepGetOSDisk) Run(ctx context.Context, state multistep.StateBag) multistep.StepAction + type StepGetSourceImageName struct + GeneratedData *packerbuilderdata.GeneratedData + func (*StepGetSourceImageName) Cleanup(multistep.StateBag) + func (s *StepGetSourceImageName) Run(ctx context.Context, state multistep.StateBag) multistep.StepAction + type StepPowerOffCompute struct + func NewStepPowerOffCompute(client *AzureClient, ui packersdk.Ui) *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 StepSetCertificate struct + func NewStepSetCertificate(config *Config, ui packersdk.Ui) *StepSetCertificate + func (*StepSetCertificate) Cleanup(multistep.StateBag) + func (s *StepSetCertificate) Run(ctx context.Context, state multistep.StateBag) multistep.StepAction + type StepSnapshotDataDisks struct + func NewStepSnapshotDataDisks(client *AzureClient, ui packersdk.Ui, config *Config) *StepSnapshotDataDisks + func (*StepSnapshotDataDisks) Cleanup(multistep.StateBag) + func (s *StepSnapshotDataDisks) Run(ctx context.Context, stateBag multistep.StateBag) multistep.StepAction + type StepSnapshotOSDisk struct + func NewStepSnapshotOSDisk(client *AzureClient, ui packersdk.Ui, config *Config) *StepSnapshotOSDisk + func (*StepSnapshotOSDisk) Cleanup(multistep.StateBag) + func (s *StepSnapshotOSDisk) Run(ctx context.Context, stateBag multistep.StateBag) multistep.StepAction + type StepValidateTemplate struct + func NewStepValidateTemplate(client *AzureClient, ui packersdk.Ui, config *Config, ...) *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 + DataDiskName string + DeploymentName string + KeyVaultName string + NicName string + NsgName string + OSDiskName string + PublicIPAddressName string + ResourceGroupName string + SubnetName string + VirtualNetworkName string + func NewTempName(p string) *TempName