Sdílet prostřednictvím


VariableOperationsExtensions.CreateOrUpdateAsync Metoda

Definice

Přetížení

CreateOrUpdateAsync(IVariableOperations, String, String, VariableCreateOrUpdateParameters)
CreateOrUpdateAsync(IVariableOperations, String, String, String, VariableCreateOrUpdateParameters, CancellationToken)

Vytvořte proměnnou. http://aka.ms/azureautomationsdk/variableoperations

CreateOrUpdateAsync(IVariableOperations, String, String, VariableCreateOrUpdateParameters)

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

Parametry

operations
IVariableOperations
resourceGroupName
String
automationAccount
String

Návraty

Platí pro

CreateOrUpdateAsync(IVariableOperations, String, String, String, VariableCreateOrUpdateParameters, CancellationToken)

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

Parametry

operations
IVariableOperations

Skupina operací pro tuto metodu rozšíření.

resourceGroupName
String

Název skupiny prostředků Azure.

automationAccountName
String

Název účtu Automation.

variableName
String

Název proměnné.

parameters
VariableCreateOrUpdateParameters

Parametry zadané pro operaci vytvoření nebo aktualizace proměnné.

cancellationToken
CancellationToken

Token zrušení.

Návraty

Platí pro