Language

ArmImageBuilderModelFactory Class

Definition

A factory class for creating instances of the models for mocking.

public static class ArmImageBuilderModelFactory
type ArmImageBuilderModelFactory = class
Public Class ArmImageBuilderModelFactory
Inheritance
ArmImageBuilderModelFactory

Methods

Name Description
DistributeVersioner(String)

Describes how to generate new x.y.z version number for distribution. Please note this is the abstract base class. The derived classes available for instantiation are: DistributeVersionerLatest and DistributeVersionerSource.

DistributeVersionerLatest(Nullable<Int32>)

Generates version number that will be latest based on existing version numbers.

DistributeVersionerSource()

Generates version number based on version number of source image.

ImageBuilderDataDisk(Nullable<Int32>)

Data disk properties.

ImageBuilderProvisioningError(Nullable<ImageBuilderProvisioningErrorCode>, String)

Describes the error happened when create or update an image template.

ImageBuilderVirtualNetworkConfig(ResourceIdentifier, ResourceIdentifier, String)

Virtual Network configuration.

ImageTemplateCustomizer(String, String)

Describes a unit of image customization Please note this is the abstract base class. The derived classes available for instantiation are: ImageTemplateFileCustomizer, ImageTemplatePowerShellCustomizer, ImageTemplateRestartCustomizer, ImageTemplateShellCustomizer, and ImageTemplateWindowsUpdateCustomizer.

ImageTemplateData(ResourceIdentifier, String, ResourceType, SystemData, IDictionary<String,String>, AzureLocation, ImageTemplateSource, IEnumerable<ImageTemplateCustomizer>, ImageTemplateOptimizeConfig, ImageTemplateValidationConfig, IEnumerable<ImageTemplateDistributor>, ImageTemplateErrorHandling, Nullable<ImageBuilderProvisioningState>, ImageBuilderProvisioningError, ImageTemplateLastRunStatus, Nullable<Int32>, ImageTemplateVmProfile, IEnumerable<ImageBuilderDataDisk>, String, String, IDictionary<String,String>, Nullable<ImageTemplateAutoRunState>, ImageTemplateIdentity)
ImageTemplateDistributor(String, String, IDictionary<String,String>)

Generic distribution object Please note this is the abstract base class. The derived classes available for instantiation are: ImageTemplateManagedImageDistributor, ImageTemplateSharedImageDistributor, and ImageTemplateVhdDistributor.

ImageTemplateErrorHandling(Nullable<ImageBuilderOnBuildError>, Nullable<ImageBuilderOnBuildError>)

Error handling options upon a build failure.

ImageTemplateFileCustomizer(String, String, String, String)

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

ImageTemplateFileValidator(String, String, String, String)

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

ImageTemplateIdentity(Nullable<ImageBuilderIdentityType>, IDictionary<String,UserAssignedIdentity>)

Identity for the image template.

ImageTemplateInVMValidator(String, String)

Describes a unit of in-VM validation of image Please note this is the abstract base class. The derived classes available for instantiation are: ImageTemplateFileValidator, ImageTemplatePowerShellValidator, and ImageTemplateShellValidator.

ImageTemplateLastRunStatus(Nullable<DateTimeOffset>, Nullable<DateTimeOffset>, Nullable<ImageTemplateRunState>, Nullable<ImageTemplateRunSubState>, String)

Describes the latest status of running an image template.

ImageTemplateManagedImageDistributor(String, IDictionary<String,String>, ResourceIdentifier, AzureLocation)

Distribute as a Managed Disk Image.

ImageTemplateManagedImageSource(ResourceIdentifier)

Describes an image source that is a managed image in customer subscription. This image must reside in the same subscription and region as the Image Builder template.

ImageTemplateOptimizeConfig(Nullable<ImageTemplateVMBootOptimizationState>, ImageTemplateWorkloadOptimization)
ImageTemplatePatch(ImageTemplateIdentity, IDictionary<String,String>, IEnumerable<ImageTemplateDistributor>, ImageTemplateVmProfile)
ImageTemplatePlatformImageSource(String, String, String, String, String, PlatformImagePurchasePlan)

Describes an image source from Azure Gallery Images.

ImageTemplatePowerShellCustomizer(String, String, String, IEnumerable<String>, Nullable<Boolean>, Nullable<Boolean>, IEnumerable<Int32>)

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

ImageTemplatePowerShellValidator(String, String, String, IEnumerable<String>, Nullable<Boolean>, Nullable<Boolean>, IEnumerable<Int32>)

Runs the specified PowerShell script during the validation phase (Windows). Corresponds to Packer powershell provisioner. Exactly one of 'scriptUri' or 'inline' can be specified.

ImageTemplateRestartCustomizer(String, String, String, String)

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

ImageTemplateRunOutputData(ResourceIdentifier, String, ResourceType, SystemData, String, String, Nullable<ImageBuilderProvisioningState>)
ImageTemplateSharedImageDistributor(String, IDictionary<String, String>, ResourceIdentifier, IEnumerable<String>, Nullable<Boolean>, Nullable<SharedImageStorageAccountType>, IEnumerable<ImageTemplateTargetRegion>, DistributeVersioner, Nullable<ImageTemplateReplicationMode>)

Distribute via Azure Compute Gallery.

ImageTemplateSharedImageVersionSource(ResourceIdentifier, String)

Describes an image source that is an image version in an Azure Compute Gallery or a Direct Shared Gallery.

ImageTemplateShellCustomizer(String, String, String, IEnumerable<String>)

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

ImageTemplateShellValidator(String, String, String, IEnumerable<String>)

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

ImageTemplateSource(String)

Describes a virtual machine image source for building, customizing and distributing Please note this is the abstract base class. The derived classes available for instantiation are: ImageTemplateManagedImageSource, ImageTemplatePlatformImageSource, and ImageTemplateSharedImageVersionSource.

ImageTemplateTargetRegion(String, Nullable<Int32>, Nullable<SharedImageStorageAccountType>)

Describes the target region information.

ImageTemplateTriggerData(ResourceIdentifier, String, ResourceType, SystemData, TriggerProperties)

Represents a trigger that can invoke an image template build.

ImageTemplateTriggerStatus(String, String, Nullable<DateTimeOffset>)

Describes the status of a trigger.

ImageTemplateValidationConfig(Nullable<Boolean>, Nullable<Boolean>, IEnumerable<ImageTemplateInVMValidator>)

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

ImageTemplateVhdDistributor(String, IDictionary<String,String>, String)

Distribute via VHD in a storage account.

ImageTemplateVmProfile(String, Nullable<Int32>, IEnumerable<String>, ImageBuilderVirtualNetworkConfig)

Describes the virtual machines used to build and validate images.

ImageTemplateWindowsUpdateCustomizer(String, String, IEnumerable<String>, Nullable<Int32>)

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

ImageTemplateWorkloadOptimization(Nullable<ImageTemplateWorkloadOptimizationState>, String, String)

Optimization is applied on the image for specific workloads.

PlatformImagePurchasePlan(String, String, String)

Purchase plan configuration for platform image.

SourceImageTriggerProperties(ImageTemplateTriggerStatus, Nullable<ImageBuilderProvisioningState>)

Properties of SourceImage kind of trigger.

TriggerProperties(String, ImageTemplateTriggerStatus, Nullable<ImageBuilderProvisioningState>)

Describes the properties of a trigger Please note this is the abstract base class. The derived classes available for instantiation are: SourceImageTriggerProperties.

Applies to