Has Key Vault had new security settings applied?

Falanga, Rod, DOH 245 Reputation points
2025-06-24T14:49:55.9766667+00:00

Yesterday I got a chance to go back to a Blazor app I've been working on, when I have the chance. I haven't been able to work on it for 10 days, so it's been a while. Anyway, this application uses an Azure Key Vault I set up last year and connection strings to test and production databases. Now, it can no longer retrieve the connection strings from the key vault, whereas it worked fine 10 days ago. The error message it gave me is long, with lots of possible causes for what may be causing the error. (I get the feeling the VS 2022 is saying, "It could be this, or maybe that, or maybe this other thing..."). Looking over the error message I found this:

The token was issued on 2025-06-06T17:28:23.3710847Z and the maximum allowed lifetime for this request is 604800.”

Is 604800 in seconds?

Also note that due to other priorities I have had to leave this project alone for as long as two weeks, with no problem. Now, I'm getting this error. What is causing it?

Azure Key Vault
Azure Key Vault
An Azure service that is used to manage and protect cryptographic keys and other secrets used by cloud apps and services.
1,453 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Navya 20,180 Reputation points Microsoft External Staff Moderator
    2025-06-24T16:56:51.98+00:00

    Hi Falanga, Rod, DOH

    Yes, 604800 is in seconds, which equals exactly 7 days.

    The error message, "The token was issued on 2025-06-06T17:28:23.3710847Z and the maximum allowed lifetime for this request is 604800," means that the authentication token used by your application to access Azure Key Vault is only valid for 7 days. After this time, the token expires, and any attempt to use it will result in an authentication error.

    This typically happens when the app hasn't been reauthenticated for more than a week, causing it to rely on a cached token that's no longer valid. As a result, when your Blazor app tries to access Key Vault using that expired token, it fails to retrieve connection strings or other secrets.

    To resolve this, try sign in again through Visual Studio or your development tool to obtain a fresh token.

    Hope this helps. Do let us know if you any further queries.


Your answer

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