共用方式為


VirtualMachineResource.InstallPatches Method

Definition

Installs patches on the VM.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/installPatches
  • Operation Id: VirtualMachines_InstallPatches
  • Default Api Version: 2024-07-01
  • Resource: VirtualMachineResource
public virtual Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Compute.Models.VirtualMachineInstallPatchesResult> InstallPatches (Azure.WaitUntil waitUntil, Azure.ResourceManager.Compute.Models.VirtualMachineInstallPatchesContent content, System.Threading.CancellationToken cancellationToken = default);
abstract member InstallPatches : Azure.WaitUntil * Azure.ResourceManager.Compute.Models.VirtualMachineInstallPatchesContent * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Compute.Models.VirtualMachineInstallPatchesResult>
override this.InstallPatches : Azure.WaitUntil * Azure.ResourceManager.Compute.Models.VirtualMachineInstallPatchesContent * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Compute.Models.VirtualMachineInstallPatchesResult>
Public Overridable Function InstallPatches (waitUntil As WaitUntil, content As VirtualMachineInstallPatchesContent, Optional cancellationToken As CancellationToken = Nothing) As ArmOperation(Of VirtualMachineInstallPatchesResult)

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.

content
VirtualMachineInstallPatchesContent

Input for InstallPatches as directly received by the API.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

content is null.

Applies to