An Azure service that is used to manage and protect cryptographic keys and other secrets used by cloud apps and services.
Hello Cheedella, Satyanarayana,
Welcome to the Microsoft Q&A and thank you for posting your questions here.
I understand that your old and current secret conflict.
The older enabled version picked automatically because GET secret by name always targets the latest version. If that version is disabled/expired, the value cannot be retrieved, and the service does not auto‑fallback to an older enabled version. Fetch a specific version or ensure the latest is enabled. - https://learn.microsoft.com/en-us/azure/key-vault/secrets/javascript-developer-guide-get-secret, and if you use App Service/Functions Key Vault references, remember they’re cached and auto‑refresh within 24 hours unless you pull/refresh explicitly or update configuration.- https://learn.microsoft.com/en-us/azure/app-service/app-service-key-vault-references, and https://stackoverflow.com/questions/77007906/azure-key-vault-lag-on-secret-changes gives more insight.
I hope this is helpful! Do not hesitate to let me know if you have any other questions or clarifications.
Please don't forget to close up the thread here by upvoting and accept it as an answer if it is helpful.