Fabric StudioA VSCode extension for managing your Fabric tenant using the Fabric REST API and modify Fabric items directly from within VSCode. InstallationThe extensions can be installed directly from within VSCode by searching for this extension ( Features
ConfigurationThe extension supports the following VSCode settings:
Workspace BrowserThe workspace browser is usually the starting point for all activities. It allows you to browse through your Fabric workspaces, the individual items and sub-items and execute various action based on the current selection. As of now, not most items are read-only but actions will be added in the future and when the Fabric REST APIs support them! NotebooksYou can open a new Fabric notebook via the UI from the header of each treeview or by running the command Open new Fabric Notebook (command The following features are supported by notebooks and can be used using magic tags in the first line of the cell:
There are also dedicated languages for each of the magics which you can also use see the rigth bottom of your notebook cell. Next to the magic itself you can also specify a custom API endpoint for every cell right after the magic tag:
This overwrites the Custom API endpoints work for all magics except For proper visualization of the results I highly recommend to also install the Data Table Renderers extension! Run REST API calls (%api)To run a REST API call from the notebook you can simply write the following:
For example to create a new dashboard in My Workspace you can run the following command:
The JSON-body can also be omitted, e.g. for a GET request.
Supported METHODs are Using variables (%cmd)You can also define and use variables within the notebook. To set a variable you can use
Please note that variable names are note case sensitive and are converted to UPPER when you define them. However, you reference them using any casing you want. There are some special variables that can be used to make your notebooks more generic.The main variable that needs to be set is the
Relative API paths always start with
Current values of variables can be retrieved by running Variables can be used via the pattern
Note: you can also set/get multiple variables within the same notebook cell! Special _cells variableAnother special variable is
The first cell would return the list of all workspaces. The second cell gets the result of the previous cell ( This approach can also be used to simply copy settings from one Power BI object to another by first running a Custom FileSystemProviderThe extension also provides an easy way to interact with all items hosted in Microsoft Fabric. You need to use a VSCode Workspace when working with VSCode.
The easiest way to configure and use the custom FileSystemProvider is to right-click the item (or parent or workspace) in the Workspace Browser and select
Once this is set up, you can browse your Fabric items as if they were local. In fact, we use the Fabric APIs to download them and cache them locally in memory for you. You can also add, modify or delete the Fabric items or modify individual definition files. As it is now like a local file system, you can also Drag&Drop or Copy&Paste between local folder structures and Fabric items or within Fabric - e.g. to copy an existing Fabric item! Locally changed files will be displayed similar to changed items in GIT:
To publish your local changes back to Fabric, right-clicking on the Item-folder (e.g the Dataset, the Report, the Notebook, ...) and select To undo your local changes or force the reload of content from Fabric (e.g. if you changed/created a new item in the Fabric UI), you can use Fabric GIT IntegrationIf you have your Fabric workspace connected to a GIT repository, you can from now on start managing your GIT workflow from within VSCode. To do so, simply right-click the Fabric workspace and select FAQQ: I have so many workspaces and its hard to find the one I need, what can I do? A: Please check the config setting Q: I have a guest account in a remote client, can I still use this extension? A: Yes! The only thing you need to do is to specify the TenantID of the remote tenant in the setting Q: I tried to run a command from the context menue but the dropdown that appears does not contain the values I want to use. What can I do? A: Unfortunately VSCode is quite limited in the way how users can enter data (e.g. a dropdown box) and we simply display the last 10 items that the user selected or expanded. So if you e.g. want to do a rebind of a report and the target dataset does not show up, please make sure to select/click it the Workspace Browser just before you run the rebind. Q: Something went wrong or the extension is stuck, what can I do? A: Unfortunately this can happen, sorry! Please try to restart VSCode or run the command |