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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
Antonia
New Member

Send Images in Teams Notifications from Fabric Notebooks

I run data validations in Fabric using PySpark.

I want to send notifications with images (like plots) to Microsoft Teams channels or chats.

I tried using a Teams webhook, but it doesn’t support images. I also tried the Graph API via our Azure tenant, but ran into authentication issues.

 

Has anyone done this successfully or found a good workaround?

Thanks!

1 ACCEPTED SOLUTION
v-karpurapud
Community Support
Community Support

Hi @Antonia 

Thank you for contacting the Microsoft Fabric Community Forum.

Uploading images directly via Microsoft Teams webhooks is not supported. While the Microsoft Graph API provides more options, it poses significant authentication challenges, particularly in Microsoft Fabric Notebooks where token management and user context are restricted.

A more effective approach is to use the Teams activity in Microsoft Fabric Data Factory. You can create an image, such as a plot with PySpark or Matplotlib, save it locally, and upload it to a secure location like Azure Blob Storage using a Shared Access Signature (SAS) token.

Once the image is accessible via SAS, you can reference it in the Teams activity message body using Markdown syntax. This ensures the image displays correctly in the Teams message without complex authentication or additional tools.

This solution is secure, reliable, and fully integrated within the Microsoft Fabric ecosystem, making it well-suited for automated workflows involving data validations, alerts, or reporting.

For additional guidance, refer to the official Microsoft Fabric documentation onCreate & Send Actionable Messages - Teams , Teams activity (Preview) - Microsoft Fabric and Grant limited access to data with shared access signatures (SAS) - Azure Storage .

Regards,
Karpurapu D,
Microsoft Fabric Community Support Team.

View solution in original post

6 REPLIES 6
v-karpurapud
Community Support
Community Support

Hi @Antonia 

We have not yet received a response from you regarding your query. If the previous response was helpful, please let us know. If not, feel free to provide more details so we can assist you further.

Thank you.

v-karpurapud
Community Support
Community Support

Hi @Antonia 

I wanted to check if you’ve had a chance to review the information provided. If you have any further questions, please let us know. Has your issue been resolved? If not, please share more details so we can assist you further.

Thank You.

v-karpurapud
Community Support
Community Support

Hi @Antonia 

We have not yet heard back from you about whether our response addressed your query. If it did not, please share more details so we can assist you more effectively.

 

Thank You.

 

v-karpurapud
Community Support
Community Support

Hi @Antonia 

Thank you for contacting the Microsoft Fabric Community Forum.

Uploading images directly via Microsoft Teams webhooks is not supported. While the Microsoft Graph API provides more options, it poses significant authentication challenges, particularly in Microsoft Fabric Notebooks where token management and user context are restricted.

A more effective approach is to use the Teams activity in Microsoft Fabric Data Factory. You can create an image, such as a plot with PySpark or Matplotlib, save it locally, and upload it to a secure location like Azure Blob Storage using a Shared Access Signature (SAS) token.

Once the image is accessible via SAS, you can reference it in the Teams activity message body using Markdown syntax. This ensures the image displays correctly in the Teams message without complex authentication or additional tools.

This solution is secure, reliable, and fully integrated within the Microsoft Fabric ecosystem, making it well-suited for automated workflows involving data validations, alerts, or reporting.

For additional guidance, refer to the official Microsoft Fabric documentation onCreate & Send Actionable Messages - Teams , Teams activity (Preview) - Microsoft Fabric and Grant limited access to data with shared access signatures (SAS) - Azure Storage .

Regards,
Karpurapu D,
Microsoft Fabric Community Support Team.

suparnababu8
Super User
Super User

Hi @Antonia 

 

Yes, you are correct.  Teams webhooks doesn;t support image attachements. If you use Graph API it faces permisssion issues or authentication issues. 

 

As a workaround you can use Webapp and Azure Bot to send images in Teams. Please read this documentation, it might helps you Fabric Notification Bot for Microsoft Teams 

 

Please let me know if it works for you!

 

Thank you!

 

Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

WaelGouader
Frequent Visitor

What I’ve found works well is using Power Automate:

  • After PySpark validations run in Fabric, I upload the plot image to Blob Storage.

  • Then I trigger a Power Automate HTTP flow by sending a simple POST with metadata and the blob URL.

  • Power Automate sends a message to the Teams channel with an adaptive card that includes the image.

Thank you

Helpful resources

Announcements
August Fabric Update Carousel

Fabric Monthly Update - August 2025

Check out the August 2025 Fabric update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.