Closed BramWeterings closed 1 year ago
Thanks for reporting.
Which command are you executing specifically? Are you positive that the SP has access to the account console?
Please also include the CLI version you're using.
Command is:
databricks metastores create Dataplatform abfss://catalog@<storageaccount>.dfs.core.windows.net/unitycatalogs/
SP has the admin role on account level
version=0.203.3
Only the databricks account
commands work with the account console.
The command you list is a workspace level command. If you're using a .databrickscfg
profile without an account ID, but with the account host, then it won't work. You can try either pointing it at a workspace, or using the databricks account
command to do the same.
A, i have both the accountID and host (accounts.azuredatabricks.net) in the .databrickscfg
I see databricks account metastores create only accepts json for the configuration. I can't seem to find the structure of the json that is required for this request.
The API reference can be found at https://docs.databricks.com/api/account/accountmetastores/create
I'll double-check if we return an error earlier when an account profile is used for a workspace command. If we don't, we should, to avoid the misunderstanding.
Request now returns "invalid Databricks Account configuration" but that's probably something on my end.
the initial error that got me confusedwas just " error="invalid character '<' looking for beginning of value" when using the workspace command on an account profile
If you see invalid Databricks Account configuration
it means you're trying to use a workspace configuration (i.e. a workspace host, or the account ID is not set) when trying to call account level APIs.
The linked PR adds support to return a similar error if the reverse happens; when an account configuration is used when trying to call workspace level APIs.
Given this is otherwise resolved, I'll close this issue.
I'm trying to create a metastore with the databricks CLI on my azure environment. Command databricks metastores create Dataplatform abfss://container>@<storageaccount.dfs.core.windows.net/unitycatalogs/
Works fine from my local terminal where i login using az login
I try to run it inside a container instance where i login using a clientID and Secret (https://learn.microsoft.com/en-us/azure/databricks/dev-tools/cli/databricks-cli-ref#--azure-service-principal-authentication)
This works well for all workspace related stuff, but creating a metastore on the accountlevel does not work. trace export of the command:
It seems the parsing the return of the token request is not correct.