/fabric-data-factory:fabric-adf-setup [--minimal]from fabric-data-factory
Guides through setting up a Microsoft Fabric Data Factory development environment: authenticates with Azure, verifies workspace access, configures environment variables, installs dependencies, and tests API connectivity. Supports --minimal flag to stop after authentication and workspace verification.
Ships in fabric-data-factory. Installing the plugin adds it to Claude Code.
Guide the user through setting up a Microsoft Fabric Data Factory development environment.
Verify the following are installed:
az --version # Must be >= 2.50.0
node --version # Must be >= 18.0.0
az login
az account show # Verify correct tenant and subscription
For service principal authentication (CI/CD):
az login --service-principal -u <app-id> -p <client-secret> --tenant <tenant-id>
List available Fabric workspaces to confirm API access:
az rest --method GET --url "https://api.fabric.microsoft.com/v1/workspaces" --headers "Content-Type=application/json"
Ask the user for their target workspace ID. Save it for later use:
FABRIC_WORKSPACE_ID=<workspace-id>
Create a .env file in the project root:
FABRIC_WORKSPACE_ID=<workspace-id>
AZURE_TENANT_ID=<tenant-id>
AZURE_CLIENT_ID=<client-id>
AZURE_CLIENT_SECRET=<client-secret>
FABRIC_API_BASE=https://api.fabric.microsoft.com/v1
Ensure .env is in .gitignore:
echo ".env" >> .gitignore
npm init -y && npm install @azure/identity @azure/core-rest-pipeline dotenv
npm install --save-dev typescript @types/node ts-node
Test pipeline listing in the target workspace:
az rest --method GET \
--url "https://api.fabric.microsoft.com/v1/workspaces/${FABRIC_WORKSPACE_ID}/items?type=DataPipeline" \
--headers "Content-Type=application/json"
Test dataflow listing:
az rest --method GET \
--url "https://api.fabric.microsoft.com/v1/workspaces/${FABRIC_WORKSPACE_ID}/items?type=Dataflow" \
--headers "Content-Type=application/json"
If both return successfully (even with empty results), the setup is complete.
If using lakehouse as a pipeline destination:
az rest --method GET \
--url "https://api.fabric.microsoft.com/v1/workspaces/${FABRIC_WORKSPACE_ID}/items?type=Lakehouse" \
--headers "Content-Type=application/json"
If --minimal is passed, stop after Step 3 (authentication and workspace verification only).
Files this command reads when invoked
What the command file sets; muted values are Claude Code's defaults
7-day visitors to each command page
8 commands in this plugin
/copy-activity-configConfigure a Copy activity with source, sink, column mapping, and performance settings/copy-job-manageManage Fabric Copy job item lifecycle with deterministic validation and redacted outputs./dataflow-createCreate a Dataflow Gen2 with Power Query M transformations and lakehouse staging/dataflow-gen2-manageManage Dataflow Gen2 lifecycle with deterministic checks and redacted outputs./pipeline-createCreate a new Fabric Data Factory pipeline with activities, parameters, and dependencies/pipeline-monitorMonitor pipeline and activity run status, duration, and errors in Fabric Data Factorynpx claudepluginhub thelobbi/claude-m --plugin fabric-data-factoryOther plugins' commands for the same job