Search code examples
azuredatabricksazure-databricksspn

CICD Authentication using SPN


I am creating a CI CD pipeline to move code between dev and test instances of databricks. I am able to achieve this using my personal token. Now, I am trying to do the same thing using a SPN and when I do the same, i get the following error.

HTTP ERROR 403 Problem accessing /api/2.0/workspace/mkdirs. Reason: User not authorized.

Can any of you help me resolve this error or provide any links which talks about how to use SPN to authenticate from devops to databricks.


Solution

  • Does your SPN have Contributor Role on either the Databricks resources or Azure Resource Groups ? It could be throwing a very similar error if not.