Skip to content

Commit e9abd6c

Browse files
authored
Merge pull request #210571 from MGoedtel/bug1986439
updated items per CSS feedback
2 parents 0061aeb + 141248d commit e9abd6c

File tree

1 file changed

+17
-21
lines changed

1 file changed

+17
-21
lines changed

articles/aks/manage-abort-operations.md

Lines changed: 17 additions & 21 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,42 +25,38 @@ 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.

0 commit comments

Comments
 (0)