共用方式為


VariableOperationsExtensions.CreateOrUpdateAsync 方法

定義

多載

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

建立變數。 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)

參數

operations
IVariableOperations
resourceGroupName
String
automationAccount
String

傳回

適用於

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)

參數

operations
IVariableOperations

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

resourceGroupName
String

Azure 資源群組的名稱。

automationAccountName
String

自動化帳戶的名稱。

variableName
String

變數名稱。

parameters
VariableCreateOrUpdateParameters

提供給建立或更新變數作業的參數。

cancellationToken
CancellationToken

取消語彙基元。

傳回

適用於