共用方式為


AutomationAccountOperationsExtensions.CreateOrUpdateAsync 方法

定義

多載

CreateOrUpdateAsync(IAutomationAccountOperations, String, AutomationAccountCreateOrUpdateParameters)
CreateOrUpdateAsync(IAutomationAccountOperations, String, String, AutomationAccountCreateOrUpdateParameters, CancellationToken)

建立或更新自動化帳戶。 http://aka.ms/azureautomationsdk/automationaccountoperations

CreateOrUpdateAsync(IAutomationAccountOperations, String, AutomationAccountCreateOrUpdateParameters)

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

參數

resourceGroupName
String

傳回

適用於

CreateOrUpdateAsync(IAutomationAccountOperations, String, String, AutomationAccountCreateOrUpdateParameters, CancellationToken)

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

參數

operations
IAutomationAccountOperations

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

resourceGroupName
String

Azure 資源群組的名稱。

automationAccountName
String

自動化帳戶的名稱。

parameters
AutomationAccountCreateOrUpdateParameters

提供給建立或更新自動化帳戶的參數。

cancellationToken
CancellationToken

取消語彙基元。

傳回

適用於