Skip to content

Commit

Permalink
Add new API convertToSinglePlacementGroup for VM Scale Set. (#5614)
Browse files Browse the repository at this point in the history
  • Loading branch information
ZheWang711 authored and anuchandy committed Apr 12, 2019
1 parent 6094774 commit 6a18ab3
Showing 1 changed file with 52 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3557,6 +3557,48 @@
}
}
},
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/convertToSinglePlacementGroup": {
"post": {
"tags": [
"VirtualMachineScaleSets"
],
"operationId": "VirtualMachineScaleSet_ConvertToSinglePlacementGroup",
"description": "Converts SinglePlacementGroup property to false for a existing virtual machine scale set.",
"parameters": [
{
"name": "resourceGroupName",
"in": "path",
"required": true,
"type": "string",
"description": "The name of the resource group."
},
{
"name": "vmScaleSetName",
"in": "path",
"required": true,
"type": "string",
"description": "The name of the virtual machine scale set to create or update."
},
{
"name": "parameters",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/VMScaleSetConvertToSinglePlacementGroupInput"
},
"description": "The input object for ConvertToSinglePlacementGroup API."
},
{
"$ref": "#/parameters/SubscriptionIdParameter"
}
],
"responses": {
"200": {
"description": "OK"
}
}
}
},
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualmachines/{instanceId}/reimage": {
"post": {
"tags": [
Expand Down Expand Up @@ -8394,7 +8436,15 @@
}
},
"description": "LogAnalytics output properties"
}
},
"VMScaleSetConvertToSinglePlacementGroupInput": {
"properties":{
"activePlacementGroupId": {
"type": "string",
"description": "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."
}
}
}
},
"parameters": {
"SubscriptionIdParameter": {
Expand All @@ -8412,4 +8462,4 @@
"description": "Client Api Version."
}
}
}
}

0 comments on commit 6a18ab3

Please sign in to comment.