Forum Discussion

4 Replies

  • v-dineshya's avatar
    v-dineshya
    Community Support

    Hi Anonymous ,

    Thank you for reaching out to the Microsoft Community Forum.

     

    Microsoft Fabric does not provide a dedicated REST API endpoint to cancel a running data pipeline instance directly.

     

    You can Do via REST API by Delete a pipeline.

     

    1. You can use the following endpoint to delete a pipeline.


    DELETE https://api.fabric.microsoft.com/v1/workspaces/{workspaceId}/dataPipelines/{dataPipelineId}


    Note: This requires appropriate permissions (DataPipeline.ReadWrite.All or Item.ReadWrite.All).

     

    2. Run and monitor pipelines, you can trigger pipeline runs and monitor their status using job instance APIs.

     

    If you need to cancel a pipeline from another pipeline, try below options.

     

    1.Implement logic in your pipelines to check for external flags or conditions that can gracefully stop execution.

     

    2. If you are using external tools like Azure Logic Apps or Power Automate, you might be able to manage pipeline execution more flexible.

     

    Please try below Microsoft articles and community thread.

    Solved: Re: Run from API - Microsoft Fabric Community

    Items - Delete Data Pipeline - REST API (DataPipeline) | Microsoft Learn

    REST API capabilities for Fabric Data Factory - Microsoft Fabric | Microsoft Learn

     

    I hope this information helps. Please do let us know if you have any further queries.

     

    Regards,

    Dinesh

     

    • Anonymous's avatar
      Anonymous
      Not applicable

      Thank you for the answer v-dineshya 

      I had a feeling that it was not possible at this moment. 

       

      Hopefully Microsoft will expose Monitor data in fabric via APIs, so you can programmatically manage pipeline and notebook sessions.

       

      Regards,

      Christoffer

      • v-dineshya's avatar
        v-dineshya
        Community Support

        Hi Anonymous ,

        Thank you for the update. At present it is not possible to cancel a data pipeline in fabric using a REST API.  We would recommend submitting your detailed feedback and ideas through Microsoft's official feedback channels, such as Microsoft Fabric Ideas. Feedback submitted through these channels is frequently reviewed by the product teams and can contribute to meaningful improvements.

        https://ideas.fabric.microsoft.com/ideas/search-ideas/ 

         

        Thank you for being a valued member in Microsoft Fabric Community Forum

        Regards,

        Dinesh