You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Looking into this, passing in the custom Exponential Backoff class is the better approach as mentioned above.
As, at SDK level the azure-core SDK isn't aware of exceptions thrown by dependencies/libraries downstream.
Handling custom exceptions from other libraries in azure-core will require it to take dependency on external libraries and it will be against its design.
If not the core sdk then the individual dependencies like the key vault client should have their retry policies enriched with these custom errors that come from azure. I don't think it's the user who should be aware of all of these and provide a manual override as no-one want's a hanging application.
Bill Wert (@billwert), Vinay Gera (@g2vinay), could you see if this is something that could be improved by default in azure-identity, where it uses a customized RetryPolicy that doesn't lead it into retrying failures that will never succeed. Or, see if this is something that should be pushed further upstream into msal4j.
Activity
alzimmermsft commentedon Apr 9, 2025
Thanks for filing this Miklos Szots (@smiklos)!
Bill Wert (@billwert), Vinay Gera (@g2vinay), could you see if this is something that could be improved by default in
azure-identity, where it uses a customizedRetryPolicythat doesn't lead it into retrying failures that will never succeed. Or, see if this is something that should be pushed further upstream into msal4j.g2vinay commentedon Oct 7, 2025
I will investigate this and get back here.
samvaity commentedon Oct 21, 2025
Vinay Gera (@g2vinay) Do you have an update on this?