You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: snippets/general-shared-text/databricks-volumes-cli-api.mdx
+54-4Lines changed: 54 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,11 +10,61 @@ import AdditionalIngestDependencies from '/snippets/general-shared-text/ingest-d
10
10
11
11
The following environment variables:
12
12
13
-
-`DATABRICKS_HOST` - The Databricks compute resource's host name, represented by `--host` (CLI) or `host` (Python).
13
+
-`DATABRICKS_HOST` - The Databricks host URL, represented by `--host` (CLI) or `host` (Python).
14
+
-`DATABRICKS_CLUSTER_ID` - The Databricks compute resource ID, represented by `--cluster-id` (CLI) or `cluster_id` (Python).
14
15
-`DATABRICKS_CATALOG` - The Databricks catalog name for the Volume, represented by `--catalog` (CLI) or `catalog` (Python).
16
+
-`DATABRICKS_SCHEMA` - The Databricks schema name for the Volume, represented by `--schema` (CLI) or `schema` (Python). If not specified, `default` is used.
15
17
-`DATABRICKS_VOLUME` - The Databricks Volume name, represented by `--volume` (CLI) or `volume` (Python).
18
+
-`DATABRICKS_VOLUME_PATH` - Any optional path to access within the volume, specified by `--volume-path` (CLI) or `volume_path` (Python).
16
19
17
-
Environment variables based on your authentication type, depending which types are supported by your cloud provider. For example, for username and password authentication:
20
+
Environment variables based on your authentication type, depending on your cloud provider:
18
21
19
-
-`DATABRICKS_USERNAME` - The Databricks account user's name, represented by `--username` (CLI) or `username` (Python).
20
-
-`DATABRICKS_PASSWORD` - The Databricks account user's password, represented by `--password` (CLI) or `password` (Python).
22
+
- For Databricks personal access token authentication (AWS, Azure, and GCP):
23
+
24
+
-`DATABRICKS_TOKEN` - The personal access token, represented by `--token` (CLI) or `token` (Python).
25
+
26
+
- For username and password (basic) authentication (AWS only): The user's name and password values.
27
+
28
+
-`DATABRICKS_USERNAME` - The user's name, represented by `--username` (CLI) or `username` (Python).
29
+
-`DATABRICKS_PASSWORD` - The user's password, represented by `--password` (CLI) or `password` (Python).
30
+
31
+
- For OAuth machine-to-machine (M2M) authentication (AWS, Azure, and GCP): The client ID and OAuth secret values for the corresponding service principal.
32
+
33
+
-`DATABRICKS_CLIENT_ID` - The client ID value for the corresponding service principal, represented by `--client-id` (CLI) or `client_id` (Python).
34
+
-`DATABRICKS_CLIENT_SECRET` - The client ID and OAuth secret values for the corresponding service principal, represented by `--client-secret` (CLI) or `client_secret` (Python).
35
+
36
+
- For OAuth user-to-machine (U2M) authentication (AWS, Azure, and GCP): No additional environment variables.
37
+
38
+
- For Azure managed identities (MSI) authentication (Azure only):
39
+
40
+
-`ARM_CLIENT_ID` - The client ID value for the corresponding managed identity, represented by `--azure-client-id` (CLI) or `azure_client_id` (Python).
41
+
- If the target identity has not already been added to the workspace, then you must also specify the
42
+
`DATABRICKS_AZURE_RESOURCE_ID`, represented by `--azure-workspace-resource-id` (CLI) or `azure_workspace_resource_id` (Python).
43
+
44
+
- For Microsoft Entra ID service principal authentication (Azure only):
45
+
46
+
-`ARM_TENANT_ID` - The tenant ID value for the corresponding service principal, represented by `--azure-tenant-id` (CLI) or `azure_tenant_id` (Python).
47
+
-`ARM_CLIENT_ID` - The client ID value for the corresponding service principal, represented by `--azure-client-id` (CLI) or `azure_client_id` (Python).
48
+
-`ARM_CLIENT_SECRET` - The client secret value for the corresponding service principal, represented by `--azure-client-secret` (CLI) or `azure_client_secret` (Python).
49
+
- If the service principal has not already been added to the workspace, then you must also specify the
50
+
`DATABRICKS_AZURE_RESOURCE_ID`, represented by `--azure-workspace-resource-id` (CLI) or `azure_workspace_resource_id` (Python).
51
+
52
+
- For Azure CLI authentication (Azure only): No additional environment variables.
53
+
54
+
- For Microsoft Entra ID user authentication (Azure only):
55
+
56
+
-`DATABRICKS_TOKEN` - The Entra ID token for the corresponding Entra ID user, represented by `--token` (CLI) or `token` (Python).
57
+
58
+
- For Google Cloud Platform credentials authentication (GCP only):
59
+
60
+
-`GOOGLE_CREDENTIALS` - The local path to the corresponding Google Cloud service account's credentials file, represented by `--google-credentials` (CLI) or `google_credentials`
61
+
62
+
- For Google Cloud Platform ID authentication (GCP only):
63
+
64
+
-`GOOGLE_SERVICE_ACCOUNT` - The Google Cloud service account's email address, represented by `--google-service-account` (CLI) or `google_service_account` (Python).
65
+
66
+
- Alternatively, you can store the preceding settings in a local
67
+
[Databricks configuration profile](https://docs.databricks.com/en/dev-tools/auth/config-profiles.html) and then just
68
+
refer to the profile's name:
69
+
70
+
-`DATABRICKS_PROFILE` - The name of the Databricks configuration profile, represented by `--profile` (CLI) or `profile` (Python).
- The Databricks compute resource's host name. Get the host name for [AWS](https://docs.databricks.com/integrations/compute-details.html), [Azure](https://learn.microsoft.com/azure/databricks/integrations/compute-details), or [GCP](https://docs.gcp.databricks.com/integrations/compute-details.html).
4
-
- The Databricks authentication details. For more information, see the documentation for [AWS](https://docs.databricks.com/dev-tools/auth/index.html), [Azure](https://learn.microsoft.com/azure/databricks/dev-tools/auth/), or [GCP](https://docs.gcp.databricks.com/dev-tools/auth/index.html).
3
+
- The Databricks workspace URL. Get the workspace URL for
or [GCP](https://docs.gcp.databricks.com/dev-tools/auth/index.html).
23
+
24
+
More specifically, you will need:
25
+
26
+
- For Databricks personal access token authentication (AWS, Azure, and GCP): The personal access token's value.
27
+
- For username and password (basic) authentication (AWS only): The user's name and password values.
28
+
- For OAuth machine-to-machine (M2M) authentication (AWS, Azure, and GCP): The client ID and OAuth secret values for the corresponding service principal.
29
+
- For OAuth user-to-machine (U2M) authentication (AWS, Azure, and GCP): No additional values.
30
+
- For Azure managed identities (MSI) authentication (Azure only): The client ID value for the corresponding managed identity.
31
+
- For Microsoft Entra ID service principal authentication (Azure only): The tenant ID, client ID, and client secret values for the corresponding service principal.
32
+
- For Azure CLI authentication (Azure only): No additional values.
33
+
- For Microsoft Entra ID user authentication (Azure only): The Entra ID token for the corresponding Entra ID user.
34
+
- For Google Cloud Platform credentials authentication (GCP only): The local path to the corresponding Google Cloud service account's credentials file.
35
+
- For Google Cloud Platform ID authentication (GCP only): The Google Cloud service account's email address.
36
+
5
37
- The Databricks catalog name for the Volume. Get the catalog name for [AWS](https://docs.databricks.com/catalogs/manage-catalog.html), [Azure](https://learn.microsoft.com/azure/databricks/catalogs/manage-catalog), or [GCP](https://docs.gcp.databricks.com/catalogs/manage-catalog.html).
6
-
- The Databricks Volume name. Get the volume name for [AWS](https://docs.databricks.com/files/volumes.html), [Azure](https://learn.microsoft.com/azure/databricks/files/volumes), or [GCP](https://docs.gcp.databricks.com/files/volumes.html).
38
+
- The Databricks schema name for the Volume. Get the schema name for [AWS](https://docs.databricks.com/schemas/manage-schema.html), [Azure](https://learn.microsoft.com/azure/databricks/schemas/manage-schema), or [GCP](https://docs.gcp.databricks.com/schemas/manage-schema.html).
39
+
- The Databricks Volume name, and optionally any path in that Volume that you want to access directly. Get the Volume information for [AWS](https://docs.databricks.com/files/volumes.html), [Azure](https://learn.microsoft.com/azure/databricks/files/volumes), or [GCP](https://docs.gcp.databricks.com/files/volumes.html).
0 commit comments