Share via


ArmAvsModelFactory.ScriptExecutionData Method

Definition

Initializes a new instance of ScriptExecutionData.

public static Azure.ResourceManager.Avs.ScriptExecutionData ScriptExecutionData (Azure.Core.ResourceIdentifier id = default, string name = default, Azure.Core.ResourceType resourceType = default, Azure.ResourceManager.Models.SystemData systemData = default, Azure.Core.ResourceIdentifier scriptCmdletId = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.Avs.Models.ScriptExecutionParameterDetails> parameters = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.Avs.Models.ScriptExecutionParameterDetails> hiddenParameters = default, string failureReason = default, string timeout = default, string retention = default, DateTimeOffset? submittedOn = default, DateTimeOffset? startedOn = default, DateTimeOffset? finishedOn = default, Azure.ResourceManager.Avs.Models.ScriptExecutionProvisioningState? provisioningState = default, System.Collections.Generic.IEnumerable<string> output = default, BinaryData namedOutputs = default, System.Collections.Generic.IEnumerable<string> information = default, System.Collections.Generic.IEnumerable<string> warnings = default, System.Collections.Generic.IEnumerable<string> errors = default);
static member ScriptExecutionData : Azure.Core.ResourceIdentifier * string * Azure.Core.ResourceType * Azure.ResourceManager.Models.SystemData * Azure.Core.ResourceIdentifier * seq<Azure.ResourceManager.Avs.Models.ScriptExecutionParameterDetails> * seq<Azure.ResourceManager.Avs.Models.ScriptExecutionParameterDetails> * string * string * string * Nullable<DateTimeOffset> * Nullable<DateTimeOffset> * Nullable<DateTimeOffset> * Nullable<Azure.ResourceManager.Avs.Models.ScriptExecutionProvisioningState> * seq<string> * BinaryData * seq<string> * seq<string> * seq<string> -> Azure.ResourceManager.Avs.ScriptExecutionData
Public Shared Function ScriptExecutionData (Optional id As ResourceIdentifier = Nothing, Optional name As String = Nothing, Optional resourceType As ResourceType = Nothing, Optional systemData As SystemData = Nothing, Optional scriptCmdletId As ResourceIdentifier = Nothing, Optional parameters As IEnumerable(Of ScriptExecutionParameterDetails) = Nothing, Optional hiddenParameters As IEnumerable(Of ScriptExecutionParameterDetails) = Nothing, Optional failureReason As String = Nothing, Optional timeout As String = Nothing, Optional retention As String = Nothing, Optional submittedOn As Nullable(Of DateTimeOffset) = Nothing, Optional startedOn As Nullable(Of DateTimeOffset) = Nothing, Optional finishedOn As Nullable(Of DateTimeOffset) = Nothing, Optional provisioningState As Nullable(Of ScriptExecutionProvisioningState) = Nothing, Optional output As IEnumerable(Of String) = Nothing, Optional namedOutputs As BinaryData = Nothing, Optional information As IEnumerable(Of String) = Nothing, Optional warnings As IEnumerable(Of String) = Nothing, Optional errors As IEnumerable(Of String) = Nothing) As ScriptExecutionData

Parameters

id
ResourceIdentifier

The id.

name
String

The name.

resourceType
ResourceType

The resourceType.

systemData
SystemData

The systemData.

scriptCmdletId
ResourceIdentifier

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

parameters
IEnumerable<ScriptExecutionParameterDetails>

Parameters the script will accept Please note ScriptExecutionParameterDetails is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. The available derived classes include PSCredentialExecutionParameterDetails, ScriptSecureStringExecutionParameterDetails and ScriptStringExecutionParameterDetails.

hiddenParameters
IEnumerable<ScriptExecutionParameterDetails>

Parameters that will be hidden/not visible to ARM, such as passwords and credentials Please note ScriptExecutionParameterDetails is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. The available derived classes include PSCredentialExecutionParameterDetails, ScriptSecureStringExecutionParameterDetails and ScriptStringExecutionParameterDetails.

failureReason
String

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

timeout
String

Time limit for execution.

retention
String

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

submittedOn
Nullable<DateTimeOffset>

Time the script execution was submitted.

startedOn
Nullable<DateTimeOffset>

Time the script execution was started.

finishedOn
Nullable<DateTimeOffset>

Time the script execution was finished.

provisioningState
Nullable<ScriptExecutionProvisioningState>

The state of the script execution resource.

output
IEnumerable<String>

Standard output stream from the powershell execution.

namedOutputs
BinaryData

User-defined dictionary.

information
IEnumerable<String>

Standard information out stream from the powershell execution.

warnings
IEnumerable<String>

Standard warning out stream from the powershell execution.

errors
IEnumerable<String>

Standard error output stream from the powershell execution.

Returns

A new ScriptExecutionData instance for mocking.

Applies to