Microsoft Fabric Updates Blog

Notifying Outlook and Teams channel/group from a Microsoft Fabric pipeline

Introduction

Setting up alerts for pipeline failures on a Teams channel/outlook mail enhances communication, collaboration, and problem-solving within your team. It creates a streamlined workflow for addressing issues, reduces downtime, and promotes a culture of continuous improvement in managing your data pipelines.

In this blog, I’ll showcase a method for sending notifications to both Teams channels/groups and Outlook emails. Microsoft Fabric now includes Teams activity as a recent addition.

simple architecture of sending notifications in fabric	
	
	 
	
	
	
				
		
			
				
						
							Notifying Outlook and Teams channel/group from a Microsoft Fabric pipeline

Prerequisites

  1. Basic knowledge of Data Factory pipelines.
  2. Workspace in Microsoft Fabric. 
  3. Teams channel & outlook account (you can do only one of them).

Steps

  1.   Create Pipeline in Fabric Data Factory, click on create pipeline. 
    add new pipeline to fabric workspace
	
	
	 
	
	
	
				
		
			
				
						
							Notifying Outlook and Teams channel/group from a Microsoft Fabric pipeline
							
						
					
			
		
	
			
	
	
	
	
	
 
  2.  In your pipeline, click on Copy Data
    copy data in your workspace
	
	
	 
	
	
	
				
		
			
				
						
							Notifying Outlook and Teams channel/group from a Microsoft Fabric pipeline
  3. create a basic copy activity – Fill all the details and make sure that it will fail this is the use case that we want to be notified on. 
    PS: connect to the teams and the outlook activities on fail in the copy activity like so: 
    pipeline activities
	
	
	 
	
	
	
				
		
			
				
						
							Notifying Outlook and Teams channel/group from a Microsoft Fabric pipeline
							
						
					
			
		
	
			
	
	
	
	
	
 

Steps for adding Teams Activity

  1. Add Teams activity by navigating to the Activities tab and dragging the Teams activity onto the canvas. Then, within the Settings tab, log in to your Teams account.
    teams connection
	
	
	 
	
	
	
				
		
			
				
						
							Notifying Outlook and Teams channel/group from a Microsoft Fabric pipeline
    You should get loading screen (it will create a team’s connection) and after it fill the relevant information, in my case:
    thumbnail image 6 of blog post titled 
	
	
	 
	
	
	
				
		
			
				
						
							Notifying Outlook and Teams channel/group from a Microsoft Fabric pipeline
    I chose to send a message to a teams channel called “test teams channel”.
    thumbnail image 7 of blog post titled 
	
	
	 
	
	
	
				
		
			
				
						
							Notifying Outlook and Teams channel/group from a Microsoft Fabric pipeline
    In message tab, i attached the output of the copy activity.@concat('Copy Activity Failed, Details:',activity('Copy data').output)details of settings in Teams activity:
  2. Output for Teams activity:
    output of teams activity
	
	
	 
	
	
	
				
		
			
				
						
							Notifying Outlook and Teams channel/group from a Microsoft Fabric pipeline
							
						
					
			
		
	
			
	
	
	
	
	
 

Steps for adding Outlook activity

  1. In activities tab, drag outlook activity
  2. Connect our copy activity on fail to the outlook activity
  3. Same as in teams’ activity, in settings tab sign into your outlook account
  4. Fill relevant information about the failure, in advanced tab, i choose to be sensitivity to be confidential @concat('Copy activity in Notification pipeline failed, details:',activity('Copy data').output)
  5. Output for the Outlook activity:
    output of outlook activity
	
	
	 
	
	
	
				
		
			
				
						
							Notifying Outlook and Teams channel/group from a Microsoft Fabric pipeline
  6. You can see in the output that it was classified as important and confidential as I listed in the activity settings.

Resources

Module 3 – Automate and send notifications with Data Factory – Microsoft Fabric | Microsoft Learn 
How to copy data using copy activity – Microsoft Fabric | Microsoft Learn 

منشورات المدونات ذات الصلة

Notifying Outlook and Teams channel/group from a Microsoft Fabric pipeline

أكتوبر 29, 2024 بواسطة Leo Li

We’re excited to announce several powerful updates to the Virtual Network (VNET) Data Gateway, designed to further enhance performance and improve the overall user experience. These new features allow users to better manage increasing workloads, perform complex data transformations, and simplify log management. Expanded Cluster Size from 5 to 7 One of the key improvements … Continue reading “New Features and Enhancements for Virtual Network Data Gateway”

أكتوبر 28, 2024 بواسطة Estera Kot

We’re thrilled to announce that the Native Execution Engine is now available at no additional cost, unlocking next-level performance and efficiency for your workloads. What’s New?  The Native Execution Engine now supports Fabric Runtime 1.3, which includes Apache Spark 3.5 and Delta Lake 3.2. This upgrade enhances Microsoft Fabric’s Data Engineering and Data Science workflows, … Continue reading “Native Execution Engine available at no additional cost!”