Get Azure Databricks Account ID
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-05-2024 09:30 AM
Hi everyone,
Is it possible with Terraform or Azure CLI or any other not manual method to get the value for Azure Databricks Account ID and not to use manual method as is described here - https://learn.microsoft.com/en-us/azure/databricks/administration-guide/account-settings/#--locate-y....
Thank you in advance.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-25-2024 12:17 PM
Hi there,
I would prefer the REST API way, but I cannot find any method to fetch the account details. Do you know which one I should use?
Thank you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-17-2024 12:54 AM
I am also looking for a solution to this. The path suggested by @Retired_mod does not work! When I run the proposed az cli, this is what I get:
```
$> az databricks workspace show --resource-group $my_rg --name $my_ws --query 'id'
"/subscriptions/64e..<my_tenant_id>/resourceGroups/<my_rg>/providers/Microsoft.Databricks/workspaces/<my_ws>"
```
This is not the account ID that is needed for the account API. So this is not a solution. Since terraform and REST API are directly aligned with the cli, the result is the same. So at present there is no solution to this. Unless anyone has any other suggestions?