Language

ArmImageBuilderModelFactory.ImageTemplateFileValidator Method

Definition

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

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

Parameters

name
String

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

sourceUri
String

The URI of the file to be uploaded to the VM for validation. It can be a github link, Azure Storage URI (authorized or SAS), 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 ImageTemplateFileValidator instance for mocking.

Applies to