'Change Azure Monitor Workspace on Kubernetes nodes

We've set up a kubernetes cluster in Azure with logging to a Log Analytics Workspace.

Because we wanted to change the name of the Analytics Workspace, we decided to make a new one and migrate all logging to the new Workspace.

We've disabled the logging of the aks cluster with

az aks disable-addons -a monitoring -n MyExistingManagedCluster -g MyExistingManagedClusterRG

And enabled it again in Portal (Insights section). The pods log to the new Workspace, but we still get heartbeats on the old one from the nodes in the kubernetes cluster (aks-agentpool-...).

I've already restarted one of the nodes, but without success.

Do I need to remove the nodes and add them again?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source