Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add new API convertToSinglePlacementGroup for VM Scale Set. #5614

Merged
merged 1 commit into from
Apr 12, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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."
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is a required property? if so please mark it as required

Copy link
Contributor Author

@ZheWang711 ZheWang711 Apr 11, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, activePlacementGroupId is an optional parameter. If it's not present in customer's request, we'll internally select a placement group as default if possible.

}
}
}
},
"parameters": {
"SubscriptionIdParameter": {
Expand All @@ -8412,4 +8462,4 @@
"description": "Client Api Version."
}
}
}
}