INVALID_STATE: Databricks could not access keyvault
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-01-2023 07:07 PM
Hi Team,
Update: We are using Unity Catalog workspace. Also we are using RBAC model.
I am able to create a secret scope and able to list the scope in a notebook using
dbutils.secrets.list("<scopename>")
But when I try get the secret value using
value = dbutils.secrets.get("<KeyvaultSecretScope>", "<SecretName>")
I am getting the following error
com.databricks.common.client.DatabricksServiceHttpClientException: INVALID_STATE: Databricks could not access keyvault:
Thanks.
G
- Labels:
-
AccessKeyVault
-
INVALID STATE
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-01-2023 07:29 PM
Hi @Gil Gonong ,
Can you please try the mentioned options in the below article, hope it will get resolved. I believe it might be just because of the access issue between the Key Vault and Databricks.
https://kb.databricks.com/en_US/security/troubleshoot-key-vault-access
Happy Learning!!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-01-2023 08:02 PM
Hi
Yeah, saw that actually. But I am able to create the secret scope. I think it also worth mentioning that my workspace has Unity Catalog enabled.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-08-2023 08:47 PM
Hi @Gil Gonong
Hope all is well! Just wanted to check in if you were able to resolve your issue and would you be happy to share the solution or mark an answer as best? Else please let us know if you need more help.
We'd love to hear from you.
Thanks!

