Skip to content

Commit 18b8ad1

Browse files
author
Kaarthikeyan Subramanian
committed
opstatus ex1
1 parent 7d3c348 commit 18b8ad1

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

articles/aks/manage-abort-operations.md

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,23 @@ ms.subservice: aks-nodes
88

99
# Terminate a long running operation on an Azure Kubernetes Service (AKS) cluster
1010

11-
Sometimes deployment or other processes running within pods on nodes in a cluster can run for periods of time longer than expected due to various reasons. While it's important to allow those processes to gracefully terminate when they're no longer needed, there are circumstances where you need to release control of node pools and clusters with long running operations using an *abort* command.
11+
Sometimes deployment or other processes running within pods on nodes in a cluster can run for periods of time longer than expected due to various reasons. You can now find out exactly how much percentage of the ongoing operation has been completed. Using any preview API version after `2024-01-02-preview` monitor the progress of any ongoing operation such as create, upgrade, scale etc in the following way -
12+
13+
```azurecli-interactive
14+
export ResourceID="You cluster ResourceID"
15+
az rest --method get --url "https://management.azure.com$ResourceID/operations/latest?api-version=2024-01-02-preview"
16+
```
17+
This provides an indication if the operation is close to completion or not. Furthermore you can now get upto 50 latest operations on your cluster with the above method. The attribute "percentComplete" denotes the extent of completion for the ongoing operation. An example is given below:
18+
19+
```azurecli-interactive
20+
"id": "/subscriptions/26fe00f8-9173-4872-9134-bb1d2e00343a/resourcegroups/testStatus/providers/Microsoft.ContainerService/managedClusters/contoso/operations/fc10e97d-b7a8-4a54-84de-397c45f322e1",
21+
"name": "fc10e97d-b7a8-4a54-84de-397c45f322e1",
22+
"percentComplete": 10,
23+
"startTime": "2024-04-08T18:21:31Z",
24+
"status": "InProgress"
25+
```
26+
27+
While it's important to allow operations to gracefully terminate when they're no longer needed, there are circumstances where you need to release control of node pools and clusters with long running operations using an *abort* command.
1228

1329
AKS support for aborting long running operations is now generally available. This feature allows you to take back control and run another operation seamlessly. This design is supported using the [Azure REST API](/rest/api/azure/) or the [Azure CLI](/cli/azure/).
1430

0 commit comments

Comments
 (0)