Skip to main content

Microsoft Fabric

Manage Microsoft Fabric workspaces, lakehouses, notebooks and other Fabric items.

Community Maintained

Version0.0.1
Artifactbr:ghcr.io/anthony-c-martin/bicep-ext-fabric:0.0.1
Sourcegithub.com/anthony-c-martin/bicep-ext-fabric
Publisheranthony-c-martin
LicenceMIT
CategoryData

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 { ... }.

PropertyTypeAttributesDescription
accessTokenstringRequired, SensitiveA 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 workspaceId identifying the containing workspace, a required displayName, and an optional definition holding the item's serialised content.
  • Item definitions are supplied as base64-encoded parts. loadFileAsBase64 is 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.