Receber por email
← Voltar para o catálogo

fabric-ops

Opere e mantenha uma plataforma de dados Fabric, orquestrando DAGs de pipeline, executando VACUUM, atualizando o inventário da plataforma, gerenciando itens de workspace e executando rotinas operacionais. Use para operações diárias da plataforma, janelas de manutenção, purgas de GDPR ou configuração de ambiente.

33estrelas
Atualizado há 4 meses

Ver no GitHub ↗ Licença: MIT

Como adicionar

/plugin marketplace add scardoso-lu/fabric-skills-settings

O comando exato pode variar conforme o repositório. Confira o README no GitHub.

Para o autor da skill

Cole no README do seu repo

Mostra que sua skill está catalogada na Skillteca, gera backlink e tráfego rastreável.

[![Skillteca](https://www.skillteca.com.br/api/badge/fabric-ops/svg)](https://www.skillteca.com.br/skills/fabric-ops)
#ai

Skills relacionadas

Ver todas de Dados e Análise →

Alerta por categoria

Receba novas skills de Dados e Análise toda segunda

1 email curto, só com as skills novas de Dados e Análise. 4 minutos de leitura, sem spam, cancela com 1 clique.

Você confirma o email no primeiro envio. Sem spam. Cancela com 1 clique.

Ler descrição completa

fabric-ops

MUST

  • Run VACUUM weekly on all Delta tables (retention_hours=168)
  • Document every scheduled pipeline as a graph memory node (graph_create_node)
  • Update platform inventory after creating or deleting Fabric items
  • Never run VACUUM RETAIN 0 HOURS unless explicitly purging toxic or GDPR-flagged data

PREFER

  • fabric-vibe subcommands (which wrap the Fabric CLI) over direct fab calls for item management
  • Idempotent setup scripts (running twice causes no harm)

AVOID

  • Manual portal-only operations without a corresponding CLI command (creates undocumented state)
  • Running Gold jobs before Silver is confirmed successful (violates DAG ordering)
  • VACUUM with retention <168 hours in normal operations

Maintenance Routine

Daily: Check pipeline run status, triage failures, review DQ notebook results Weekly: Run VACUUM, check for schema drift, review slow jobs, review DQ trend reports Monthly: Capacity review, access review, Key Vault secret rotation check, stale item audit

Lakehouse Inspection

# List all lakehouses in the workspace with their tables and column schemas
fabric-vibe lakehouse list-tables

# Scope to a specific lakehouse
fabric-vibe lakehouse list-tables --lakehouse bronze_lh

# Inspect one table
fabric-vibe lakehouse list-tables --lakehouse bronze_lh --table raw_orders

# Machine-readable JSON (pipe to jq for filtering)
fabric-vibe lakehouse list-tables --json

Column schema is read from each table's Delta transaction log via the OneLake DFS endpoint using the Fabric CLI credential. If the token is unavailable, table names and types are still listed without schema.

Daily Checks

# List items in the workspace (shows notebooks, lakehouses, etc.)
fab api "workspaces/$FABRIC_WORKSPACE_ID/items" --output_format json

# Check recent job runs for a specific notebook item
fab api "workspaces/$FABRIC_WORKSPACE_ID/items/<item_id>/jobs/instances" --output_format json

# Monitor a specific job instance
fabric-vibe notebook deploy monitor "$FABRIC_WORKSPACE_ID" <item_id> <job_instance_id>

Check DQ notebook run results in the Fabric portal (Activities → Notebook runs).

VACUUM Pattern

from delta.tables import DeltaTable

tables_to_vacuum = [
    f"abfss://bronze@onelake.dfs.fabric.microsoft.com/{lakehouse_id}/Tables/raw_orders",
    f"abfss://silver@onelake.dfs.fabric.microsoft.com/{lakehouse_id}/Tables/silver_orders",
]

for path in tables_to_vacuum:
    dt = DeltaTable.forPath(spark, path)
    dt.vacuum(retention_hours=168)
    print(f"✓ VACUUM complete: {path}")

DAG Orchestration (Data Factory)

  1. Bronze notebook → Silver notebook (trigger on success only)
  2. Silver notebook → Gold notebook (trigger on success only)
  3. On failure: send alert, do NOT cascade to next layer

Environment Setup

# Create folder structure for local development
mkdir -p workspace data/sandbox logs

# Copy environment template
cp .env.example .env

# Discover and select workspace/resource IDs from the registry
fabric-vibe workspace init
fabric-vibe workspace switch list
fabric-vibe workspace switch <displayName>

# Install Fabric CLI
uv tool install ms-fabric-cli

# Authenticate (normally done once by tool/setup/setup.{sh,ps1})
fab auth login

Platform Inventory Update

After creating a new Fabric item, add it to memory/platform.md:

## Lakehouses
| Name | Workspace | Layer | Created | Notes |
|---|---|---|---|---|
| bronze_lh | fabric-sandbox | Bronze | 2026-05-06 | Raw + masked ingest tables |

## Source Systems
| Name | Type | Env Var Prefix | Cadence | Sensitive Fields |
|---|---|---|---|---|
| ORDERS | file | SRC_ORDERS | ad hoc sandbox | customer_name, email |
Compartilhar X LinkedIn