cancel
Showing results for 
Search instead for 
Did you mean: 
Community Platform 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

Connect with Databricks Users in Your Area

Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you won’t want to miss the chance to attend and share knowledge.

If there isn’t a group near you, start one and help create a community that brings people together.

Request a New Group