Microsoft Fabric Updates Blog

OpenAPI specification code generation now available in Fabric User Data Functions

The Open API specification, formerly Swagger Specification, is a widely used, language-agnostic description format for REST APIs. This allows humans and computers alike to discover and understand the capabilities of a service in a standardized format. This is critical for creating integrations with external systems, AI agents and code generators.

Now, you can automatically generate the Open API specification of your Fabric User Data Functions by using the Generate invocation code feature of the Functions portal. This feature, in combination with making your functions publicly accessible, can enable the following use cases:

  1. Generate client code: Your functions can be invoked using a REST API call from outside of Fabric. Certain tools such as Swagger Codegen can use your OpenAPI specifications to automatically generate a client application to call the endpoints defined in your function.
  2. Integrate with API gateways and management: You can import your Open API specification into API management platforms, such as Azure API Management, allowing you to use it for your public Fabric User Data Functions.
  3. Integrate with AI agents: You can use an AI platform such as Azure AI Foundry to configure a tool that a model can use, unlocking many agentic use cases.

How to generate an OpenAPI specification?

IMPORTANT NOTE: To use this feature, you need to have the most up-to-date version of the fabric-user-data-functions library. You can find more information on how to update this library.

To generate your OpenAPI specification, simply navigate to your User Data Functions item in the Fabric portal and click on Generate invocation code on the toolbar of your functions. After that, you can select Open API specification from the drop-down menu. A new window will pop up where you can copy your specification. You can choose between JSON and YAML on the top bar.

How to get your OpenAPI specification from the Functions portal.

Make sure your Python functions contain a DOCSTRING to describe their functionality and add the use case context they need. This will be included in the documentation for your OpenAPI specification.

How do I update my Fabric User Data Functions library?

To update this library, go to the Functions portal of your User Data Functions item and use the following steps:

  1. Select Library Management from the Functions portal page.
  2. Locate the fabric-user-data-functions library in the table, hover over it and select the edit icon.
  3. Select the latest version from the dropdown. Hint: it’s listed at the top. There’s no need to publish your functions after updating your library. It’s always a good idea to keep this library up to date.
Use this dropdown to select the latest version of your library.

Resources

Feel free to email FabricUserDataFunctionsPreview@service.microsoft.com if you have any more questions.

For additional information about the new features and Fabric User Data Functions, refer to the following documentation.

Related blog posts

OpenAPI specification code generation now available in Fabric User Data Functions

December 11, 2025 by Jene Zhang

This release brings consistent, secure, and scalable configuration management directly into notebooks—streamlining environment-aware development and CI/CD workflows without hardcoding. Why it Matters As projects grow, managing environment-specific settings can become complex. With Variable Library support in notebooks, you can: Key Highlights The following is an example of how to use Variable Library in notebook. Resources

December 10, 2025 by Ted Vilutis

Schema lakehouses are now Generally Available. By using schemas in lakehouses, users can arrange their tables more efficiently and make it easier to find data. When creating new lakehouses, schema-enabled lakehouses will now be the default choice. However, users still have the option to create lakehouses without a schema if they prefer. What do schema … Continue reading “Lakehouse Schemas (Generally Available)”