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

VirtualMachineOperationsExtensions.BeginUpdatingAsync 方法

定义

“开始更新角色”操作将虚拟机添加到现有部署。 (有关详细信息,请参阅 http://msdn.microsoft.com/en-us/library/windowsazure/jj157187.aspx)

public static System.Threading.Tasks.Task<Microsoft.Azure.AzureOperationResponse> BeginUpdatingAsync (this Microsoft.WindowsAzure.Management.Compute.IVirtualMachineOperations operations, string serviceName, string deploymentName, string virtualMachineName, Microsoft.WindowsAzure.Management.Compute.Models.VirtualMachineUpdateParameters parameters);
static member BeginUpdatingAsync : Microsoft.WindowsAzure.Management.Compute.IVirtualMachineOperations * string * string * string * Microsoft.WindowsAzure.Management.Compute.Models.VirtualMachineUpdateParameters -> System.Threading.Tasks.Task<Microsoft.Azure.AzureOperationResponse>
<Extension()>
Public Function BeginUpdatingAsync (operations As IVirtualMachineOperations, serviceName As String, deploymentName As String, virtualMachineName As String, parameters As VirtualMachineUpdateParameters) As Task(Of AzureOperationResponse)

参数

operations
IVirtualMachineOperations

对 Microsoft.WindowsAzure.Management.Compute.IVirtualMachineOperations 的引用。

serviceName
String

必需。 服务的名称。

deploymentName
String

必需。 部署的名称。

virtualMachineName
String

必需。 虚拟机的名称。

parameters
VirtualMachineUpdateParameters

必需。 提供给“开始更新虚拟机”操作的参数。

返回

Task<Microsoft.Azure.AzureOperationResponse>

标准服务响应,包括 HTTP 状态代码和请求 ID。

适用于