Forum Discussion
Sempy Labs + Azure DevOps
- 20 days ago
Hi Charline_74,
Thanks for reaching out to the Microsoft Fabric Community forum. and thanks to ShivekMaharaj for sharing valuable insights.
Yes. If you retrieve the workspace name from Azure DevOps, you can pass that value to a Fabric notebook when triggering it through the Fabric REST API.
The Run On Demand Notebook API supports per-run parameters, including text parameters, which can be used to provide values to the notebook at execution time.
In the notebook, you can designate a parameter cell so that values supplied during execution can overwrite the default values.
Therefore, the approach could be:
Azure DevOps -> retrieve workspace name -> call the Fabric Notebook API -> pass the workspace name as a parameterThe API also supports service principals and managed identities for unattended execution.
For more details, please refer to the below Official Microsoft Documentation:
Background Jobs - Run On Demand Notebook - REST API (Notebook) | Microsoft Learn
Develop, execute, and manage notebooks - Microsoft Fabric | Microsoft LearnI hope this helps. Please feel free to reach out if you have any further questions.
Thank you.
Thank you for your feedback. Do you know if it's possible to retrieve data from Azure DevOps to a notebook? For example, I retrieve the name of a workspace from Azure DevOps via a Fabric API—can I pass that name to a notebook in Fabric?
Hi Charline_74,
Thanks for reaching out to the Microsoft Fabric Community forum. and thanks to ShivekMaharaj for sharing valuable insights.
Yes. If you retrieve the workspace name from Azure DevOps, you can pass that value to a Fabric notebook when triggering it through the Fabric REST API.
The Run On Demand Notebook API supports per-run parameters, including text parameters, which can be used to provide values to the notebook at execution time.
In the notebook, you can designate a parameter cell so that values supplied during execution can overwrite the default values.
Therefore, the approach could be:
Azure DevOps -> retrieve workspace name -> call the Fabric Notebook API -> pass the workspace name as a parameter
The API also supports service principals and managed identities for unattended execution.
For more details, please refer to the below Official Microsoft Documentation:
Background Jobs - Run On Demand Notebook - REST API (Notebook) | Microsoft Learn
Develop, execute, and manage notebooks - Microsoft Fabric | Microsoft Learn
I hope this helps. Please feel free to reach out if you have any further questions.
Thank you.