Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
You might not need to continuously run your AKS workloads. For example, you might have a development cluster that has node pools running specific workloads. To optimize your compute costs, you can completely stop your node pools in your AKS cluster.
Features and limitations
- You can't stop system pools.
- Spot node pools are supported.
- Stopped node pools can be upgraded.
- The cluster and node pool must be running.
- You can't stop node pools from clusters which use the Node Autoprovisioning (NAP) feature.
Before you begin
This article assumes you have an existing AKS cluster. If you need an AKS cluster, create one using the Azure CLI, Azure PowerShell, or the Azure portal.
Stop an AKS node pool
- Stop a running AKS node pool using the - az aks nodepool stopcommand.- az aks nodepool stop --resource-group myResourceGroup --cluster-name myAKSCluster --nodepool-name testnodepool
- Verify your node pool stopped using the - az aks nodepool showcommand.- az aks nodepool show --resource-group myResourceGroup --cluster-name myAKSCluster --nodepool-name testnodepool- The following condensed example output shows the - powerStateas- Stopped:- { [...] "osType": "Linux", "podSubnetId": null, "powerState": { "code": "Stopped" }, "provisioningState": "Succeeded", "proximityPlacementGroupId": null, [...] }- Note - If the - provisioningStateshows- Stopping, your node pool is still in the process of stopping.- Note - Stopping the node pool will stop its Cluster Autoscaler, and starts it back when starting the node pool. So if you manually modify the number of VMSS instances in the pool while it's stopped, Cluster Autoscaler might show inconsistencies. 
Start a stopped AKS node pool
- Restart a stopped node pool using the - az aks nodepool startcommand.- az aks nodepool start --resource-group myResourceGroup --cluster-name myAKSCluster --nodepool-name testnodepool
- Verify your node pool started using the - az aks nodepool showcommand.- az aks nodepool show --resource-group myResourceGroup --cluster-name myAKSCluster --nodepool-name testnodepool- The following condensed example output shows the - powerStateas- Running:- { [...] "osType": "Linux", "podSubnetId": null, "powerState": { "code": "Running" }, "provisioningState": "Succeeded", "proximityPlacementGroupId": null, [...] }- Note - If the - provisioningStateshows- Starting, your node pool is still in the process of starting.
Next steps
- To learn how to scale Userpools to 0, see scaleUserpools to 0.
- To learn how to stop your cluster, see cluster start/stop.
- To learn how to save costs using Spot instances, see add a spot node pool to AKS.
- To learn more about the AKS support policies, see AKS support policies.