共用方式為


VirtualMachineScaleSetsOperationsExtensions.ConvertToSinglePlacementGroup Method

Definition

Converts SinglePlacementGroup property to false for a existing virtual machine scale set.

public static void ConvertToSinglePlacementGroup (this Microsoft.Azure.Management.Compute.IVirtualMachineScaleSetsOperations operations, string resourceGroupName, string vmScaleSetName, string activePlacementGroupId = default);
static member ConvertToSinglePlacementGroup : Microsoft.Azure.Management.Compute.IVirtualMachineScaleSetsOperations * string * string * string -> unit
<Extension()>
Public Sub ConvertToSinglePlacementGroup (operations As IVirtualMachineScaleSetsOperations, resourceGroupName As String, vmScaleSetName As String, Optional activePlacementGroupId As String = Nothing)

Parameters

operations
IVirtualMachineScaleSetsOperations

The operations group for this extension method.

resourceGroupName
String

The name of the resource group.

vmScaleSetName
String

The name of the virtual machine scale set to create or update.

activePlacementGroupId
String

Id of the placement group in which you want future virtual machine instances to be placed. To query placement group Id, please use Virtual Machine Scale Set VMs - Get API. If not provided, the platform will choose one with maximum number of virtual machine instances.

Applies to