VirtualMachineImageTemplateArgs

data class VirtualMachineImageTemplateArgs(val autoRun: Output<ImageTemplateAutoRunArgs>? = null, val buildTimeoutInMinutes: Output<Int>? = null, val customize: Output<List<Any>>? = null, val distribute: Output<List<Any>>? = null, val errorHandling: Output<ImageTemplatePropertiesErrorHandlingArgs>? = null, val identity: Output<ImageTemplateIdentityArgs>? = null, val imageTemplateName: Output<String>? = null, val location: Output<String>? = null, val managedResourceTags: Output<Map<String, String>>? = null, val optimize: Output<ImageTemplatePropertiesOptimizeArgs>? = null, val resourceGroupName: Output<String>? = null, val source: Output<Any>? = null, val stagingResourceGroup: Output<String>? = null, val tags: Output<Map<String, String>>? = null, val validate: Output<ImageTemplatePropertiesValidateArgs>? = null, val vmProfile: Output<ImageTemplateVmProfileArgs>? = null) : ConvertibleToJava<VirtualMachineImageTemplateArgs>

Image template is an ARM resource managed by Microsoft.VirtualMachineImages provider Uses Azure REST API version 2024-02-01. In version 2.x of the Azure Native provider, it used API version 2022-07-01. Other available API versions: 2022-07-01, 2023-07-01. These can be accessed by generating a local SDK package using the CLI command pulumi package add azure-native virtualmachineimages [ApiVersion]. See the ../../../version-guide/#accessing-any-api-version-via-local-packages for details.

Import

An existing resource can be imported using its type token, name, and identifier, e.g.

$ pulumi import azure-native:virtualmachineimages:VirtualMachineImageTemplate myImageTemplate /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.VirtualMachineImages/imageTemplates/{imageTemplateName}

Constructors

Link copied to clipboard
constructor(autoRun: Output<ImageTemplateAutoRunArgs>? = null, buildTimeoutInMinutes: Output<Int>? = null, customize: Output<List<Any>>? = null, distribute: Output<List<Any>>? = null, errorHandling: Output<ImageTemplatePropertiesErrorHandlingArgs>? = null, identity: Output<ImageTemplateIdentityArgs>? = null, imageTemplateName: Output<String>? = null, location: Output<String>? = null, managedResourceTags: Output<Map<String, String>>? = null, optimize: Output<ImageTemplatePropertiesOptimizeArgs>? = null, resourceGroupName: Output<String>? = null, source: Output<Any>? = null, stagingResourceGroup: Output<String>? = null, tags: Output<Map<String, String>>? = null, validate: Output<ImageTemplatePropertiesValidateArgs>? = null, vmProfile: Output<ImageTemplateVmProfileArgs>? = null)

Properties

Link copied to clipboard
val autoRun: Output<ImageTemplateAutoRunArgs>? = null

Indicates whether or not to automatically run the image template build on template creation or update.

Link copied to clipboard
val buildTimeoutInMinutes: Output<Int>? = null

Maximum duration to wait while building the image template (includes all customizations, optimization, validations, and distributions). Omit or specify 0 to use the default (4 hours).

Link copied to clipboard
val customize: Output<List<Any>>? = null

Specifies the properties used to describe the customization steps of the image, like Image source etc

Link copied to clipboard
val distribute: Output<List<Any>>? = null

The distribution targets where the image output needs to go to.

Link copied to clipboard

Error handling options upon a build failure

Link copied to clipboard
val identity: Output<ImageTemplateIdentityArgs>? = null

The identity of the image template, if configured.

Link copied to clipboard
val imageTemplateName: Output<String>? = null

The name of the image Template

Link copied to clipboard
val location: Output<String>? = null

The geo-location where the resource lives

Link copied to clipboard
val managedResourceTags: Output<Map<String, String>>? = null

Tags that will be applied to the resource group and/or resources created by the service.

Link copied to clipboard

Specifies optimization to be performed on image.

Link copied to clipboard
val resourceGroupName: Output<String>? = null

The name of the resource group.

Link copied to clipboard
val source: Output<Any>? = null

Specifies the properties used to describe the source image.

Link copied to clipboard
val stagingResourceGroup: Output<String>? = null

The staging resource group id in the same subscription as the image template that will be used to build the image. If this field is empty, a resource group with a random name will be created. If the resource group specified in this field doesn't exist, it will be created with the same name. If the resource group specified exists, it must be empty and in the same region as the image template. The resource group created will be deleted during template deletion if this field is empty or the resource group specified doesn't exist, but if the resource group specified exists the resources created in the resource group will be deleted during template deletion and the resource group itself will remain.

Link copied to clipboard
val tags: Output<Map<String, String>>? = null

Resource tags.

Link copied to clipboard

Configuration options and list of validations to be performed on the resulting image.

Link copied to clipboard

Describes how virtual machine is set up to build images

Functions

Link copied to clipboard
open override fun toJava(): VirtualMachineImageTemplateArgs