A plugin for Apache Airflow to interact with Microsoft Fabric items
Slowing down. Last release over 2 years ago, little activity since. Fine for existing code; think twice for a new project.
pip install apache-airflow-microsoft-fabric-pluginApache Airflow Plugin for Microsoft Fabric Plugin. 🚀
Introduction
A Python package that helps Data and Analytics engineers trigger run on demand job items of Microsoft Fabric in Apache Airflow DAGs.
Microsoft Fabric is an end-to-end analytics and data platform designed for enterprises that require a unified solution. It encompasses data movement, processing, ingestion, transformation, real-time event routing, and report building. It offers a comprehensive suite of services including Data Engineering, Data Factory, Data Science, Real-Time Analytics, Data Warehouse, and Databases.
How to Use
Install the Plugin
Pypi package: https://pypi.org/project/apache-airflow-microsoft-fabric-plugin/
pip install apache-airflow-microsoft-fabric-plugin
Prerequisities
Before diving in,
- The plugin supports the authentication using user tokens. Tenant level admin account must enable the setting Allow user consent for apps. Refer to: Configure user consent
- Create a Microsoft Entra Id app if you don’t have one.
- You must have Refresh token.
Since custom connection forms aren't feasible in Apache Airflow plugins, use can use Generic connection type. Here's what you need to store:
Connection Id: Name of the connection IdConnection Type: GenericLogin: The Client ID of your service principal.Password: The refresh token fetched using Microsoft OAuth.Extra: { "tenantId": "The Tenant Id of your service principal", "clientSecret": "(optional) The Client Secret for your Entra ID App" "scopes": "(optional) Scopes you used to fetch the refresh token" }
Default scopes applied are: , , offline_access, openid, profile