Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OpenTelemetry data agent does not support RBAC for app insights #1340

Open
2 of 3 tasks
michaelmcneilnet opened this issue Nov 10, 2024 · 2 comments
Open
2 of 3 tasks
Labels
enhancement New feature or request

Comments

@michaelmcneilnet
Copy link

michaelmcneilnet commented Nov 10, 2024

This issue is a: (mark with an x)

  • bug report -> please search issues before submitting
  • documentation issue or request
  • regression (a behavior that used to work and stopped in a new release)

Issue description

When using the OpenTelementry data agent to send to App Insights, no data flows through until I set DisableLocalAuth to false in the App Insights resource.

Originally I had DisableLocalAuth set to true as I want to use RBAC only. I gave the container app environment the Monitoring Metrics Publisher role, but still saw no data flow through to App Insights.

Does the data agent support azure RBAC?

@microsoft-github-policy-service microsoft-github-policy-service bot added the Needs: triage 🔍 Pending a first pass to read, tag, and assign label Nov 10, 2024
@v-vish v-vish added enhancement New feature or request and removed Needs: triage 🔍 Pending a first pass to read, tag, and assign labels Nov 12, 2024
@v-vish
Copy link
Collaborator

v-vish commented Nov 12, 2024

@michaelmcneilnet The OpenTelemetry data agent currently requires local auth (like instrumentation keys) to send data to Application Insights. When DisableLocalAuth is set to true, only Azure AD-based authentication is allowed, blocking data flow since the agent doesn’t support this yet.

To work around this, set DisableLocalAuth to false until native RBAC support is available in a future update.

@michaelmcneilnet
Copy link
Author

@v-vish Thanks for the update. It would be great if this was mentioned in the docs at https://learn.microsoft.com/en-us/azure/container-apps/opentelemetry-agents?tabs=arm#azure-monitor-application-insights as it took me a long time to realise this was probably the issue (no access to agent logs means there was no way to debug this, so it was a lucky guess).

Is there an issue tracking RBAC support that I can subscribe to? I couldn't find one in a search.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants