Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hello,
I'm trying to run a notebook in Visual Studio Code on my desktop using Jupyter.
I managed to install 'Runtime 1.2' for Fabric into Visual Studio Code.
The thing is that I would like to run semantic-link or Fabric API's with and first I need to authenticate with fabric.FabricRestClient. When running this in Fabric in a notebook token are fetched automatically but as I'm using this on my desktop I need to authenticate with a token_provider.
My user is admin and I can make use of a service principal which also has access.
I was wondering if anyone already used the token_provider and how do you use this in Python?
Thanks!
Kind regards
Solved! Go to Solution.
Hi @naelske_cronos,
As the document mention, current you can't use Service principal to invoke fabric API.
For python script invoke rest API, you can try to use requests package to invoke them:
Python request with authentication (access_token) - Stack Overflow
Regards,
Xiaoxin Sheng
Hi @naelske_cronos,
As the document mention, current you can't use Service principal to invoke fabric API.
For python script invoke rest API, you can try to use requests package to invoke them:
Python request with authentication (access_token) - Stack Overflow
Regards,
Xiaoxin Sheng
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
13 | |
2 | |
1 | |
1 | |
1 |
User | Count |
---|---|
25 | |
3 | |
2 | |
2 | |
2 |