Skip to content

Commit 6da0706

Browse files
committed
updated items per CSS feedback
1 parent f43526c commit 6da0706

File tree

1 file changed

+17
-22
lines changed

1 file changed

+17
-22
lines changed

articles/aks/manage-abort-operations.md

Lines changed: 17 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: Abort an Azure Kubernetes Service (AKS) long running operation
33
description: Learn how to terminate a long running operation on an Azure Kubernetes Service cluster at the node pool or cluster level.
44
services: container-service
55
ms.topic: article
6-
ms.date: 09/06/2022
6+
ms.date: 09/08/2022
77

88
---
99

@@ -25,46 +25,41 @@ This article assumes that you have an existing AKS cluster. If you need an AKS c
2525

2626
## Abort a long running operation
2727

28-
### [Azure REST API](#tab/azure-rest)
28+
### [Azure CLI](#tab/azure-cli)
2929

30-
You can use the Azure REST API [Abort](/rest/api/aks/managed-clusters) operation to stop an operation against the Managed Cluster.
30+
You can use the [az aks nodepool](/cli/azure/aks/nodepool) command with the `operation-abort` argument to abort an operation on a node pool or a managed cluster.
3131

32-
The following example terminates a process for a specified agent pool.
32+
The following example terminates an operation on a node pool on a specified cluster by its name and resource group that holds the cluster.
3333

34-
```rest
35-
/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedclusters/{resourceName}/agentPools/{agentPoolName}/abort
34+
```azurecli-interactive
35+
az aks nodepool operation-abort --resource-group myResourceGroup --cluster-name myAKSCluster --name myNodePool
3636
```
3737

38-
The following example terminates a process for a specified managed cluster.
38+
The following example terminates an operation against a specified managed cluster its name and resource group that holds the cluster.
3939

40-
```rest
41-
/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedclusters/{resourceName}/abort
40+
```azurecli-interactive
41+
az aks operation-abort --name myAKSCluster --resource-group myResourceGroup
4242
```
4343

4444
In the response, an HTTP status code of 204 is returned.
4545

46-
### [Azure CLI](#tab/azure-cli)
47-
48-
You can use the [az aks nodepool](/cli/azure/aks/nodepool) command with the `operation-abort` argument to abort an operation on a node pool or a managed cluster.
49-
50-
The following example terminates an operation on a node pool on a specified cluster by its name and resource group that holds the cluster.
46+
### [Azure REST API](#tab/azure-rest)
5147

52-
```azurecli-interactive
53-
az aks nodepool operation-abort\
48+
You can use the Azure REST API [Abort](/rest/api/aks/managed-clusters) operation to stop an operation against the Managed Cluster.
5449

55-
--resource-group myResourceGroup \
50+
The following example terminates a process for a specified agent pool.
5651

57-
--cluster-name myAKSCluster \
52+
```rest
53+
/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedclusters/{resourceName}/agentPools/{agentPoolName}/abort
5854
```
5955

60-
The following example terminates an operation against a specified managed cluster its name and resource group that holds the cluster.
56+
The following example terminates a process for a specified managed cluster.
6157

62-
```azurecli-interactive
63-
az aks operation-abort --name myAKSCluster --resource-group myResourceGroup
58+
```rest
59+
/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedclusters/{resourceName}/abort
6460
```
6561

6662
In the response, an HTTP status code of 204 is returned.
67-
6863
---
6964

7065
The provisioning state on the managed cluster or agent pool should be **Canceled**. Use the REST API [Get Managed Clusters](/rest/api/aks/managed-clusters/get) or [Get Agent Pools](/rest/api/aks/agent-pools/get) to verify the operation. The provisioning state should update to **Canceled** within a few seconds of the abort request being accepted. Operation status of last running operation ID on the managed cluster/agent pool, which can be retrieved by performing a GET operation against the Managed Cluster or agent pool, should show a status of **Canceling**.

0 commit comments

Comments
 (0)