cancel
Showing results for 
Search instead for 
Did you mean: 
Get Started Discussions
Start your journey with Databricks by joining discussions on getting started guides, tutorials, and introductory topics. Connect with beginners and experts alike to kickstart your Databricks experience.
cancel
Showing results for 
Search instead for 
Did you mean: 

How Development Target works for multiple users?

vicky403
New Contributor

Hi, I'm using the Databricks asset bundle to deploy my job to Azure Databricks.

I want to configure the Databricks bundle so that when anyone runs the Azure pipeline, a job is created under their name in the format dev_username_job.

Using a personal access token(DATABRICKS_TOKEN), the deployment always occurs under the user associated with the token passed as an environment variable.

Using DATABRICKS_CLIENT_ID and DATABRICKS_CLIENT_SECRET, the deployment occurs under the service principal dev_service_principal_ID.

Here is my snippet from the databricks.yml file:

targets:
  dev:
    default: true
    mode: development
    workspace:
      host: host_url
  prod:
    mode: production
    workspace:
      host: host-url
    run_as:
      service_principal_name: service-principal-ID


I also have an azure-pipeline.yml file where I deploy my job to Databricks:    - bash: |
        databricks bundle deploy -t dev
      env:
        DATABRICKS_HOST: $(DEV_DATABRICKS_HOST)
        DATABRICKS_CLIENT_ID: $(DATABRICKS_CLIENT_ID)
        DATABRICKS_CLIENT_SECRET: $(DATABRICKS_CLIENT_SECRET)

Can anyone please help me on this? 

1 REPLY 1

zuzsad
New Contributor II

Were you able to solve this?

Join Us as a Local Community Builder!

Passionate about hosting events and connecting people? Help us grow a vibrant local community—sign up today to get started!

Sign Up Now