Condividi tramite


HybridComputeMachineResource.UpgradeExtensionsAsync Method

Definition

The operation to Upgrade Machine Extensions.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{machineName}/upgradeExtensions
  • Operation Id: UpgradeExtensions
  • Default Api Version: 2024-07-10
public virtual System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation> UpgradeExtensionsAsync (Azure.WaitUntil waitUntil, Azure.ResourceManager.HybridCompute.Models.MachineExtensionUpgrade extensionUpgradeParameters, System.Threading.CancellationToken cancellationToken = default);
abstract member UpgradeExtensionsAsync : Azure.WaitUntil * Azure.ResourceManager.HybridCompute.Models.MachineExtensionUpgrade * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation>
override this.UpgradeExtensionsAsync : Azure.WaitUntil * Azure.ResourceManager.HybridCompute.Models.MachineExtensionUpgrade * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation>
Public Overridable Function UpgradeExtensionsAsync (waitUntil As WaitUntil, extensionUpgradeParameters As MachineExtensionUpgrade, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ArmOperation)

Parameters

waitUntil
WaitUntil

Completed if the method should wait to return until the long-running operation has completed on the service; Started if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples.

extensionUpgradeParameters
MachineExtensionUpgrade

Parameters supplied to the Upgrade Extensions operation.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

extensionUpgradeParameters is null.

Applies to