I have rotated the secondary key using pipeline, then tried to use this new secondary key to connect cosmos-db from my application. Getting following error for some time then its working fine.
The input authorization token can't serve the request. Please check that the expected payload is built as per the protocol, and check the key being used. Server used the following payload to sign
How long is maximum time to wait before using this new key ?
This article https://docs.microsoft.com/en-us/azure/cosmos-db/secure-access-to-data?tabs=using-primary-key mentioned "Validate that the new secondary key works consistently against your Azure Cosmos DB account. Key regeneration can take anywhere from one minute to multiple hours depending on the size of the Cosmos DB account."
Is it possible to validate the new key through pipeline before using it in application ?
I want to rotate the key while application runtime without any error. Please help