If I can write something here because I've got the same error:
logged in to databricks using databricks cli
got aad token from resource: keyvault
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.
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?