ModuleOperationsExtensions.CreateOrUpdateAsync 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
CreateOrUpdateAsync(IModuleOperations, String, String, ModuleCreateOrUpdateParameters)
public static System.Threading.Tasks.Task<Microsoft.Azure.Management.Automation.Models.ModuleCreateOrUpdateResponse> CreateOrUpdateAsync (this Microsoft.Azure.Management.Automation.IModuleOperations operations, string resourceGroupName, string automationAccount, Microsoft.Azure.Management.Automation.Models.ModuleCreateOrUpdateParameters parameters);
static member CreateOrUpdateAsync : Microsoft.Azure.Management.Automation.IModuleOperations * string * string * Microsoft.Azure.Management.Automation.Models.ModuleCreateOrUpdateParameters -> System.Threading.Tasks.Task<Microsoft.Azure.Management.Automation.Models.ModuleCreateOrUpdateResponse>
<Extension()>
Public Function CreateOrUpdateAsync (operations As IModuleOperations, resourceGroupName As String, automationAccount As String, parameters As ModuleCreateOrUpdateParameters) As Task(Of ModuleCreateOrUpdateResponse)
參數
- operations
- IModuleOperations
- resourceGroupName
- String
- automationAccount
- String
- parameters
- ModuleCreateOrUpdateParameters
傳回
適用於
CreateOrUpdateAsync(IModuleOperations, String, String, String, ModuleCreateOrUpdateParameters, CancellationToken)
建立或更新模組名稱所識別的模組。 http://aka.ms/azureautomationsdk/moduleoperations
public static System.Threading.Tasks.Task<Microsoft.Azure.Management.Automation.Models.Module> CreateOrUpdateAsync (this Microsoft.Azure.Management.Automation.IModuleOperations operations, string resourceGroupName, string automationAccountName, string moduleName, Microsoft.Azure.Management.Automation.Models.ModuleCreateOrUpdateParameters parameters, System.Threading.CancellationToken cancellationToken = default);
static member CreateOrUpdateAsync : Microsoft.Azure.Management.Automation.IModuleOperations * string * string * string * Microsoft.Azure.Management.Automation.Models.ModuleCreateOrUpdateParameters * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.Automation.Models.Module>
<Extension()>
Public Function CreateOrUpdateAsync (operations As IModuleOperations, resourceGroupName As String, automationAccountName As String, moduleName As String, parameters As ModuleCreateOrUpdateParameters, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Module)
參數
- operations
- IModuleOperations
這個擴充方法的作業群組。
- resourceGroupName
- String
Azure 資源群組的名稱。
- automationAccountName
- String
自動化帳戶的名稱。
- moduleName
- String
模組的名稱。
- parameters
- ModuleCreateOrUpdateParameters
模組的建立或更新參數。
- cancellationToken
- CancellationToken
取消語彙基元。