Condividi tramite


ScriptExecution Class

Definition

An instance of a script executed by a user - custom or AVS

[System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ScriptExecutionTypeConverter))]
public class ScriptExecution : Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptExecution, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IValidates
[<System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ScriptExecutionTypeConverter))>]
type ScriptExecution = class
    interface IScriptExecution
    interface IJsonSerializable
    interface IProxyResource
    interface IResource
    interface IValidates
Public Class ScriptExecution
Implements IScriptExecution, IValidates
Inheritance
ScriptExecution
Attributes
Implements

Constructors

ScriptExecution()

Creates an new ScriptExecution instance.

Properties

Error

Standard error output stream from the powershell execution

FailureReason

Error message if the script was able to run, but if the script itself had errors or powershell threw an exception

FinishedAt

Time the script execution was finished

HiddenParameter

Parameters that will be hidden/not visible to ARM, such as passwords and credentials

Id

Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"

Information

Standard information out stream from the powershell execution

Name

The name of the resource

NamedOutput

User-defined dictionary.

Output

Standard output stream from the powershell execution

Parameter

Parameters the script will accept

ProvisioningState

The state of the script execution resource

ResourceGroupName

Gets the resource group name

Retention

Time to live for the resource. If not provided, will be available for 60 days

ScriptCmdletId

A reference to the script cmdlet resource if user is running a AVS script

StartedAt

Time the script execution was started

SubmittedAt

Time the script execution was submitted

SystemDataCreatedAt

The timestamp of resource creation (UTC).

SystemDataCreatedBy

The identity that created the resource.

SystemDataCreatedByType

The type of identity that created the resource.

SystemDataLastModifiedAt

The timestamp of resource last modification (UTC)

SystemDataLastModifiedBy

The identity that last modified the resource.

SystemDataLastModifiedByType

The type of identity that last modified the resource.

Timeout

Time limit for execution

Type

The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

Warning

Standard warning out stream from the powershell execution

Methods

DeserializeFromDictionary(IDictionary)

Deserializes a IDictionary into an instance of ScriptExecution.

DeserializeFromPSObject(PSObject)

Deserializes a PSObject into an instance of ScriptExecution.

FromJson(JsonNode)

Deserializes a JsonNode into an instance of Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptExecution.

FromJsonString(String)

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

ToJson(JsonObject, SerializationMode)

Serializes this instance of ScriptExecution into a JsonNode.

ToJsonString()

Serializes this instance to a json string.

ToString()
Validate(IEventListener)

Validates that this object meets the validation criteria.

Applies to