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

VirtualMachineScaleSetResource.ConvertToSinglePlacementGroupAsync 方法

定义

将现有虚拟机规模集的 SinglePlacementGroup 属性转换为 false。

  • 请求路径/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/convertToSinglePlacementGroup
  • 操作IdVirtualMachineScaleSets_ConvertToSinglePlacementGroup
public virtual System.Threading.Tasks.Task<Azure.Response> ConvertToSinglePlacementGroupAsync (Azure.ResourceManager.Compute.Models.VirtualMachineScaleSetConvertToSinglePlacementGroupContent content, System.Threading.CancellationToken cancellationToken = default);
abstract member ConvertToSinglePlacementGroupAsync : Azure.ResourceManager.Compute.Models.VirtualMachineScaleSetConvertToSinglePlacementGroupContent * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response>
override this.ConvertToSinglePlacementGroupAsync : Azure.ResourceManager.Compute.Models.VirtualMachineScaleSetConvertToSinglePlacementGroupContent * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response>
Public Overridable Function ConvertToSinglePlacementGroupAsync (content As VirtualMachineScaleSetConvertToSinglePlacementGroupContent, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response)

参数

content
VirtualMachineScaleSetConvertToSinglePlacementGroupContent

ConvertToSinglePlacementGroup API 的输入对象。

cancellationToken
CancellationToken

要使用的取消标记。

返回

例外

content 为 null。

适用于