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: docs/snippets/dwh/databricks/create_service_principal.mdx
+31-8Lines changed: 31 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -32,15 +32,38 @@ to access your Databricks instance.
32
32
alt="Add databricks SQL access"
33
33
/>
34
34
35
-
6. Next, you may also need to allow Token Usage for this service principal (if it is not allowed for all users). To do so, under the settings menu choose Advanced -> Personal Access Tokens -> Permission Settings.
36
-
Then add the service principal there.
35
+
6. Next, generate credentials for your service principal. Choose one of the following methods:
**Option A: Generate an OAuth secret (Recommended)**
38
+
39
+
On the service principal page, go to the *Secrets* tab and click *Generate secret*. Copy the **Client ID** (this is the same as the "Application ID" from step 5) and the generated **Client secret** — you will need both when configuring the Elementary environment.
40
+
41
+
{/* TODO: Add screenshot of Databricks service principal Secrets tab with "Generate secret" button */}
OAuth secrets are the recommended authentication method. They enable short-lived token generation
53
+
with automatic refresh, providing better security than long-lived personal access tokens.
54
+
</Info>
55
+
56
+
**Option B: Create a personal access token (legacy)**
57
+
58
+
In order to generate a personal access token for your service principal, you may first need to allow Token Usage for it.
59
+
To do so, go to the settings menu and choose Advanced -> Personal Access Tokens -> Permission Settings, then make sure the service principal is in the list.
7. Create a personal access token for your service principal. For more details, please click [here](https://docs.databricks.com/aws/en/dev-tools/auth/pat#databricks-personal-access-tokens-for-service-principals)
66
+
Then, create a personal access token for your service principal. For more details, please click [here](https://docs.databricks.com/aws/en/dev-tools/auth/pat#databricks-personal-access-tokens-for-service-principals).
44
67
45
-
8. Finally, in order to enable Elementary's automated monitors feature, please ensure [predictive optimization](https://docs.databricks.com/aws/en/optimizations/predictive-optimization#enable-or-disable-predictive-optimization-for-your-account) is enabled in your account.
68
+
7. Finally, in order to enable Elementary's automated monitors feature, please ensure [predictive optimization](https://docs.databricks.com/aws/en/optimizations/predictive-optimization#enable-or-disable-predictive-optimization-for-your-account) is enabled in your account.
46
69
This is required for table statistics to be updated (Elementary relies on this to obtain up-to-date row counts)
0 commit comments