How to connect to workspace using dbx and service principle? #702
ssabzevari-antuit
started this conversation in
General
Replies: 1 comment
-
Yes. In Azure, you can use the tenant and client id with your SP's secret [+ add them as variables in your pipeline] in your az-pipelines.yml like this: - bash: |
echo "##vso[task.setvariable variable=DATABRICKS_TOKEN;issecret=true]$(python path/to/your/script/to/get_token.py)"
env:
SP_TENANT_ID: $(SP_TENANT_ID)
SP_CLIENT_ID: $(SP_CLIENT_ID)
SP_CLIENT_SECRET: $(SP_CLIENT_SECRET)
displayName: "Get service principal access token" |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am using GitHub actions and dbx to do unit test and integration test in our Databricks workspace. Currently I am using my personal access token and everything is running fine. However, I want to replace it with a service principle. So far I haven't had a luck with that. My question is:
Beta Was this translation helpful? Give feedback.
All reactions