cancel
Showing results for 
Search instead for 
Did you mean: 
Community Discussions
Connect with fellow community members to discuss general topics related to the Databricks platform, industry trends, and best practices. Share experiences, ask questions, and foster collaboration within the community.
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? 

0 REPLIES 0
Join 100K+ Data Experts: Register Now & Grow with Us!

Excited to expand your horizons with us? Click here to Register and begin your journey to success!

Already a member? Login and join your local regional user group! If there isn’t one near you, fill out this form and we’ll create one for you to join!