Skip to main content
cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
UdaySutar
New Contributor II

how to get pipeline run status from monitor screen using notebook in Fabric

how to get pipeline run status from monitor screen using notebook in Fabric

1 ACCEPTED SOLUTION
Vinodh247
Contributor II

Try programmatically access the pipeline run metadata using the Fabric REST APIs, specifically the Pipeline API.

  • Fabric notebooks automatically use the current workspace and identity, so you can use MsiTokenProvider to get a token for REST API calls
  • You need the workspace ID and pipeline ID. You can get these from the pipeline URL in Fabric Monitor or Pipeline editor & run the API call ( For Ex:

    https://app.fabric.microsoft.com/groups/<workspace_id>/pipelines/<pipeline_id>

    )
  • You can pick the data you need, for example if you want to pick the recent runs: 
latest_run = runs.get('value', [])[0]
print(f"Latest Run Status: {latest_run['status']}")
โ€‹
  • Ensure Fabric REST APIs are available in your tenant (may require admin consent in some environments)
Please 'Kudos' and 'Accept as Solution' if this answered your query.

Regards,
Vinodh
Microsoft MVP [Fabric]

View solution in original post

4 REPLIES 4
Vinodh247
Contributor II

Try programmatically access the pipeline run metadata using the Fabric REST APIs, specifically the Pipeline API.

  • Fabric notebooks automatically use the current workspace and identity, so you can use MsiTokenProvider to get a token for REST API calls
  • You need the workspace ID and pipeline ID. You can get these from the pipeline URL in Fabric Monitor or Pipeline editor & run the API call ( For Ex:

    https://app.fabric.microsoft.com/groups/<workspace_id>/pipelines/<pipeline_id>

    )
  • You can pick the data you need, for example if you want to pick the recent runs: 
latest_run = runs.get('value', [])[0]
print(f"Latest Run Status: {latest_run['status']}")
โ€‹
  • Ensure Fabric REST APIs are available in your tenant (may require admin consent in some environments)
Please 'Kudos' and 'Accept as Solution' if this answered your query.

Regards,
Vinodh
Microsoft MVP [Fabric]
v-prasare
Honored Contributor II

Hi @UdaySutar,

As we havenโ€™t heard back from you, we wanted to kindly follow up to check if the solution provided for your issue worked? or let us know if you need any further assistance here?

 

 

 

Thanks,

Prashanth Are

MS Fabric community support

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly and give Kudos if helped you resolve your query

v-prasare
Honored Contributor II

Hi @UdaySutar,

As we havenโ€™t heard back from you, we wanted to kindly follow up to check if the solution provided for your issue worked? or let us know if you need any further assistance here?

 

 

 

Thanks,

Prashanth Are

MS Fabric community support

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly and give Kudos if helped you resolve your query

v-prasare
Honored Contributor II

Hi @UdaySutar,

As we havenโ€™t heard back from you, we wanted to kindly follow up to check if the solution provided for your issue worked? or let us know if you need any further assistance here?

 

 

 

Thanks,

Prashanth Are

MS Fabric community support

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly and give Kudos if helped you resolve your query

Helpful resources

Announcements
Users online (27)