Skip to content

Commit eb70acf

Browse files
authored
Merge pull request #9230 from naman-msft/docs-editor/aks-cost-analysis-add-on-issue-1751313736
AB#6458: Update aks-cost-analysis-add-on-issues.md
2 parents e0982c3 + 59098fc commit eb70acf

File tree

1 file changed

+18
-8
lines changed

1 file changed

+18
-8
lines changed

support/azure/azure-kubernetes/extensions/aks-cost-analysis-add-on-issues.md

Lines changed: 18 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ ms.author: kaysieyu
77
ms.reviewer: pram, chiragpa, joharder, cssakscic, dafell, v-leedennis, v-weizhu
88
editor: v-jsitser
99
ms.service: azure-kubernetes-service
10-
ms.custom: sap:Extensions, Policies and Add-Ons, references_regions
10+
ms.custom: sap:Extensions, Policies and Add-Ons, references_regions, innovation-engine
1111
---
1212

1313
# AKS Cost Analysis add-on issues
@@ -39,8 +39,13 @@ You can't enable the Cost Analysis add-on on a cluster in which the [Azure Disk
3939

4040
Run the [az aks update][aks-update] command, and specify the `--enable-disk-driver` parameter. This parameter enables the Azure Disk CSI driver in AKS.
4141

42+
First, define the environment variables for your resource group and AKS cluster, using unique values for repeated runs:
43+
4244
```azurecli
43-
az aks update --resource-group <my-resource-group> --name <my-aks-cluster> --enable-disk-driver
45+
export RANDOM_SUFFIX=$(head -c 3 /dev/urandom | xxd -p)
46+
export RESOURCE_GROUP="my-aks-resource-group$RANDOM_SUFFIX"
47+
export AKS_CLUSTER="my-aks-cluster$RANDOM_SUFFIX"
48+
az aks update --resource-group $RESOURCE_GROUP --name $AKS_CLUSTER --enable-disk-driver
4449
```
4550

4651
For more information, see [CSI drivers on AKS](/azure/aks/csi-storage-drivers).
@@ -54,7 +59,10 @@ You can enable the Cost Analysis add-on only on a cluster that has a system-assi
5459
Run the [az aks update][aks-update] command, and specify the `--enable-managed-identity` parameter:
5560

5661
```azurecli
57-
az aks update --resource-group <my-resource-group> --name <my-aks-cluster> --enable-managed-identity
62+
export RANDOM_SUFFIX=$(head -c 3 /dev/urandom | xxd -p)
63+
export RESOURCE_GROUP="my-aks-resource-group$RANDOM_SUFFIX"
64+
export AKS_CLUSTER="my-aks-cluster$RANDOM_SUFFIX"
65+
az aks update --resource-group $RESOURCE_GROUP --name $AKS_CLUSTER --enable-managed-identity
5866
```
5967

6068
For more information, see [Use a managed identity in AKS](/azure/aks/use-managed-identity).
@@ -78,11 +86,13 @@ You can't enable the Cost Analysis add-on on AKS clusters that are on the free p
7886

7987
### Solution: Update the cluster to use the Standard or Premium pricing tier
8088

81-
Upgrade the AKS cluster to the Standard or Premium pricing tier. To do this, run one of the following [az aks update][aks-update] commands that specify the `--tier` parameter:
89+
Upgrade the AKS cluster to the Standard or Premium pricing tier. To do this, run the below [az aks update][aks-update] command that specify the `--tier` parameter. The `--tier` parameter can be set to either `standard` or `premium` (example below shows `standard`):
8290

8391
```azurecli
84-
az aks update --resource-group <my-resource-group> --name <my-aks-cluster> --tier standard
85-
az aks update --resource-group <my-resource-group> --name <my-aks-cluster> --tier premium
92+
export RANDOM_SUFFIX=$(head -c 3 /dev/urandom | xxd -p)
93+
export RESOURCE_GROUP="my-aks-resource-group$RANDOM_SUFFIX"
94+
export AKS_CLUSTER="my-aks-cluster$RANDOM_SUFFIX"
95+
az aks update --resource-group $RESOURCE_GROUP --name $AKS_CLUSTER --tier standard
8696
```
8797

8898
For more information, see [Free and Standard pricing tiers for AKS cluster management](/azure/aks/free-standard-pricing-tiers).
@@ -105,8 +115,8 @@ If the pod is stuck in the Pending state with the FailedScheduling error, the no
105115

106116
### Solution: Ensure there's sufficient allocatable memory
107117

108-
The current memory request of the cost-analysis-agent pod is set to 500 MB. Ensure that there's sufficient allocatable memory for the pod to be scheduled.
118+
The current memory request of the cost-analysis-agent pod is set to 500 MB. Ensure that there's sufficient allocatable memory for the pod to be scheduled
109119

110120
[!INCLUDE [Azure Help Support](../../../includes/azure-help-support.md)]
111121

112-
[aks-update]: /cli/azure/aks#az-aks-update
122+
[aks-update]: /cli/azure/aks#az-aks-update

0 commit comments

Comments
 (0)