Skip to content

Commit 867bb06

Browse files
committed
add more fixes
1 parent 93ea137 commit 867bb06

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

articles/aks/start-stop-nodepools.md

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ This article assumes that you have an existing AKS cluster. If you need an AKS c
1818

1919
### Install aks-preview CLI extension
2020

21+
[!INCLUDE [preview features callout](./includes/preview/preview-callout.md)]
22+
2123
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.
2224

2325
```azurecli-interactive
@@ -31,6 +33,12 @@ az extension update --name aks-preview
3133
az feature register --namespace "Microsoft.ContainerService" --name "PreviewStartStopAgentPool"
3234
```
3335

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
40+
```
41+
3442
## Stop an AKS node pool
3543

3644
> [!IMPORTANT]
@@ -41,12 +49,10 @@ az feature register --namespace "Microsoft.ContainerService" --name "PreviewStar
4149
> * Stopped node pools can be upgraded.
4250
> * The cluster and node pool must be running.
4351
44-
### [Azure CLI](#tab/azure-cli)
45-
4652
Use `az aks nodepool stop` to stop a running AKS node pool. The following example stops the *testnodepool* node pool:
4753

4854
```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
5056
```
5157

5258
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-
7076
7177
## Start a stopped AKS node pool
7278

73-
### [Azure CLI](#tab/azure-cli)
74-
7579
Use `az aks nodepool start` to start a stopped AKS node pool. The following example starts the stopped node pool named *testnodepool*:
7680

7781
```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
7983
```
8084

8185
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

Comments
 (0)