Skip to content

Commit fd767f1

Browse files
[Update] azure metrics command
This commit fixes a documentation issue where the argument is outdated. reference https://learn.microsoft.com/en-us/cli/azure/aks?view=azure-cli-latest#az-aks-update
1 parent 74a6b19 commit fd767f1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

articles/azure-monitor/essentials/azure-monitor-workspace-manage.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,12 +133,12 @@ Create a link between the Azure Monitor workspace and the Grafana workspace by u
133133
If your cluster is already configured to send data to an Azure Monitor managed service for Prometheus, you must disable it first using the following command:
134134

135135
```azurecli
136-
az aks update --disable-azuremonitormetrics -g <cluster-resource-group> -n <cluster-name>
136+
az aks update --disable-azure-monitor-metrics -g <cluster-resource-group> -n <cluster-name>
137137
```
138138

139139
Then, either enable or re-enable using the following command:
140140
```azurecli
141-
az aks update --enable-azuremonitormetrics -n <cluster-name> -g <cluster-resource-group> --azure-monitor-workspace-resource-id
141+
az aks update --enable-azure-monitor-metrics -n <cluster-name> -g <cluster-resource-group> --azure-monitor-workspace-resource-id
142142
<azure-monitor-workspace-name-resource-id> --grafana-resource-id <grafana-workspace-name-resource-id>
143143
```
144144

0 commit comments

Comments
 (0)