VariableOperationsExtensions.CreateOrUpdateAsync Method

Definition

Overloads

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

Create a variable. 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)

Parameters

operations
IVariableOperations
resourceGroupName
String
automationAccount
String

Returns

Applies to

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)

Parameters

operations
IVariableOperations

The operations group for this extension method.

resourceGroupName
String

Name of an Azure Resource group.

automationAccountName
String

The name of the automation account.

variableName
String

The variable name.

parameters
VariableCreateOrUpdateParameters

The parameters supplied to the create or update variable operation.

cancellationToken
CancellationToken

The cancellation token.

Returns

Applies to