79216421

Date: 2024-11-22 19:57:53
Score: 3.5
Natty:
Report link

If I can write something here because I've got the same error:

  1. logged in to databricks using databricks cli

  2. got aad token from resource: keyvault

  3. run the command: databricks secrets create-scope --scope 'my_name' --scope-backend-type 'AZURE_KEYVAULT' --resource-id 'link_to_resource_id_keyvault' --dns-name 'URI_of_key_vault' --user-aad-token $token failed: Unexpected token 'databricks' in expression or statement.

    • CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException
    • FullyQualifiedErrorId : UnexpectedToken
  4. tried differently with the same command but converted json to string: databricks secrets create-scope --json $tostr $secretscope= @ { scope = "connect-to-prod-ADLS" initial_manage_principal="users" scope_backend_type="AZURE_KEYVAULT" user_aad_token = 'token_in_plain_txt_shouldnt_be_really' backend_azure_keyvault= @ { resource_id = "resource_id of KeyVault" dns_name = "URI of Keyvault" } } user_aad_token generated with azure cli. Error: Still couldn't create a secret scope. What is the real issue here?

Reasons:
  • Long answer (-1):
  • No code block (0.5):
  • Ends in question mark (2):
  • Looks like a comment (1):
  • Low reputation (1):
Posted by: Mohamed