To work with Fabric APIs, like many other Microsoft services, you first need to get a Microsoft Entra token for Fabric service, then use that token in the authorization header of the API call.
In this quickstart tutorial, you will create a C# console app, which will acquire an AAD token using MSAL.Net library, then use C# HttpClient to call List workspaces API.
Create app registration
To get a Microsoft Entra token, you first need to register an application with Microsoft Entra ID.
Enter a display Name for your application, and add Public client redirect URI http://localhost
Click on Register.
Copy the Application (client) ID and paste it in a notepad to be used later.
Get token
In this tutorial you will use MSAL.Net to acquire an AAD token for Fabric service with the following scopes: Workspace.ReadWrite.All, Item.ReadWrite.All.
Explore how to implement data analytics solutions on a single platform with Microsoft Fabric. Integrate, transform, and store data to train AI models and create insightful reports.
As a Fabric analytics engineer associate, you should have subject matter expertise in designing, creating, and deploying enterprise-scale data analytics solutions.