Azure ML Workspace missing secrets of associated keyvault, no way to access its datastores

1.7k Views Asked by At

by mistake I deleted the secrets from my keyvault, which were associated to my default Azure Machine Learning datastores (workspacefilestore, workspaceartifactstore and workspaceblobstore). As a result, when I click on one of these datastores (or a dataset depending on them), I get the error "Please make sure that you are passing valid secret names and that the keyvault https://mauromikv00.v.", where mauromikv00 (without ".v.") is my associated keyvault. enter image description here I tried to recover the deleted secrets, but they aren't in the recycle bin anymore.

If I were able to click on the datastore, I would be able to use the "updated authentication" button to re-associate the blob storage to the keyvault. But the error above happens as soon as I click on the datastore, preventing me from updating its authentication credentials.

1

There are 1 best solutions below

3
On

There is a case, that we can follow to recover even though when soft deletion happened. But for that, there is a case to know that "secrets/recover permission" is enabled or not. If this permission is enabled, there is high chance of recovery of the deleted secret by following the steps mentioned in:

https://learn.microsoft.com/en-us/rest/api/keyvault/secrets/recover-deleted-secret/recover-deleted-secret

POST {vaultBaseUrl}/deletedsecrets/{secret-name}/recover?api-version=7.3