共用方式為


ScriptExecution 建構函式

定義

多載

ScriptExecution()

初始化 ScriptExecution 類別的新實例。

ScriptExecution(String, String, String, String, String, IList<ScriptExecutionParameter>, IList<ScriptExecutionParameter>, String, String, Nullable<DateTime>, Nullable<DateTime>, Nullable<DateTime>, String, IList<String>, IDictionary<String,Object>, IList<String>, IList<String>, IList<String>)

初始化 ScriptExecution 類別的新實例。

ScriptExecution()

初始化 ScriptExecution 類別的新實例。

public ScriptExecution ();
Public Sub New ()

適用於

ScriptExecution(String, String, String, String, String, IList<ScriptExecutionParameter>, IList<ScriptExecutionParameter>, String, String, Nullable<DateTime>, Nullable<DateTime>, Nullable<DateTime>, String, IList<String>, IDictionary<String,Object>, IList<String>, IList<String>, IList<String>)

初始化 ScriptExecution 類別的新實例。

public ScriptExecution (string timeout, string id = default, string name = default, string type = default, string scriptCmdletId = default, System.Collections.Generic.IList<Microsoft.Azure.Management.Avs.Models.ScriptExecutionParameter> parameters = default, System.Collections.Generic.IList<Microsoft.Azure.Management.Avs.Models.ScriptExecutionParameter> hiddenParameters = default, string failureReason = default, string retention = default, DateTime? submittedAt = default, DateTime? startedAt = default, DateTime? finishedAt = default, string provisioningState = default, System.Collections.Generic.IList<string> output = default, System.Collections.Generic.IDictionary<string,object> namedOutputs = default, System.Collections.Generic.IList<string> information = default, System.Collections.Generic.IList<string> warnings = default, System.Collections.Generic.IList<string> errors = default);
new Microsoft.Azure.Management.Avs.Models.ScriptExecution : string * string * string * string * string * System.Collections.Generic.IList<Microsoft.Azure.Management.Avs.Models.ScriptExecutionParameter> * System.Collections.Generic.IList<Microsoft.Azure.Management.Avs.Models.ScriptExecutionParameter> * string * string * Nullable<DateTime> * Nullable<DateTime> * Nullable<DateTime> * string * System.Collections.Generic.IList<string> * System.Collections.Generic.IDictionary<string, obj> * System.Collections.Generic.IList<string> * System.Collections.Generic.IList<string> * System.Collections.Generic.IList<string> -> Microsoft.Azure.Management.Avs.Models.ScriptExecution
Public Sub New (timeout As String, Optional id As String = Nothing, Optional name As String = Nothing, Optional type As String = Nothing, Optional scriptCmdletId As String = Nothing, Optional parameters As IList(Of ScriptExecutionParameter) = Nothing, Optional hiddenParameters As IList(Of ScriptExecutionParameter) = Nothing, Optional failureReason As String = Nothing, Optional retention As String = Nothing, Optional submittedAt As Nullable(Of DateTime) = Nothing, Optional startedAt As Nullable(Of DateTime) = Nothing, Optional finishedAt As Nullable(Of DateTime) = Nothing, Optional provisioningState As String = Nothing, Optional output As IList(Of String) = Nothing, Optional namedOutputs As IDictionary(Of String, Object) = Nothing, Optional information As IList(Of String) = Nothing, Optional warnings As IList(Of String) = Nothing, Optional errors As IList(Of String) = Nothing)

參數

timeout
String

執行的時間限制

id
String

資源識別碼。

name
String

資源名稱。

type
String

資源類型。

scriptCmdletId
String

如果使用者執行 AVS 腳本,則為腳本 Cmdlet 資源的參考

parameters
IList<ScriptExecutionParameter>

腳本將接受的參數

hiddenParameters
IList<ScriptExecutionParameter>

ARM 將隱藏/看不到的參數,例如密碼和認證

failureReason
String

如果腳本能夠執行,但腳本本身發生錯誤或 Powershell 擲回例外狀況,則錯誤訊息

retention
String

資源存留時間。 如果未提供,則會提供 60 天

submittedAt
Nullable<DateTime>

提交腳本執行的時間

startedAt
Nullable<DateTime>

腳本執行開始的時間

finishedAt
Nullable<DateTime>

腳本執行完成的時間

provisioningState
String

腳本執行資源的狀態。 可能的值包括:'Pending'、'Running'、'Succeeded'、'Failed'、'Cancelling'、'Cancelled'、'刪除'

output
IList<String>

Powershell 執行的標準輸出資料流程

namedOutputs
IDictionary<String,Object>

使用者定義的字典。

information
IList<String>

從 powershell 執行輸出資料流程的標準資訊

warnings
IList<String>

從 Powershell 執行的標準警告輸出資料流程

errors
IList<String>

Powershell 執行的標準錯誤輸出資料流程

適用於