共用方式為


RunbookOperationsExtensions.CreateOrUpdateAsync 方法

定義

多載

CreateOrUpdateAsync(IRunbookOperations, String, String, RunbookCreateOrUpdateParameters)
CreateOrUpdateAsync(IRunbookOperations, String, String, String, RunbookCreateOrUpdateParameters, CancellationToken)

建立 Runbook 名稱所識別的 Runbook。 http://aka.ms/azureautomationsdk/runbookoperations

CreateOrUpdateAsync(IRunbookOperations, String, String, RunbookCreateOrUpdateParameters)

public static System.Threading.Tasks.Task<Microsoft.Azure.Management.Automation.Models.RunbookCreateOrUpdateResponse> CreateOrUpdateAsync (this Microsoft.Azure.Management.Automation.IRunbookOperations operations, string resourceGroupName, string automationAccount, Microsoft.Azure.Management.Automation.Models.RunbookCreateOrUpdateParameters parameters);
static member CreateOrUpdateAsync : Microsoft.Azure.Management.Automation.IRunbookOperations * string * string * Microsoft.Azure.Management.Automation.Models.RunbookCreateOrUpdateParameters -> System.Threading.Tasks.Task<Microsoft.Azure.Management.Automation.Models.RunbookCreateOrUpdateResponse>
<Extension()>
Public Function CreateOrUpdateAsync (operations As IRunbookOperations, resourceGroupName As String, automationAccount As String, parameters As RunbookCreateOrUpdateParameters) As Task(Of RunbookCreateOrUpdateResponse)

參數

operations
IRunbookOperations
resourceGroupName
String
automationAccount
String

傳回

適用於

CreateOrUpdateAsync(IRunbookOperations, String, String, String, RunbookCreateOrUpdateParameters, CancellationToken)

建立 Runbook 名稱所識別的 Runbook。 http://aka.ms/azureautomationsdk/runbookoperations

public static System.Threading.Tasks.Task<Microsoft.Azure.Management.Automation.Models.Runbook> CreateOrUpdateAsync (this Microsoft.Azure.Management.Automation.IRunbookOperations operations, string resourceGroupName, string automationAccountName, string runbookName, Microsoft.Azure.Management.Automation.Models.RunbookCreateOrUpdateParameters parameters, System.Threading.CancellationToken cancellationToken = default);
static member CreateOrUpdateAsync : Microsoft.Azure.Management.Automation.IRunbookOperations * string * string * string * Microsoft.Azure.Management.Automation.Models.RunbookCreateOrUpdateParameters * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.Automation.Models.Runbook>
<Extension()>
Public Function CreateOrUpdateAsync (operations As IRunbookOperations, resourceGroupName As String, automationAccountName As String, runbookName As String, parameters As RunbookCreateOrUpdateParameters, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Runbook)

參數

operations
IRunbookOperations

這個擴充方法的作業群組。

resourceGroupName
String

Azure 資源群組的名稱。

automationAccountName
String

自動化帳戶的名稱。

runbookName
String

Runbook 名稱。

parameters
RunbookCreateOrUpdateParameters

Runbook 的建立或更新參數。 提供已發佈 Runbook 或草稿的內容連結,而不是兩者。

cancellationToken
CancellationToken

取消語彙基元。

傳回

適用於