Microsoft Fabric
Manage Microsoft Fabric workspaces, lakehouses, notebooks and other Fabric items.
Community Maintained
| Version | 0.0.1 |
| Artifact | br:ghcr.io/anthony-c-martin/bicep-ext-fabric:0.0.1 |
| Source | github.com/anthony-c-martin/bicep-ext-fabric |
| Publisher | anthony-c-martin |
| Licence | MIT |
| Category | Data |
Installation
Register the extension in bicepconfig.json:
{
"experimentalFeaturesEnabled": {
"localDeploy": true,
"ociEnabled": true
},
"implicitExtensions": [],
"extensions": {
"fabric": "br:ghcr.io/anthony-c-martin/bicep-ext-fabric:0.0.1"
}
}
Then reference it from your Bicep file:
extension fabric
Configuration
Configuration is supplied using extension fabric with { ... }.
| Property | Type | Attributes | Description |
|---|---|---|---|
accessToken | string | Required, Sensitive | A Microsoft Entra access token for the Fabric API |
Authentication
The extension calls the Microsoft Fabric REST API using a Microsoft Entra access token:
@secure()
param accessToken string
extension fabric with {
accessToken: accessToken
}
A token can be acquired with the Azure CLI:
az account get-access-token \
--resource https://api.fabric.microsoft.com \
--query accessToken -o tsv
main.bicepparam
using 'main.bicep'
param accessToken = readEnvironmentVariable('FABRIC_TOKEN')
Example
Create a workspace and a lakehouse inside it:
targetScope = 'local'
@secure()
param accessToken string
extension fabric with {
accessToken: accessToken
}
resource workspace 'Workspace' = {
displayName: 'Analytics'
description: 'Managed with Bicep'
}
resource lakehouse 'Lakehouse' = {
workspaceId: workspace.id
displayName: 'Raw'
}
Notes
- Most item types share a common shape: a
workspaceIdidentifying the containing workspace, a requireddisplayName, and an optionaldefinitionholding the item's serialised content. - Item definitions are supplied as base64-encoded parts.
loadFileAsBase64is useful for populating them from files on disk. - Access tokens are short-lived. Acquire a fresh one for each deployment rather than storing it.
Samples
7 example Bicep files are available under Samples.
Resource types
This extension exposes 66 resource types, documented under Reference.
Reference generated from ghcr.io/anthony-c-martin/bicep-ext-fabric:0.0.1 on 2026-08-23.