Language

ImageTemplateData Class

Definition

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

public class ImageTemplateData : Azure.ResourceManager.Models.TrackedResourceData, System.ClientModel.Primitives.IJsonModel<Azure.ResourceManager.ImageBuilder.ImageTemplateData>, System.ClientModel.Primitives.IPersistableModel<Azure.ResourceManager.ImageBuilder.ImageTemplateData>
type ImageTemplateData = class
    inherit TrackedResourceData
    interface IJsonModel<ImageTemplateData>
    interface IPersistableModel<ImageTemplateData>
Public Class ImageTemplateData
Inherits TrackedResourceData
Implements IJsonModel(Of ImageTemplateData), IPersistableModel(Of ImageTemplateData)
Inheritance
Implements

Constructors

Name Description
ImageTemplateData(AzureLocation, ImageTemplateIdentity)

Initializes a new instance of ImageTemplateData.

Properties

Name Description
AdditionalDataDisks

Optional array of additional data disks to be added to the image.

AutoRunState

Enabling this field will trigger an automatic build on image template creation or update.

BuildTimeoutInMinutes

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).

Customize

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

Distribute

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

ErrorHandling

Error handling options upon a build failure.

ExactStagingResourceGroup

The staging resource group id in the same subscription as the image template that will be used to build the image. This read-only field differs from 'stagingResourceGroup' only if the value specified in the 'stagingResourceGroup' field is empty.

Id

Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.

(Inherited from ResourceData)
Identity

The identity of the image template, if configured.

LastRunStatus

State of 'run' that is currently executing or was last executed.

Location

The geo-location where the resource lives.

(Inherited from TrackedResourceData)
ManagedResourceTags

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

Name

The name of the resource.

(Inherited from ResourceData)
Optimize

Specifies optimization to be performed on image.

ProvisioningError

Provisioning error, if any.

ProvisioningState

Provisioning state of the resource.

ResourceType

The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".

(Inherited from ResourceData)
Source

Specifies the properties used to describe the source image.

StagingResourceGroup

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.

SystemData

Azure Resource Manager metadata containing createdBy and modifiedBy information.

(Inherited from ResourceData)
Tags

Resource tags.

(Inherited from TrackedResourceData)
Validate

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

VmProfile

Describes how virtual machine is set up to build images.

Methods

Name Description
JsonModelCreateCore(Utf8JsonReader, ModelReaderWriterOptions)
JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)
PersistableModelCreateCore(BinaryData, ModelReaderWriterOptions)
PersistableModelWriteCore(ModelReaderWriterOptions)

Explicit Interface Implementations

Name Description
IJsonModel<ImageTemplateData>.Create(Utf8JsonReader, ModelReaderWriterOptions)
IJsonModel<ImageTemplateData>.Write(Utf8JsonWriter, ModelReaderWriterOptions)
IPersistableModel<ImageTemplateData>.Create(BinaryData, ModelReaderWriterOptions)
IPersistableModel<ImageTemplateData>.GetFormatFromOptions(ModelReaderWriterOptions)
IPersistableModel<ImageTemplateData>.Write(ModelReaderWriterOptions)

Applies to