Package-level declarations

Types

Link copied to clipboard
data class GetVirtualMachineImageTemplateResult(val buildTimeoutInMinutes: Int? = null, val customize: List<Any>? = null, val distribute: List<Any>, val id: String, val identity: ImageTemplateIdentityResponse, val lastRunStatus: ImageTemplateLastRunStatusResponse, val location: String, val name: String, val provisioningError: ProvisioningErrorResponse, val provisioningState: String, val source: Any, val tags: Map<String, String>? = null, val type: String, val vmProfile: ImageTemplateVmProfileResponse? = null)

Image template is an ARM resource managed by Microsoft.VirtualMachineImages provider

Link copied to clipboard
data class ImageTemplateFileCustomizerResponse(val destination: String? = null, val name: String? = null, val sha256Checksum: String? = null, val sourceUri: String? = null, val type: String)

Uploads files to VMs (Linux, Windows). Corresponds to Packer file provisioner

Link copied to clipboard
data class ImageTemplateIdentityResponse(val type: String? = null, val userAssignedIdentities: Map<String, ImageTemplateIdentityResponseUserAssignedIdentities>? = null)

Identity for the image template.

Link copied to clipboard
data class ImageTemplateLastRunStatusResponse(val endTime: String? = null, val message: String? = null, val runState: String? = null, val runSubState: String? = null, val startTime: String? = null)

Describes the latest status of running an image template

data class ImageTemplateManagedImageDistributorResponse(val artifactTags: Map<String, String>? = null, val imageId: String, val location: String, val runOutputName: String, val type: String)

Distribute as a Managed Disk Image.

Link copied to clipboard
data class ImageTemplateManagedImageSourceResponse(val imageId: String, val type: String)

Describes an image source that is a managed image in customer subscription.

Link copied to clipboard
data class ImageTemplatePlatformImageSourceResponse(val offer: String? = null, val planInfo: PlatformImagePurchasePlanResponse? = null, val publisher: String? = null, val sku: String? = null, val type: String, val version: String? = null)

Describes an image source from Azure Gallery Images.

data class ImageTemplatePowerShellCustomizerResponse(val inline: List<String>? = null, val name: String? = null, val runAsSystem: Boolean? = null, val runElevated: Boolean? = null, val scriptUri: String? = null, val sha256Checksum: String? = null, val type: String, val validExitCodes: List<Int>? = null)

Runs the specified PowerShell on the VM (Windows). Corresponds to Packer powershell provisioner. Exactly one of 'scriptUri' or 'inline' can be specified.

Link copied to clipboard
data class ImageTemplateRestartCustomizerResponse(val name: String? = null, val restartCheckCommand: String? = null, val restartCommand: String? = null, val restartTimeout: String? = null, val type: String)

Reboots a VM and waits for it to come back online (Windows). Corresponds to Packer windows-restart provisioner

data class ImageTemplateSharedImageDistributorResponse(val artifactTags: Map<String, String>? = null, val excludeFromLatest: Boolean? = null, val galleryImageId: String, val replicationRegions: List<String>, val runOutputName: String, val storageAccountType: String? = null, val type: String)

Distribute via Shared Image Gallery.

data class ImageTemplateSharedImageVersionSourceResponse(val imageVersionId: String, val type: String)

Describes an image source that is an image version in a shared image gallery.

Link copied to clipboard
data class ImageTemplateShellCustomizerResponse(val inline: List<String>? = null, val name: String? = null, val scriptUri: String? = null, val sha256Checksum: String? = null, val type: String)

Runs a shell script during the customization phase (Linux). Corresponds to Packer shell provisioner. Exactly one of 'scriptUri' or 'inline' can be specified.

Link copied to clipboard
data class ImageTemplateVhdDistributorResponse(val artifactTags: Map<String, String>? = null, val runOutputName: String, val type: String)

Distribute via VHD in a storage account.

Link copied to clipboard
data class ImageTemplateVmProfileResponse(val osDiskSizeGB: Int? = null, val vmSize: String? = null, val vnetConfig: VirtualNetworkConfigResponse? = null)

Describes the virtual machine used to build, customize and capture images

data class ImageTemplateWindowsUpdateCustomizerResponse(val filters: List<String>? = null, val name: String? = null, val searchCriteria: String? = null, val type: String, val updateLimit: Int? = null)

Installs Windows Updates. Corresponds to Packer Windows Update Provisioner (https://github.com/rgl/packer-provisioner-windows-update)

Link copied to clipboard
data class PlatformImagePurchasePlanResponse(val planName: String, val planProduct: String, val planPublisher: String)

Purchase plan configuration for platform image.

Link copied to clipboard
data class ProvisioningErrorResponse(val message: String? = null, val provisioningErrorCode: String? = null)

Describes the error happened when create or update an image template

Link copied to clipboard
data class VirtualNetworkConfigResponse(val subnetId: String? = null)

Virtual Network configuration.