Forum Discussion
mmilosanovic
1 year agoAdvocate IV
Some methods in notebooks do not work when executed from Data Pipelines deployed via SPN
Hi, I already created the ticket with Microsoft (2504161420001430) and also opened the issue here and also seems to be related to this issue here. `notebookutils.runtime.context.get("currentW...
annhwallinger
1 year agoHelper I
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?
import json
import sempy.fabric as fabric
from notebookutils import mssparkutils
#Instantiate the client
client = fabric.FabricRestClient()
# Get Workspace
workspaceId = fabric.resolve_workspace_id([workspace name here])
gaya3krishnan86
1 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