Azure KeyVault cannot set deleted secrets

%3CLINGO-SUB%20id%3D%22lingo-sub-1119697%22%20slang%3D%22en-US%22%3EAzure%20KeyVault%20cannot%20set%20deleted%20secrets%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1119697%22%20slang%3D%22en-US%22%3E%3CP%3EI%20have%20an%20Azure%20KeyVault%20instance%20with%20soft%20delete%20enabled.%20This%20leads%20to%20the%20following%20sequence%20of%20operations%20failing%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E*%20Set%20a%20secret%3C%2FP%3E%3CP%3E*%20Delete%20that%20secret%3C%2FP%3E%3CP%3E*%20Set%20a%20secret%20with%20the%20same%20name%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThis%20is%20problematic.%20What%20is%20the%20intended%20way%20to%20go%20in%20this%20situation%3F%20I%20have%20tried%20to%20replace%20the%20Set%20with%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E*%20Get%20Deleted%20Secret%20with%20corresponding%20name%3C%2FP%3E%3CP%3E*%20Recover%20if%20existing%3C%2FP%3E%3CP%3E*%20Set%20new%20value%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EBut%20this%20also%20fails%20since%20recovery%20apparently%20takes%20some%20time%20to%20become%20effective%20even%20after%20the%20request%20terminated.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWhat%20is%20the%20intended%20way%20to%20work%20in%20this%20situation%20(I%20am%20doing%20this%20with%20the%20C%23%20client%20library)%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1119697%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EAzure%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
New Contributor

I have an Azure KeyVault instance with soft delete enabled. This leads to the following sequence of operations failing:

 

* Set a secret

* Delete that secret

* Set a secret with the same name

 

This is problematic. What is the intended way to go in this situation? I have tried to replace the Set with

 

* Get Deleted Secret with corresponding name

* Recover if existing

* Set new value

 

But this also fails since recovery apparently takes some time to become effective even after the request terminated.

 

What is the intended way to work in this situation (I am doing this with the C# client library)?

0 Replies