Forum Discussion

Charline_74's avatar
Charline_74
Icon for Resolver I rankResolver I
25 days ago
Solved

Sempy Labs + Azure DevOps

Do you know if it's possible to run a Sempy Labs module via Azure DevOps—for example, as an action in an Azure DevOps pipeline? If so, do you know how? Do you have any examples? Thanks in Advance,  ...
  • v-abhinavmu's avatar
    v-abhinavmu
    21 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 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.