/fabric-data-engineering:fabric-eng-setup [--minimal]from fabric-data-engineering
Guides through setting up a Microsoft Fabric data engineering environment — verifies Fabric capacity, creates workspace, configures OneLake access, and installs local PySpark tooling. Supports --minimal flag.
Ships in fabric-data-engineering. Installing the plugin adds it to Claude Code.
Guide the user through setting up a Microsoft Fabric data engineering environment.
Verify the following are available:
az --version # Must be >= 2.50.0
python --version # Must be >= 3.10
pip --version
Check that a Fabric capacity exists in the Azure subscription:
az resource list --resource-type "Microsoft.Fabric/capacities" --output table
If no capacity exists, guide the user through one of these options:
Option A: Create an F2 capacity (smallest paid SKU)
az resource create --resource-group <rg-name> --name <capacity-name> \
--resource-type "Microsoft.Fabric/capacities" \
--properties '{"administration": {"members": ["[email protected]"]}, "sku": {"name": "F2", "tier": "Fabric"}}' \
--location <region>
Option B: Start a Fabric trial Navigate to https://app.fabric.microsoft.com and click "Start trial" in the account manager. Trials provide 60 days of Fabric capacity.
Option C: Use existing Power BI Premium capacity (P SKU) P1 and above support Fabric workloads. No additional capacity is needed.
# Via Fabric REST API
curl -X POST "https://api.fabric.microsoft.com/v1/workspaces" \
-H "Authorization: Bearer $(az account get-access-token --resource https://api.fabric.microsoft.com --query accessToken -o tsv)" \
-H "Content-Type: application/json" \
-d '{"displayName": "<workspace-name>", "capacityId": "<capacity-id>"}'
Alternatively, create the workspace via the Fabric portal: https://app.fabric.microsoft.com > Workspaces > New workspace.
For local PySpark development and notebook authoring:
pip install pyspark delta-spark azure-identity azure-storage-file-datalake
pip install notebook jupyterlab # Optional, for local notebook editing
Set up authentication for direct OneLake (ADLS Gen2) access:
# Authenticate via Azure CLI (interactive)
az login
# Or set service principal environment variables
export AZURE_TENANT_ID=<your-tenant-id>
export AZURE_CLIENT_ID=<your-client-id>
export AZURE_CLIENT_SECRET=<your-client-secret>
Test OneLake connectivity:
az storage fs list --account-name onelake --auth-mode login
Create or reference an Azure Key Vault for storing connection strings and credentials:
az keyvault create --name <kv-name> --resource-group <rg-name> --location <region>
# Store a secret
az keyvault secret set --vault-name <kv-name> --name "sql-connection-string" --value "<connection-string>"
In Fabric notebooks, retrieve secrets with:
secret = mssparkutils.credentials.getSecret("https://<kv-name>.vault.azure.net/", "sql-connection-string")
Test by listing workspaces via the Fabric REST API:
curl -s "https://api.fabric.microsoft.com/v1/workspaces" \
-H "Authorization: Bearer $(az account get-access-token --resource https://api.fabric.microsoft.com --query accessToken -o tsv)" | python -m json.tool
If --minimal is passed, stop after Step 4 (local development tools only).
Files this command reads when invoked
What the command file sets; muted values are Claude Code's defaults
fabric-setup, azure-setup, data-engineering, onelake, pyspark
7-day visitors to each command page
npx claudepluginhub thelobbi/claude-m --plugin fabric-data-engineering11 commands in this plugin
/delta-table-manageCreate, optimize, vacuum, and manage Delta Lake tables in a Fabric lakehouse/lakehouse-createCreate a Fabric lakehouse with medallion folder structure and SQL analytics endpoint/lakehouse-load-dataLoad data from files, APIs, or databases into lakehouse Delta tables/lakehouse-optimizeRun comprehensive lakehouse optimization — table compaction, Z-ordering, vacuum, file statistics, and health scoring/notebook-createCreate a Fabric Spark notebook with starter code for a given scenario/notebook-orchestrateDesign a multi-notebook orchestration pattern with parent-child execution, parallel fan-out, error propagation, and cross-workspace runsOther plugins' commands for the same job