azureazure-application-insightsazure-aks

Azure AKS with Managed Identity can not write to Application Insights


We have a Kubernets app that is authenticated with "Managed Identity". All works fine.

Now we like to add "Application Insights" as Java agent with "LOCAL AUTHENTICATION" disabled for "Application Insights". So the "Managed Identity" should authenticate.

When we switch on "LOCAL AUTHENTICATION" then it works. But we do not like to do it that way.

Is this possible?

Cheers T


Solution

  • Yes, if you have your managed identities setup in AKS, you can disable "Local Authentication" in order to use it with java agent. Here is the azure docs on how to configure it: https://learn.microsoft.com/en-us/azure/azure-monitor/app/azure-ad-authentication?tabs=java#system-assigned-managed-identity. Please ping me if you have any other questions.