Microsoft Fabric Adds New APIs for Easier Code Deployments in 2024

Microsoft Fabric's new APIs make it easier to move code between different systems, similar to how software developers move apps to the internet.

NEW TOOLS AIM TO BRIDGE GAP BETWEEN DEVELOPMENT AND PRODUCTION ENVIRONMENTS

Microsoft Fabric has introduced new Bulk Export and Import APIs, currently in preview, intended to bolster automated deployment processes, often referred to as CI/CD. These interfaces, part of the platform's REST API collection, are designed to allow organizations to treat their Fabric components – such as semantic models and data pipelines – as code, facilitating smoother transitions from development to testing and live environments.

The core function of these APIs is to enable bulk export and import of item definitions from a Microsoft Fabric workspace. This addresses a long-standing requirement for enterprise DevOps teams seeking automation, repeatability, and granular control over their release workflows. Previously, while Fabric offered built-in Git integration, many organizations needed more direct integration with their existing DevOps tooling. The new APIs aim to fill this gap, providing a more programmatic way to manage deployments.

Read More: Microsoft Invests $10 Billion in Japan for AI and Data Security by 2029

API INTEGRATION WITH EXISTING TOOLING

The Bulk Export and Import APIs are positioned to integrate with established CI/CD frameworks. A typical setup involves using tools like Azure DevOps to manage pipelines. For instance, an Azure DevOps pipeline can be configured to use a service principal with necessary permissions to authenticate with Fabric and execute export and import operations.

"Enterprise DevOps teams expect automation, repeatability, and full control over their release pipelines."

This approach allows developers to define Fabric items within a central Git repository. Changes are then promoted through a structured release flow, with the APIs facilitating the movement of these item definitions between different Fabric workspaces, simulating stages like development, testing, and production. A comprehensive tutorial published by Microsoft outlines a step-by-step example of this deployment model in action, using an Azure DevOps pipeline and a dedicated variable group to store authentication details.

ENABLING SERVICE PRINCIPAL ACCESS

To facilitate automated access, a Fabric Admin must explicitly enable "Service principals can use Fabric APIs" within the Fabric Admin Portal. This setting is crucial for allowing service principals, commonly used for programmatic access in CI/CD scenarios, to interact with Fabric workspaces and execute the bulk operations.

Read More: Steven Cohen's Firm Buys Amazon Stock, Sees AI Future

OPEN-SOURCE ASSISTANCE

Beyond the direct API offerings, Microsoft has also released the fabric-cicd Python library. This open-source project is designed to assist CI/CD developers who prefer to avoid direct interaction with the Fabric APIs, offering a more abstracted interface for automating workspace deployments. The library supports various item types, including Notebooks and Data Pipelines, and can be installed via pip.

"The goal is to assist CI/CD developers who prefer not to interact directly with the Microsoft Fabric APIs."

BACKGROUND

Microsoft Fabric, introduced as a unified analytics solution, combines functionalities previously found in separate services like Power BI, Azure Synapse, and Azure Data Factory. The platform aims to streamline data analytics workflows by providing a single, integrated environment. The integration of CI/CD capabilities, particularly through these new APIs, reflects an ongoing effort to mature Fabric as an enterprise-grade platform capable of supporting complex development and deployment lifecycles. The preview status of these APIs suggests that further refinements and capabilities are expected as adoption grows and feedback is incorporated.

Read More: Some Stocks Get Attention, Others Are Ignored by Market Analysts

Frequently Asked Questions

Q: What new tools has Microsoft Fabric released for deploying code?
Microsoft Fabric has released new Bulk Export and Import APIs. These tools are still in a preview stage and help move code, like data pipelines and models, between different systems automatically.
Q: How do the new Microsoft Fabric APIs help businesses?
These APIs let businesses treat their Fabric parts as code. This makes it simpler and faster to move changes from a test system to a live system, helping businesses update their tools more often.
Q: Can these new APIs work with existing business tools?
Yes, the new APIs are made to work with tools like Azure DevOps. This means businesses can use their current systems to manage how changes are moved and tested before going live.
Q: What needs to be done to use these APIs for automated access?
A Microsoft Fabric Admin must turn on a setting called 'Service principals can use Fabric APIs' in the Admin Portal. This allows automated systems to connect and move code safely.
Q: Is there any extra help for developers using these new APIs?
Yes, Microsoft has also released a free tool called the 'fabric-cicd' Python library. This tool makes it easier for developers to automate deployments without needing to work directly with the complex Fabric APIs.