Command
suggest-rule
Suggest BPA rules based on a description or model analysis. Use when creating new Best Practice Analyzer rules for Tabular Editor.
Migrate workspaces from trial capacity to production capacity
> /plugin marketplace add data-goblin/power-bi-agentic-developmentHow it fires
How this command gets triggered: by you, by Claude, or both.
/migrating-fabric-trial-capacitiesContext preview
What this command does when you run it.
Migrate workspaces from trial capacity to production capacity
description: Migrate workspaces from trial capacity to production capacity argument-hint: "[target-capacity]"
Migrate workspaces from Fabric trial capacity to a production capacity: $ARGUMENTS
# List all capacities fab ls .capacities # List workspaces on trial capacity fab ls -l | grep "Trial-" # Count trial workspaces fab ls -l | grep "Trial-" | wc -l
# List available capacities fab ls .capacities -l # Get capacity details fab get ".capacities/TargetCapacity.Capacity"
# Assign workspace to new capacity fab assign ".capacities/TargetCapacity.Capacity" -W "WorkspaceName.Workspace" -f
# Migrate all trial workspaces to target capacity TARGET_CAPACITY="ProductionCapacity" fab ls -l | grep "Trial-" | cut -d' ' -f1 | while read ws; do echo "Migrating: $ws" fab assign ".capacities/$TARGET_CAPACITY.Capacity" -W "$ws" -f done
# Check workspace capacity assignment fab get "WorkspaceName.Workspace" -q "capacityId" # Verify no workspaces remain on trial fab ls -l | grep "Trial-" | wc -l
#!/bin/bash
# migrate-trial-to-prod.sh
TARGET_CAPACITY="${1:-ProductionCapacity}"
LOG_FILE="migration_$(date +%Y%m%d_%H%M%S).log"
echo "=== Trial Capacity Migration ===" | tee "$LOG_FILE"
echo "Target: $TARGET_CAPACITY" | tee -a "$LOG_FILE"
echo "" | tee -a "$LOG_FILE"
# Get trial workspaces
TRIAL_WORKSPACES=$(fab ls -l | grep "Trial-" | cut -d' ' -f1)
COUNT=$(echo "$TRIAL_WORKSPACES" | wc -l | tr -d ' ')
echo "Found $COUNT workspaces on trial capacity" | tee -a "$LOG_FILE"
echo "" | tee -a "$LOG_FILE"
for ws in $TRIAL_WORKSPACES; do
echo "Migrating: $ws" | tee -a "$LOG_FILE"
if fab assign ".capacities/$TARGET_CAPACITY.Capacity" -W "$ws" -f 2>&1 | tee -a "$LOG_FILE"; then
echo " SUCCESS" | tee -a "$LOG_FILE"
else
echo " FAILED" | tee -a "$LOG_FILE"
fi
done
echo "" | tee -a "$LOG_FILE"
echo "=== Migration Complete ===" | tee -a "$LOG_FILE"Power BI AI skills and Power BI agents for Claude Code and GitHub Copilot: a plugin marketplace of Power BI skills, subagents, and hooks for semantic models, DAX, TMDL, reports, and AI dashboards. Includes Microsoft Fabric skills and Fabric agents. Weekly updates.
Repo: data-goblin/power-bi-agentic-development
Suggest BPA rules based on a description or model analysis. Use when creating new Best Practice Analyzer rules for Tabular Editor.