Request to extend access token lifetime for service principal used in Azure EventHub authentication

2026-11-27T15:44:43.3766667+00:00

We are writing to request an extension of the access token lifetime for one of our service principals.

This service principal is used for Azure EventHub Kafka protocol authentication via SASL OAUTHBEARER. During a recent production incident we identified a race condition: if a broker disconnect occurs during the token expiry window, the Kafka client reconnects with an expired token. Azure EventHub closes the connection at the TLS layer, which prevents the client from triggering its built-in token refresh, leaving our consumer group permanently stuck. Extending the token lifetime from 1 hour to 8 hours will significantly reduce the frequency of this race window.

We do not have sufficient permissions (Policy.ReadWrite.ApplicationConfiguration) in our tenant to apply a Token Lifetime Policy ourselves, and are therefore requesting that your team apply this configuration on our behalf.

Service principal details:

  • Current token lifetime: 1 hour (default)
  • Requested token lifetime: 8 hours (AccessTokenLifetime: 08:00:00)
Microsoft Security | Microsoft Entra | Microsoft Entra ID
0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.