# Manage Microsoft Fabric Capacities with Python

Microsoft Fabric capacity administration requires precise Azure SDK calls and long-running operation handling. This skill provides Python patterns for common capacity lifecycle tasks.

## Install

```bash
npx skillstore add sickn33/azure-mgmt-fabric-py
```

## Metadata

- Status: approved
- Slug: sickn33-azure-mgmt-fabric-py
- Skillstore revision: r2
- Version status: missing
- Tree hash: e60ca8b7d362510bdceb8a14c4c220bb50a4887fba84ad386a2f5145e3126b34
- Author: sickn33
- GitHub username: sickn33
- License: MIT
- Repository: https://github.com/sickn33/antigravity-awesome-skills/tree/main/skills/azure-mgmt-fabric-py
- Ref: f9e2c34b4f19c7f3e6b0a1e93227b5f77cc12526
- Supported tools: Claude, Codex, Claude Code
- Audit status: complete
- Agent install advisory: allowed
- Manual install advisory: allowed
- Artifact signature: available
- Audit attestation: unavailable
- Human verification: not\_verified
- Risk factors: external\_commands, env\_access
- Quality score: 69
- Public page: https://skillstore.pages.dev/skills/sickn33-azure-mgmt-fabric-py
- Manifest: https://skillstore.pages.dev/api/skills/sickn33-azure-mgmt-fabric-py/manifest

## Capabilities

- Installs the Azure Fabric management and identity SDK dependencies.
- Initializes FabricMgmtClient with DefaultAzureCredential and a subscription identifier.
- Creates and updates capacities with location, SKU, administrators, and tags.
- Gets capacities and lists them by resource group or subscription.
- Suspends, resumes, deletes, and checks name availability for capacities.
- Waits for long-running operations or demonstrates manual status polling.

## Use Cases

- Build Capacity Automation: Create Python workflows that provision, inspect, scale, and remove Fabric capacities.
- Standardize Platform Operations: Prepare consistent capacity lifecycle procedures across Azure subscriptions and resource groups.
- Control Capacity Costs: Review SKU options and suspend unused capacities while preserving a clear operational process.

## Prompt Templates

### Set Up the Client

```
Explain how to install the required packages and initialize FabricMgmtClient with DefaultAzureCredential. Use placeholders for my subscription values.
```

### Inventory Fabric Capacities

```
Show how to list Fabric capacities in resource group [RESOURCE_GROUP]. Include each capacity name, SKU, state, and location.
```

### Create and Scale a Capacity

```
Plan a Python workflow to create capacity [CAPACITY_NAME] with SKU [SKU], then update its SKU after confirming the target.
```

### Design a Safe Lifecycle Workflow

```
Design a robust capacity lifecycle workflow with validation, explicit mutation confirmation, long-running operation polling, error handling, and clear status reporting.
```

## Limitations

- Provides examples and guidance, not a complete executable automation package.
- Requires valid Azure credentials, subscription access, permissions, and installed dependencies.
- Examples use placeholders and may require import or SDK version adjustments.
- Does not provide workspace management, monitoring implementation, RBAC configuration, or deployment pipelines.

## Best Practices

- Confirm the subscription, resource group, capacity name, and action before every mutation.
- Use DefaultAzureCredential with least-privilege permissions and never embed credentials.
- Wait for long-running operations and inspect final status and errors.

## Anti Patterns

- Do not hard-code credentials, access tokens, or tenant secrets.
- Do not delete, suspend, resume, or resize a capacity without explicit confirmation.
- Do not assume examples match every installed SDK version; verify current method signatures.

## Security Audit

- Audited at: 2026-07-23T21:29:33.378\+00:00
- Summary: All 50 static findings are false positives caused by Markdown fences, inline code formatting, and named environment configuration. One medium semantic risk remains because mutating Azure operations lack explicit confirmation and target verification. No prompt injection, credential exfiltration, or dynamic code execution was found.

## Stats

- Views: 87
- Downloads: 6
- Favorites: 0
- Popularity score: 0
