Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
This article explains how Git integration and deployment pipelines work for user data functions in Microsoft Fabric. Fabric User data functions offer Git integration for source control with Azure DevOps repositories. With Git integration, you can version control your user data functions item, collaborate using Git branches, and manage your user data functions content lifecycle entirely within Fabric.
Learn more about the process of integrating Git with your Microsoft Fabric workspace in Basic concepts in Git integration.
Set up a connection
From your workspace settings, you can easily set up a connection to your repo to commit and sync changes. To set up the connection, see Get started with Git integration. Once connected, your items, including user data functions, appear in the Source control pane.
After you successfully commit the user data functions items to the Git repo, you see the user data functions folders in the repository. You can now execute future operations, like create a pull request.
User data functions representation in Git
The following image shows an example of the file structure of each user data functions item in the repo:
The folder structure includes the following elements:
.platform: The
.platformfile contains the following attributes:- version: Version number of the system files. This number is used to enable backwards compatibility. The version number of the item might be different.
- logicalId: An automatically generated cross-workspace identifier representing an item and its source control representation.
- type:
UserDataFunctionis the type to define a user data functions item. - displayName: Represents the name of the item. When the user data functions item is renamed, this displayName is updated.
definitions.json: This file shares all the user data functions item definitions such as connections, libraries, etc. as a representation of the user data functions item properties.
function-app.py: This file is your functions code. Any code changes you make to the user data functions item is synced into the repo with this file. You can perform various Git operations to manage the code development cycle.
resources: The folder contains a functions.json file with all the metadata such as connections, libraries, and functions within this item. DO NOT UPDATE THIS FILE manually.
functions.jsonallows Fabric to create or recreate the user data functions item in a workspace.
User data functions in deployment pipelines
You can also use deployment pipelines to deploy your user data functions code across different environments, such as development, test, and production. This feature can enable you to streamline your development process, ensure quality and consistency, and reduce manual errors with lightweight, low-code operations.
Note
All connections and libraries are added to new user data functions items created in other environments.
Use the following steps to complete your notebook deployment using the deployment pipeline.
Create a new deployment pipeline or open an existing deployment pipeline. See Get started with deployment pipelines for more information.
Assign workspaces to different stages according to your deployment goals.
Select, view, and compare items including user data functions items between different stages.
Select Deploy to deploy your user data functions item to your test environment. You can add a note to provide details on the changes for this deployment. Similarly, you can push changes across the Development, Test, and Production stages.
Monitor the deployment status from Deployment history.