你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

VirtualMachinesOperationsExtensions.BeginInstallPatchesAsync 方法

定义

在 VM 上安装修补程序。

public static System.Threading.Tasks.Task<Microsoft.Azure.Management.Compute.Models.VirtualMachineInstallPatchesResult> BeginInstallPatchesAsync (this Microsoft.Azure.Management.Compute.IVirtualMachinesOperations operations, string resourceGroupName, string vmName, Microsoft.Azure.Management.Compute.Models.VirtualMachineInstallPatchesParameters installPatchesInput, System.Threading.CancellationToken cancellationToken = default);
static member BeginInstallPatchesAsync : Microsoft.Azure.Management.Compute.IVirtualMachinesOperations * string * string * Microsoft.Azure.Management.Compute.Models.VirtualMachineInstallPatchesParameters * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.Compute.Models.VirtualMachineInstallPatchesResult>
<Extension()>
Public Function BeginInstallPatchesAsync (operations As IVirtualMachinesOperations, resourceGroupName As String, vmName As String, installPatchesInput As VirtualMachineInstallPatchesParameters, Optional cancellationToken As CancellationToken = Nothing) As Task(Of VirtualMachineInstallPatchesResult)

参数

operations
IVirtualMachinesOperations

此扩展方法的操作组。

resourceGroupName
String

资源组的名称。

vmName
String

虚拟机的名称。

installPatchesInput
VirtualMachineInstallPatchesParameters

API 直接接收的 InstallPatches 的输入

cancellationToken
CancellationToken

取消标记。

返回

适用于