Delete Node Pool Machines
A 2-step recipe with Azure Kubernetes Service. We can help you get access.
Recipe · 2 steps
Delete Node Pool Machines
with Azure Kubernetes Service · IT Infrastructure Management
Delete named machines from an AKS agent pool and wait for the operation to settle.
- Submit the list of machine names to delete. The required machineNames array is sent as the request body; AKS accepts the request asynchronously and returns 202 Accepted.
- Read the agent pool and inspect provisioningState. While it is still Deleting the flow loops back to this step; once it reports Succeeded the workflow ends.
What you'll need to have ready
- subscriptionId: The ID of the target subscription (valid UUID).
- resourceGroupName: The name of the resource group.
- resourceName: The name of the managed cluster.
- agentPoolName: The name of the agent pool.
- machineNames: The list of machine names to delete from the pool.
- apiVersion: The AKS REST API version to use.
- accessToken: An Azure AD bearer token with user_impersonation scope.
For your developer
Arazzo workflow microsoft-azure-kubernetes-service:delete-node-pool-machines, 2 operations: AgentPools_DeleteMachines → AgentPools_Get. Specs on APIs.io.