Open stefanringeis opened 1 year ago
Thank you for reporting this. This is an issue with the underlying API. I've followed-up with the team responsible for this API to understand why 1) AAD authentication is not accepted and 2) that endpoint redirects you to the login page rather than respond with an error.
Azure databricks doesn’t support workspace listing
The official Azure REST API: https://docs.databricks.com/api/azure/account/introduction
@nfx Do you know if workspace listing in Azure Databricks is in development or do I need to reach out to Azure directly? I am working on the deployment automation around Unity Catalog and this API would be quite handy.
@stefanringeis the last time I've checked with the relevant teams owning account console APIs a few weeks ago, there were no plans to support https://docs.databricks.com/api/account/workspaces/list for Azure in the near term.
To list Databricks Workspaces on Azure, the only possible way is using Azure Resource Manager APIs. Just so you know, that one Azure Active Directory Tenant is mapped onto one Databricks Account. The flow is:
We're doing the same thing in downstream projects - https://github.com/databrickslabs/ucx/pull/264/files - and do not yet know if this particular workaround deserves to get into the SDK layer.
A suggestion @nfx, @mgyucht & team, if this isn't supported by Azure, maybe the error should state that in a better way? Please see if this is possible. I also ran into this same issue and ended up here.
The sign-in in terms of error when hitting this isn't that helpful to understand what's going on.
Thanks!
Description Listing workspaces using the
AccountClient
fails.Reproduction
Expected behavior Return the list of all workspaces.
Debug Logs
I have debugged the REST API call and this is the
200
response:Other Information
databricks-sdk: 0.7.1
Additional context This CLI bug is related: https://github.com/databricks/cli/issues/579