I have long running jobs that use Azure MSI tokens to access ADLS Gen 2 storage. I am running into Azure server side token caching issue. This is my setup:
I could not find any documentation on how to force a token refresh, so that when I request the second token it's expiry time is 8 hours after the second request. In fact I found a blog that says that force refresh is not possible.
This does not look right there should be a way to force a token refresh (get a new token with new expiry). Has anybody come across this issue and how did you solve it.
NOTE: The processes the job runs on does not have the ability to request tokens from Azure endpoint.
Based on the docs, it does not seem there is a parameter for that.
In the token caching section they also mention:
On-the-wire calls to Azure AD result only when:
cache miss occurs due to no token in the managed identities for Azure resources subsystem cache
the cached token is expired
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With