Add a createMode: recoverIfDeleted
The soft delete feature is becoming troublesome for some automation scenarios. I'm managing my environments via Bicep/ARM templates and Key Vaults are a common component within each environment. Some environments are spun up frequently and torn down quickly after and sometimes these are just infrastructure unit tests in my pipelines.
The issue arises if any key vault has softdelete turned on because any subsequent deployments will fail unless I specify 'recover' createMode but that will cause the first deployment to fail because the key vault had not been deleted.
This breaks the idempotency of my deployments as I want to be able to deploy the same templates with the same parameters and expect the same result.
A simple solution is to have a createMode that recovers only if it has been deleted but otherwise acts as default: "recoverIfDeleted"
Please fix before you completely deprecate key vaults with no soft delete.