通过


你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

ImageTemplateFileCustomizer Class

Definition

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

[System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.ImageTemplateFileCustomizerTypeConverter))]
public class ImageTemplateFileCustomizer : Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IImageTemplateFileCustomizer, Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Runtime.IValidates
[<System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.ImageTemplateFileCustomizerTypeConverter))>]
type ImageTemplateFileCustomizer = class
    interface IImageTemplateFileCustomizer
    interface IJsonSerializable
    interface IImageTemplateCustomizer
    interface IValidates
Public Class ImageTemplateFileCustomizer
Implements IImageTemplateFileCustomizer, IValidates
Inheritance
ImageTemplateFileCustomizer
Attributes
Implements

Constructors

Name Description
ImageTemplateFileCustomizer()

Creates an new ImageTemplateFileCustomizer instance.

Properties

Name Description
Destination

The absolute path to a file (with nested directory structures already created) where the file (from sourceUri) will be uploaded to in the VM

Name

Friendly Name to provide context on what this customization step does

Sha256Checksum

SHA256 checksum of the file provided in the sourceUri field above

SourceUri

The URI of the file to be uploaded for customizing the VM. It can be a github link, SAS URI for Azure Storage, etc

Type

The type of customization tool you want to use on the Image. For example, "Shell" can be shell customizer

Methods

Name Description
DeserializeFromDictionary(IDictionary)

Deserializes a IDictionary into an instance of ImageTemplateFileCustomizer.

DeserializeFromPSObject(PSObject)

Deserializes a PSObject into an instance of ImageTemplateFileCustomizer.

FromJson(JsonNode)

Deserializes a JsonNode into an instance of Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IImageTemplateFileCustomizer.

FromJsonString(String)

Creates a new instance of ImageTemplateFileCustomizer, deserializing the content from a json string.

ToJson(JsonObject, SerializationMode)

Serializes this instance of ImageTemplateFileCustomizer into a JsonNode.

ToJsonString()

Serializes this instance to a json string.

ToString()
Validate(IEventListener)

Validates that this object meets the validation criteria.

Applies to