Connect to Databricks¶
We will sign in through the browser and save a local OAuth user-to-machine
(U2M) profile named bricks-demo. The profile identifies one workspace and
lets the CLI refresh short-lived OAuth access tokens for you.
Copy the workspace URL¶
Open your Databricks workspace in the browser and copy its URL. An AWS Free Edition URL has this shape:
Export the complete URL, including https://:
Print it once to catch a missing character:
The output should be the same workspace URL you copied.
Sign in with OAuth U2M¶
Create the tutorial profile:
The CLI opens a browser. Sign in with the same identity you use for the workspace and approve the request. The terminal should then report:
Databricks recommends OAuth for user authorization; the CLI handles token refresh through unified authentication. See OAuth U2M authorization.
A personal sign-up address is not a different CLI auth type
Use the browser identity that already opens the workspace. The relevant boundary is the workspace and account tier, not whether that identity uses a personal email address.
Confirm the identity¶
Ask the workspace who the profile represents:
The JSON response should contain your workspace userName and active: true.
No personal access token is needed.
Find the tutorial inputs¶
List the SQL warehouses:
Free Edition normally shows its single SQL warehouse. Copy the warehouse ID; we will export it on the deployment page.
List the catalogs next:
Choose a catalog where your user can create a schema and managed Volumes, and copy its name. Both commands should return workspace objects without an authentication error.
You now have three values for the next steps:
- profile:
bricks-demo; - SQL warehouse ID; and
- writable Unity Catalog catalog name.