Microsoft Fabric Updates Blog

Microsoft Fabric .NET SDK

We are excited to announce the very first release of the Microsoft Fabric .NET SDK! This SDK version marks a significant milestone in providing a powerful and flexible platform for building applications that interact with Microsoft Fabric service. 

We are introducing the core features of the Microsoft Fabric .NET SDK and provide an example of how to get started. 

Introducing the .NET SDK 

The Microsoft Fabric .NET SDK is designed to make it easier for developers to build applications that leverage the Microsoft Fabric service.  

With this SDK, you can seamlessly integrate your applications with Microsoft Fabric, enabling you to create robust and scalable solutions.  

Key features of the Microsoft Fabric .NET SDK include: 

  • Cross-Platform Development: Build applications that run on Windows, macOS, and Linux.  
  • Build in Utilities: Access a set of utilities to accelerate your development. 
  • Modern Language Features: Leverage the latest features of C#.

Getting Started with the Fabric .NET SDK

  1. Download and install Fabric .NET SDK. using NuGet Package Manager or by downloading it from https://www.nuget.org/packages/Microsoft.Fabric.Api/1.0.0-beta
  2. Prerequisites
    • .Net standard, Version =v2.0 
    • Azure.Core (>=1.31.0) 
    • System.Diagnostic.DiagnosticSource (>=8.0.0) 
    • System.IdentityModel.Tokens.Jwt(>=6.34.0)   
  3. Register your application: Register your application to use Microsoft Fabric API. 
  4. Authenticate for the Microsoft Fabric Service:
  5. Create a Microsoft Fabric client object with an authentication provider:
    • An instance of the FabricClient class handles building requests, sending them to the Microsoft Fabric API, and processing the responses. To create a new instance of this class, you need to provide an instance of TokenCredential or the string representation of its underlying Microsoft Entra access token.
  6. Make requests to Microsoft Fabric.

Once you have completed authentication and have a FabricClient, you can begin to make calls to the service. 

For example, to get a list of workspaces using Microsoft.Fabric.Api; 

using Microsoft.Fabric.Api;

// Get the list of workspaces using the client
var workspaces = fabricClient.Core.Workspaces.ListWorkspaces().ToList();
Console.WriteLine("Number of workspaces: " + workspaces.Count);
foreach (var workspace in workspaces)
{
    Console.WriteLine($"Workspace: {workspace.DisplayName}, Capacity ID: {workspace.CapacityId}");
}

Documentation 

Explore our detailed documentation to learn about SDK capabilities, API endpoints, and best practices for integration –   Microsoft Fabric REST API references – Microsoft Fabric REST APIs | Microsoft Learn 

Community and Support 

We are committed to supporting developers every step of the way. Join our community forums, where you can connect with fellow developers, ask questions, and share insights Home – Microsoft Fabric Community

Our dedicated support team is also available to assist with any technical inquiries or issues fabricnuget@microsoft.com 

Future Updates

Stay tuned for future updates and enhancements to our Fabric .NET SDK. We are continuously improving our tools to meet the evolving needs of developers and ensure seamless integration experiences.  

Bài đăng blog có liên quan

Microsoft Fabric .NET SDK

tháng 10 31, 2024 của Jovan Popovic

Fabric Data Warehouse is a modern data warehouse optimized for analytical data models, primarily focused on the smaller numeric, datetime, and string types that are suitable for analytics. For the textual data, Fabric DW supports the VARCHAR type that can store up to 8KB of text, which is suitable for most of the textual values … Continue reading “Announcing public preview of VARCHAR(MAX) and VARBINARY(MAX) types in Fabric Data Warehouse”

tháng 10 29, 2024 của Dandan Zhang

Managed private endpoints allow Fabric experiences to securely access data sources without exposing them to the public network or requiring complex network configurations. We announced General Availability for Managed Private Endpoint in Fabric in May of this year. Learn more here: Announcing General Availability of Fabric Private Links, Trusted Workspace Access, and Managed Private Endpoints. … Continue reading “APIs for Managed Private Endpoint are now available”