Skip to content

Commit a5bfa4f

Browse files
committed
Updated cost analysis doc with az aks update example per customer request
1 parent fea9fff commit a5bfa4f

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

articles/aks/cost-analysis.md

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ az extension update --name aks-preview
6464

6565
## Enable cost analysis on your AKS cluster
6666

67-
Cost analysis can be enabled during one of the following operations:
67+
You can enable the cost analysis with the `--enable-cost-analysis` flag during one of the following operations:
6868

6969
* Create a `Standard` or `Premium` tier AKS cluster.
7070

@@ -76,10 +76,16 @@ Cost analysis can be enabled during one of the following operations:
7676

7777
* Downgrade a `Premium` cluster to `Standard` tier.
7878

79-
To enable the feature, use the flag `--enable-cost-analysis` in combination with one of these operations. For example, the following command creates a new AKS cluster in the `Standard` tier with cost analysis enabled:
79+
The following example creates a new AKS cluster in the `Standard` tier with cost analysis enabled:
8080

8181
```azurecli-interactive
82-
az aks create --resource-group <resource_group> --name <name> --location <location> --enable-managed-identity --generate-ssh-keys --tier standard --enable-cost-analysis
82+
az aks create --resource-group <resource-group> --name <cluster-name> --location <location> --enable-managed-identity --generate-ssh-keys --tier standard --enable-cost-analysis
83+
```
84+
85+
The following example updates an existing AKS cluster in the `Standard` tier to enable cost analysis:
86+
87+
```azurecli-interactive
88+
az aks update --resource-group <resource-group> --name <cluster-name> --enable-cost-analysis
8389
```
8490

8591
> [!WARNING]

0 commit comments

Comments
 (0)