The Azure Kubernetes Service (AKS) actions let you manage your AKS clusters directly from your workflows.
Scale an AKS agent pool
This action scales an AKS agent pool by updating the node count using the Agent Pools - Create Or Update - REST API.
Input field | Optionality | Type | Description |
|---|---|---|---|
| Required | String | An Azure Service Principal |
| Required | String | An Azure Service Principal |
| Required | String | The Azure tenant identifier. Can be passed as a secret. |
| Required | String | The Azure subscription identifier. For example, |
| Required | String | The name of the resource group that contains the AKS cluster. For example, |
| Required | String | The name of the AKS cluster. |
| Required | String | The name of the specific agent pool (node pool) within the AKS cluster that you want to scale. |
| Required | Integer | The desired number of nodes (virtual machines) to scale the agent pool. |
| Optional | List | A list of selectors used to extract specific values from the response. For example, |
Output field | Type | Description |
|---|---|---|
| Boolean | Indicates whether the action succeeded. Returns |
| String | Contains the failure reason as a message. |
| Object | The Azure API body response. For more information, see the Agent Pools - Create Or Update - REST API. |
| String | Optional for long running operation. The URL to poll for status. |
| String | Optional for long running operation. The URL that returns the final result once the operation completes. |
| Integer | Optional for long running operation. The number of seconds to wait before polling the async URL. |
| String | Optional. Used for concurrency control when updating a resource to avoid overwriting someone else's changes. |
name: scaleAzureAksPooldescription: 'This Workflows scales azure aks scale pool'steps: - name: azure_aks_scalePool_1 type: action action: azure.aks.scalePool version: 1 inputs: clientId: ${{ :secrets:azure-client-id }} clientSecret: ${{ :secrets:azure-client-secret }} tenantId: ${{ :secrets:azure-client-tenant }} subscriptionId: "12345678-1234-1234-1234-123456789abc" resourceGroupName: "my-resource-group" clusterName: test-cluster agentPoolName: agentpool count: 4 next: end