2

getting a 'bad request' error after following the below process in command prompt, please correct me..

pip install databricks-cli
databricks configure –-token

Databricks Host (should begin with https://): <your databricks URL>
Token: <your token>

databricks secrets create-scope --scope <scope name>

result:
Error: b'Bad Request'

Alex Ott
  • 80,552
  • 8
  • 87
  • 132

1 Answers1

1

In your command we need to add initial manage principle as users to resolve the issue.

Note: While pasting the token, paste it carefully, if possible as below process: enter image description here

Below is the command:

databricks secrets create-scope --scope newscope08 --initial-manage-principal "users"

Below is the execution in cmd:

enter image description here

Also have a look on documentation on scopes to understand about prerequisites and passing the parameters.

Need to make sure that we have Databricks Permium Plan.

SaiKarri-MT
  • 1,174
  • 1
  • 3
  • 8