Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Next Next commit
Add virtualmachines related properties to GA API
  • Loading branch information
[email protected] committed May 22, 2025
commit 5456a46833aa868cca46c2dcdd0a960390a72575
Original file line number Diff line number Diff line change
@@ -0,0 +1,139 @@
{
"parameters": {
"api-version": "2025-04-01",
"subscriptionId": "00000000-0000-0000-0000-000000000000",
"resourceGroupName": "rg1",
"resourceName": "clustername1",
"agentPoolName": "agentpool1",
"parameters": {
"properties": {
"orchestratorVersion": "1.9.6",
"osType": "Linux",
"tags": {
"name1": "val1"
},
"nodeLabels": {
"key1": "val1"
},
"nodeTaints": [
"Key1=Value1:NoSchedule"
],
"type": "VirtualMachines",
"virtualMachinesProfile": {
"scale": {
"manual": [
{
"size": "Standard_D2_v2",
"count": 3
},
{
"size": "Standard_D2_v3",
"count": 2
}
]
}
}
}
}
},
"responses": {
"200": {
"body": {
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg1/providers/Microsoft.ContainerService/managedClusters/clustername1/agentPools/agentpool1",
"type": "Microsoft.ContainerService/managedClusters/agentPools",
"name": "agentpool1",
"properties": {
"provisioningState": "Succeeded",
"orchestratorVersion": "1.9.6",
"currentOrchestratorVersion": "1.9.6",
"maxPods": 110,
"osType": "Linux",
"tags": {
"name1": "val1"
},
"nodeLabels": {
"key1": "val1"
},
"nodeTaints": [
"Key1=Value1:NoSchedule"
],
"type": "VirtualMachines",
"virtualMachinesProfile": {
"scale": {
"manual": [
{
"size": "Standard_D2_v2",
"count": 3
},
{
"size": "Standard_D2_v3",
"count": 2
}
]
}
},
"virtualMachineNodesStatus": [
{
"size": "Standard_D2_v2",
"count": 3
},
{
"size": "Standard_D2_v3",
"count": 2
}
],
"nodeImageVersion": "AKSUbuntu-1804gen2containerd-2021.09.11"
}
}
},
"201": {
"body": {
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg1/providers/Microsoft.ContainerService/managedClusters/clustername1/agentPools/agentpool1",
"type": "Microsoft.ContainerService/managedClusters/agentPools",
"name": "agentpool1",
"properties": {
"provisioningState": "Creating",
"orchestratorVersion": "1.9.6",
"currentOrchestratorVersion": "1.9.6",
"maxPods": 110,
"osType": "Linux",
"tags": {
"name1": "val1"
},
"nodeLabels": {
"key1": "val1"
},
"nodeTaints": [
"Key1=Value1:NoSchedule"
],
"type": "VirtualMachines",
"virtualMachinesProfile": {
"scale": {
"manual": [
{
"size": "Standard_D2_v2",
"count": 3
},
{
"size": "Standard_D2_v3",
"count": 2
}
]
}
},
"virtualMachineNodesStatus": [
{
"size": "Standard_D2_v2",
"count": 3
},
{
"size": "Standard_D2_v3",
"count": 2
}
],
"nodeImageVersion": "AKSUbuntu-1804gen2containerd-2021.09.11"
}
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -3259,6 +3259,96 @@
"clientId"
]
},
"VirtualMachinesProfile": {
"type": "object",
"properties": {
"scale": {
"$ref": "#/definitions/ScaleProfile",
"description": "Specifications on how to scale a VirtualMachines agent pool."
}
},
"description": "Specifications on VirtualMachines agent pool."
},
"ScaleProfile": {
"type": "object",
"properties": {
"manual": {
"type": "array",
"items": {
"$ref": "#/definitions/ManualScaleProfile"
},
"x-ms-identifiers": [],
"description": "Specifications on how to scale the VirtualMachines agent pool to a fixed size."
},
"autoscale": {
"type": "object",
"items": {
"$ref": "#/definitions/AutoScaleProfile"
},
"x-ms-identifiers": [],
"description": "Specifications on how to auto-scale the VirtualMachines agent pool within a predefined size range."
}
},
"description": "Specifications on how to scale a VirtualMachines agent pool."
},
"ManualScaleProfile": {
"type": "object",
"properties": {
"size": {
"type": "string",
"description": "VM size that AKS will use when creating and scaling e.g. 'Standard_E4s_v3', 'Standard_E16s_v3' or 'Standard_D16s_v5'."
},
"count": {
"type": "integer",
"format": "int32",
"description": "Number of nodes."
}
},
"description": "Specifications on number of machines."
},
"AutoScaleProfile": {
"type": "object",
"properties": {
"size": {
"type": "string",
"description": "VM size that AKS will use when creating and scaling e.g. 'Standard_E4s_v3', 'Standard_E16s_v3' or 'Standard_D16s_v5'."
},
"minCount": {
"type": "integer",
"format": "int32",
"description": "The minimum number of nodes of the specified sizes."
},
"maxCount": {
"type": "integer",
"format": "int32",
"description": "The maximum number of nodes of the specified sizes."
}
},
"description": "Specifications on auto-scaling."
},
"VirtualMachineNodesStatus": {
"type": "array",
"items": {
"$ref": "#/definitions/VirtualMachineNodes"
},
"x-ms-identifiers": [],
"description": "The status of nodes in a VirtualMachines agent pool."
},
"VirtualMachineNodes": {
"type": "object",
"properties": {
"size": {
"type": "string",
"description": "The VM size of the agents used to host this group of nodes."
},
"count": {
"type": "integer",
"format": "int32",
"description": "Number of nodes."
}
},
"description": "Current status on a group of nodes of the same vm size."
},
"ManagedClusterAgentPoolProfileProperties": {
"type": "object",
"properties": {
Expand Down Expand Up @@ -3516,6 +3606,12 @@
"gatewayProfile": {
"$ref": "#/definitions/AgentPoolGatewayProfile",
"description": "Profile specific to a managed agent pool in Gateway mode. This field cannot be set if agent pool mode is not Gateway."
},
"virtualMachinesProfile": {
"$ref": "#/definitions/VirtualMachinesProfile"
},
"virtualMachineNodesStatus": {
"$ref": "#/definitions/VirtualMachineNodesStatus"
}
},
"description": "Properties for the container service agent pool profile."
Expand Down Expand Up @@ -3641,7 +3737,8 @@
"type": "string",
"enum": [
"VirtualMachineScaleSets",
"AvailabilitySet"
"AvailabilitySet",
"VirtualMachines"
],
"x-ms-enum": {
"name": "AgentPoolType",
Expand All @@ -3654,6 +3751,10 @@
{
"value": "AvailabilitySet",
"description": "Use of this is strongly discouraged."
},
{
"value": "VirtualMachines",
"description": "Create an Agent Pool backed by a Single Instance VM orchestration mode."
}
]
},
Expand Down