cancel
Showing results forย 
Search instead forย 
Did you mean:ย 
Data Engineering
Join discussions on data engineering best practices, architectures, and optimization strategies within the Databricks Community. Exchange insights and solutions with fellow data engineers.
cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

Not able to creare Secret scope in Azure databricks

JPNP
New Contributor

Hello,

I am trying to create the  Azure Key Vault-backed secret scope, but it failing with the below error, I have tried to clear the cache, and logged out , used incognito browser as well but not able to create a scope. Can you please help here ?

JPNP_0-1755692310711.jpeg

 

3 REPLIES 3

szymon_dybczak
Esteemed Contributor III

Hi @JPNP ,

Maybe try with the Databricks CLI? Even if the command below doesnโ€™t succeed, at least the error message could be more meaningful.

databricks secrets create-scope \
  --scope keyvaultscope \
  --scope-backend-type AZURE_KEYVAULT \
  --resource-id "/subscriptions/<sub-id>/resourceGroups/<rg>/providers/Microsoft.KeyVault/vaults/<vault-name>" \
  --dns-name "https://<vault-name>.vault.azure.net/"

 

trailblazer
New Contributor II

hi, did you manage to resolve this, I have the same error but the error message is not very helpful. 

Yogesh_378691
Contributor


If the UI keeps failing with that vague error, the CLI approach suggested above is the best next step, since it usually gives a clearer error message. Also make sure that:

The service principal youโ€™re using to create the scope has Key Vault Administrator permissions on the vault.

The resource ID and DNS name are copied exactly as shown in the Azure portal (any typo or extra space will cause failures).

The Databricks workspace is in the same Azure region as the Key Vault (cross-region secret scopes are not supported).

If those checks look good but it still fails, Iโ€™d recommend running the CLI command with --debug to capture the full error details, which will help narrow down whether itโ€™s a permissions issue or a configuration mismatch.

Yogesh Verma

Join Us as a Local Community Builder!

Passionate about hosting events and connecting people? Help us grow a vibrant local communityโ€”sign up today to get started!

Sign Up Now