次の方法で共有


VirtualMachineScaleSetVMRunCommandsOperationsExtensions.CreateOrUpdateAsync メソッド

定義

VMSS VM の実行コマンドを作成または更新する操作。

public static System.Threading.Tasks.Task<Microsoft.Azure.Management.Compute.Models.VirtualMachineRunCommand> CreateOrUpdateAsync (this Microsoft.Azure.Management.Compute.IVirtualMachineScaleSetVMRunCommandsOperations operations, string resourceGroupName, string vmScaleSetName, string instanceId, string runCommandName, Microsoft.Azure.Management.Compute.Models.VirtualMachineRunCommand runCommand, System.Threading.CancellationToken cancellationToken = default);
static member CreateOrUpdateAsync : Microsoft.Azure.Management.Compute.IVirtualMachineScaleSetVMRunCommandsOperations * string * string * string * string * Microsoft.Azure.Management.Compute.Models.VirtualMachineRunCommand * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.Compute.Models.VirtualMachineRunCommand>
<Extension()>
Public Function CreateOrUpdateAsync (operations As IVirtualMachineScaleSetVMRunCommandsOperations, resourceGroupName As String, vmScaleSetName As String, instanceId As String, runCommandName As String, runCommand As VirtualMachineRunCommand, Optional cancellationToken As CancellationToken = Nothing) As Task(Of VirtualMachineRunCommand)

パラメーター

operations
IVirtualMachineScaleSetVMRunCommandsOperations

この拡張メソッドの操作グループ。

resourceGroupName
String

リソース グループの名前。

vmScaleSetName
String

VM スケール セットの名前。

instanceId
String

仮想マシンのインスタンス ID。

runCommandName
String

仮想マシンの実行コマンドの名前。

runCommand
VirtualMachineRunCommand

仮想マシンの作成 RunCommand 操作に指定されたパラメーター。

cancellationToken
CancellationToken

キャンセル トークン。

戻り値

適用対象