Forum Discussion
Some methods in notebooks do not work when executed from Data Pipelines deployed via SPN
we have the same issue with workspace identity as executing user. There are errors from cluster just with import statements in notebook and on applying run magic command. Even notebookutils.lakehouse.getWithProperties method also fails with 403 error. We were able to execute all of our code artefacts successfully with executing user as SPN (we generated our own SPN and added a secret to it) whereas when deploying same using workspace identity and running through it failed miserably. We even created a secret for the workspace identity and tried to use it by initializing credential class still no success.
Thank you for the detail in your response. You said you were able to run as SPN.... do you know if you were able to run these simple lines?
- gaya3krishnan861 year agoFrequent Visitor
It works by explicitly creating an Service principal token implementation and passing that to fabric rest client. Here is a blog that can helped me with this implementation.
https://fabric.guru/using-service-principal-authentication-with-fabricrestclient