You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/aks/start-stop-nodepools.md
+10-6Lines changed: 10 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,6 +18,8 @@ This article assumes that you have an existing AKS cluster. If you need an AKS c
18
18
19
19
### Install aks-preview CLI extension
20
20
21
+
[!INCLUDE [preview features callout](./includes/preview/preview-callout.md)]
22
+
21
23
You also need the *aks-preview* Azure CLI extension. Install the *aks-preview* Azure CLI extension by using the [az extension add][az-extension-add] command. Or install any available updates by using the [az extension update][az-extension-update] command.
22
24
23
25
```azurecli-interactive
@@ -31,6 +33,12 @@ az extension update --name aks-preview
31
33
az feature register --namespace "Microsoft.ContainerService" --name "PreviewStartStopAgentPool"
32
34
```
33
35
36
+
When ready, refresh the registration of the *Microsoft.ContainerService* resource provider by using the [az provider register][az-provider-register] command:
37
+
38
+
```azurecli-interactive
39
+
az provider register --namespace Microsoft.ContainerService
Use `az aks nodepool stop` to stop a running AKS node pool. The following example stops the *testnodepool* node pool:
47
53
48
54
```azurecli-interactive
49
-
az aks nodepool stop --nodepool-name testnodepool -resource-group myResourceGroup --cluster-name myAKSCluster
55
+
az aks nodepool stop --nodepool-name testnodepool --resource-group myResourceGroup --cluster-name myAKSCluster
50
56
```
51
57
52
58
You can verify when your node pool is stopped by using the [az aks show][az-aks-show] command and confirming the `powerState` shows as `Stopped` as on the below output:
@@ -70,12 +76,10 @@ You can verify when your node pool is stopped by using the [az aks show][az-aks-
70
76
71
77
## Start a stopped AKS node pool
72
78
73
-
### [Azure CLI](#tab/azure-cli)
74
-
75
79
Use `az aks nodepool start` to start a stopped AKS node pool. The following example starts the stopped node pool named *testnodepool*:
76
80
77
81
```azurecli-interactive
78
-
az aks nodepool start --nodepool-name testnodepool -resource-group myResourceGroup --cluster-name myAKSCluster
82
+
az aks nodepool start --nodepool-name testnodepool --resource-group myResourceGroup --cluster-name myAKSCluster
79
83
```
80
84
81
85
You can verify your node pool has started using [az aks show][az-aks-show] and confirming the `powerState` shows `Running`. For example:
0 commit comments