Azureauth Extension
contrib
Maintainers: @constanca-m
Source: opentelemetry-collector-contrib
Overview
This extension implements bothextensionauth.HTTPClient and extensionauth.Server, so it can be used in both exporters and receivers.
Additionally, the extension also implements azcore.TokenCredential so that Azure components can get the token by running the function GetToken. If the component supports HTTP client, then this should not be necessary, as the token will be placed in the authorization header.
It supports 4 different types of authentication:
- Managed identity for Azure resources
- Workload identity for Kubernetes
- Service principal with either a client secret or client certificate path for non Azure.
- And the default credentials. This is not recommended for production.
Examples
Managed identity
User based:client_id field empty):
Workload identity
Service principal
With client secret:Default authentication
Not recommended for production.With custom scopes
You can set custom scopes if the audience required in the token does not match the host you are trying to reach. This is useful for Azure Monitor Workspaces since the workspace hostname is specific to your instance whereas the audience required ishttps://monitor.azure.com/.default
Configuration
Example Configuration
Last generated: 2026-04-13