Compartilhar via


ModuleOperationsExtensions.CreateOrUpdateAsync Método

Definição

Sobrecargas

CreateOrUpdateAsync(IModuleOperations, String, String, ModuleCreateOrUpdateParameters)
CreateOrUpdateAsync(IModuleOperations, String, String, String, ModuleCreateOrUpdateParameters, CancellationToken)

Crie ou atualize o módulo identificado pelo nome do módulo. http://aka.ms/azureautomationsdk/moduleoperations

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)

Parâmetros

operations
IModuleOperations
resourceGroupName
String
automationAccount
String

Retornos

Aplica-se a

CreateOrUpdateAsync(IModuleOperations, String, String, String, ModuleCreateOrUpdateParameters, CancellationToken)

Crie ou atualize o módulo identificado pelo nome do módulo. 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)

Parâmetros

operations
IModuleOperations

O grupo de operações para esse método de extensão.

resourceGroupName
String

Nome de um grupo de recursos do Azure.

automationAccountName
String

O nome da conta de automação.

moduleName
String

O nome do módulo.

parameters
ModuleCreateOrUpdateParameters

Os parâmetros de criação ou atualização para o módulo.

cancellationToken
CancellationToken

O token de cancelamento.

Retornos

Aplica-se a