Language

ArmImageBuilderModelFactory.ImageTemplateData Method

Definition

public static Azure.ResourceManager.ImageBuilder.ImageTemplateData ImageTemplateData(Azure.Core.ResourceIdentifier id = default, string name = default, Azure.Core.ResourceType resourceType = default, Azure.ResourceManager.Models.SystemData systemData = default, System.Collections.Generic.IDictionary<string,string> tags = default, Azure.Core.AzureLocation location = default, Azure.ResourceManager.ImageBuilder.Models.ImageTemplateSource source = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.ImageBuilder.Models.ImageTemplateCustomizer> customize = default, Azure.ResourceManager.ImageBuilder.Models.ImageTemplateOptimizeConfig optimize = default, Azure.ResourceManager.ImageBuilder.Models.ImageTemplateValidationConfig validate = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.ImageBuilder.Models.ImageTemplateDistributor> distribute = default, Azure.ResourceManager.ImageBuilder.Models.ImageTemplateErrorHandling errorHandling = default, Azure.ResourceManager.ImageBuilder.Models.ImageBuilderProvisioningState? provisioningState = default, Azure.ResourceManager.ImageBuilder.Models.ImageBuilderProvisioningError provisioningError = default, Azure.ResourceManager.ImageBuilder.Models.ImageTemplateLastRunStatus lastRunStatus = default, int? buildTimeoutInMinutes = default, Azure.ResourceManager.ImageBuilder.Models.ImageTemplateVmProfile vmProfile = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.ImageBuilder.Models.ImageBuilderDataDisk> additionalDataDisks = default, string stagingResourceGroup = default, string exactStagingResourceGroup = default, System.Collections.Generic.IDictionary<string,string> managedResourceTags = default, Azure.ResourceManager.ImageBuilder.Models.ImageTemplateAutoRunState? autoRunState = default, Azure.ResourceManager.ImageBuilder.Models.ImageTemplateIdentity identity = default);
static member ImageTemplateData : Azure.Core.ResourceIdentifier * string * Azure.Core.ResourceType * Azure.ResourceManager.Models.SystemData * System.Collections.Generic.IDictionary<string, string> * Azure.Core.AzureLocation * Azure.ResourceManager.ImageBuilder.Models.ImageTemplateSource * seq<Azure.ResourceManager.ImageBuilder.Models.ImageTemplateCustomizer> * Azure.ResourceManager.ImageBuilder.Models.ImageTemplateOptimizeConfig * Azure.ResourceManager.ImageBuilder.Models.ImageTemplateValidationConfig * seq<Azure.ResourceManager.ImageBuilder.Models.ImageTemplateDistributor> * Azure.ResourceManager.ImageBuilder.Models.ImageTemplateErrorHandling * Nullable<Azure.ResourceManager.ImageBuilder.Models.ImageBuilderProvisioningState> * Azure.ResourceManager.ImageBuilder.Models.ImageBuilderProvisioningError * Azure.ResourceManager.ImageBuilder.Models.ImageTemplateLastRunStatus * Nullable<int> * Azure.ResourceManager.ImageBuilder.Models.ImageTemplateVmProfile * seq<Azure.ResourceManager.ImageBuilder.Models.ImageBuilderDataDisk> * string * string * System.Collections.Generic.IDictionary<string, string> * Nullable<Azure.ResourceManager.ImageBuilder.Models.ImageTemplateAutoRunState> * Azure.ResourceManager.ImageBuilder.Models.ImageTemplateIdentity -> Azure.ResourceManager.ImageBuilder.ImageTemplateData
Public Shared Function ImageTemplateData (Optional id As ResourceIdentifier = Nothing, Optional name As String = Nothing, Optional resourceType As ResourceType = Nothing, Optional systemData As SystemData = Nothing, Optional tags As IDictionary(Of String, String) = Nothing, Optional location As AzureLocation = Nothing, Optional source As ImageTemplateSource = Nothing, Optional customize As IEnumerable(Of ImageTemplateCustomizer) = Nothing, Optional optimize As ImageTemplateOptimizeConfig = Nothing, Optional validate As ImageTemplateValidationConfig = Nothing, Optional distribute As IEnumerable(Of ImageTemplateDistributor) = Nothing, Optional errorHandling As ImageTemplateErrorHandling = Nothing, Optional provisioningState As Nullable(Of ImageBuilderProvisioningState) = Nothing, Optional provisioningError As ImageBuilderProvisioningError = Nothing, Optional lastRunStatus As ImageTemplateLastRunStatus = Nothing, Optional buildTimeoutInMinutes As Nullable(Of Integer) = Nothing, Optional vmProfile As ImageTemplateVmProfile = Nothing, Optional additionalDataDisks As IEnumerable(Of ImageBuilderDataDisk) = Nothing, Optional stagingResourceGroup As String = Nothing, Optional exactStagingResourceGroup As String = Nothing, Optional managedResourceTags As IDictionary(Of String, String) = Nothing, Optional autoRunState As Nullable(Of ImageTemplateAutoRunState) = Nothing, Optional identity As ImageTemplateIdentity = Nothing) As ImageTemplateData

Parameters

id
ResourceIdentifier

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

name
String

The name of the resource.

resourceType
ResourceType

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

systemData
SystemData

Azure Resource Manager metadata containing createdBy and modifiedBy information.

tags
IDictionary<String,String>

Resource tags.

location
AzureLocation

The geo-location where the resource lives.

source
ImageTemplateSource

Specifies the properties used to describe the source image.

customize
IEnumerable<ImageTemplateCustomizer>

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

optimize
ImageTemplateOptimizeConfig

Specifies optimization to be performed on image.

validate
ImageTemplateValidationConfig

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

distribute
IEnumerable<ImageTemplateDistributor>

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

errorHandling
ImageTemplateErrorHandling

Error handling options upon a build failure.

provisioningState
Nullable<ImageBuilderProvisioningState>

Provisioning state of the resource.

provisioningError
ImageBuilderProvisioningError

Provisioning error, if any.

lastRunStatus
ImageTemplateLastRunStatus

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

buildTimeoutInMinutes
Nullable<Int32>

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

vmProfile
ImageTemplateVmProfile

Describes how virtual machine is set up to build images.

additionalDataDisks
IEnumerable<ImageBuilderDataDisk>

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

stagingResourceGroup
String

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.

exactStagingResourceGroup
String

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.

managedResourceTags
IDictionary<String,String>

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

autoRunState
Nullable<ImageTemplateAutoRunState>

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

identity
ImageTemplateIdentity

The identity of the image template, if configured.

Returns

A new ImageTemplateData instance for mocking.

Applies to