Language

ArmImageBuilderModelFactory.ImageTemplateFileCustomizer Method

Definition

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

public static Azure.ResourceManager.ImageBuilder.Models.ImageTemplateFileCustomizer ImageTemplateFileCustomizer(string name = default, string sourceUri = default, string sha256Checksum = default, string destination = default);
static member ImageTemplateFileCustomizer : string * string * string * string -> Azure.ResourceManager.ImageBuilder.Models.ImageTemplateFileCustomizer
Public Shared Function ImageTemplateFileCustomizer (Optional name As String = Nothing, Optional sourceUri As String = Nothing, Optional sha256Checksum As String = Nothing, Optional destination As String = Nothing) As ImageTemplateFileCustomizer

Parameters

name
String

Friendly Name to provide context on what this customization step does.

sourceUri
String

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

sha256Checksum
String

SHA256 checksum of the file provided in the sourceUri field above.

destination
String

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

Returns

A new ImageTemplateFileCustomizer instance for mocking.

Applies to