IImageTemplatePowerShellValidator Interface
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
[System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.ImageTemplatePowerShellValidatorTypeConverter))]
public interface IImageTemplatePowerShellValidator : Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IImageTemplateInVMValidator
[<System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.ImageTemplatePowerShellValidatorTypeConverter))>]
type IImageTemplatePowerShellValidator = interface
interface IJsonSerializable
interface IImageTemplateInVMValidator
Public Interface IImageTemplatePowerShellValidator
Implements IImageTemplateInVMValidator
- Derived
- Attributes
- Implements
Properties
| Name | Description |
|---|---|
| Inline |
Array of PowerShell commands to execute |
| Name |
Friendly Name to provide context on what this validation step does (Inherited from IImageTemplateInVMValidator) |
| RunAsSystem |
If specified, the PowerShell script will be run with elevated privileges using the Local System user. Can only be true when the runElevated field above is set to true. |
| RunElevated |
If specified, the PowerShell script will be run with elevated privileges |
| ScriptUri |
URI of the PowerShell script to be run for validation. It can be a github link, Azure Storage URI, etc |
| Sha256Checksum |
SHA256 checksum of the power shell script provided in the scriptUri field above |
| Type |
The type of validation you want to use on the Image. For example, "Shell" can be shell validation (Inherited from IImageTemplateInVMValidator) |
| ValidExitCode |
Valid exit codes for the PowerShell script. [Default: 0] |
Methods
| Name | Description |
|---|---|
| ToJson(JsonObject, SerializationMode) | (Inherited from IJsonSerializable) |