Databricks Asset Bundles - job specific "run_as" user/service_principle

lilo_z
New Contributor III

Was wondering if this was possible, since a use case came up in my team. Would it be possible to use a different service principle for a single job than what is specified for that target environment? For example:

bundle:
  name: hello-bundle

resources:
  jobs:
    hello-job:
      name: hello-job
      tasks:
        - task_key: hello-task
          existing_cluster_id: 1234-567890-abcde123
          notebook_task:
            notebook_path: ./hello.py
run_as:
service_principle_name: principle_1
targets: dev: default: true
run_as:
service_principle_name: principle_2