This usually happens because the Entra ID (Azure AD) token expires after 24 hours. The managed identity needs to refresh it, but sometimes the automatic refresh fails. Try restarting your pod to force a fresh token—if that fixes it, you’ll need to add token renewal logic in your app or check Dapr’s configuration for token refresh. Also, make sure your Redis connection settings in Dapr explicitly include the managed identity credentials.
Redis Entra Id connection stops working after 24hours
Arun Babu
20
Reputation points
We started using Entra Id authentication to Redis with the dapr version 1.15.5. We are able to establish the connection from the AKS pod to Redis using the managed identity used by the pod.
Actual Behavior
However, after running for about 24hours the pod is failing to connect Redis with the error 'State operation failed: the Dapr endpoint indicated a failure. See InnerException for details. Status(StatusCode="Internal", Detail="fail to get PComSearchCacheProduct from state store statestore: ERR WRONGPASS invalid username-password pair") '.. Please let me know how to fix this
Azure Cache for Redis
Azure Cache for Redis
An Azure service that provides access to a secure, dedicated Redis cache, managed by Microsoft.