[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill-microsoft-azure-mgmt-fabric-py":3,"mdc-e54y09-key":43,"related-org-microsoft-azure-mgmt-fabric-py":2264,"related-repo-microsoft-azure-mgmt-fabric-py":2455},{"slug":4,"name":4,"fn":5,"description":6,"org":7,"tags":11,"stars":25,"repoUrl":26,"updatedAt":27,"license":28,"forks":29,"topics":30,"repo":38,"sourceUrl":41,"mdContent":42},"azure-mgmt-fabric-py","manage Microsoft Fabric capacities with Python","Azure Fabric Management SDK for Python. Use for managing Microsoft Fabric capacities and resources.\nTriggers: \"azure-mgmt-fabric\", \"FabricMgmtClient\", \"Fabric capacity\", \"Microsoft Fabric\", \"Power BI capacity\".",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},"microsoft","Microsoft","https:\u002F\u002Fpexgzepcugksgbtrxkhf.supabase.co\u002Fstorage\u002Fv1\u002Fobject\u002Fpublic\u002Forg-logos\u002Fmicrosoft.png",[12,16,19,22],{"name":13,"slug":14,"type":15},"Operations","operations","tag",{"name":17,"slug":18,"type":15},"Data Engineering","data-engineering",{"name":20,"slug":21,"type":15},"Python","python",{"name":23,"slug":24,"type":15},"Microsoft Fabric","microsoft-fabric",2804,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fskills","2026-07-18T05:14:19.974713","MIT",315,[31,32,33,34,35,36,37],"agent-skills","agents","azure","foundry","mcp","sdk","skills",{"repoUrl":26,"stars":25,"forks":29,"topics":39,"description":40},[31,32,33,34,35,36,37],"Skills, MCP servers, Custom Agents, Agents.md for SDKs to ground Coding Agents","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fskills\u002Ftree\u002FHEAD\u002F.github\u002Fplugins\u002Fazure-sdk-python\u002Fskills\u002Fazure-mgmt-fabric-py","---\nname: azure-mgmt-fabric-py\ndescription: |-\n  Azure Fabric Management SDK for Python. Use for managing Microsoft Fabric capacities and resources.\n  Triggers: \"azure-mgmt-fabric\", \"FabricMgmtClient\", \"Fabric capacity\", \"Microsoft Fabric\", \"Power BI capacity\".\nlicense: MIT\nmetadata:\n  author: Microsoft\n  version: \"1.0.0\"\n---\n\n# Azure Fabric Management SDK for Python\n\nManage Microsoft Fabric capacities and resources programmatically.\n\n## Installation\n\n```bash\npip install azure-mgmt-fabric\npip install azure-identity\n```\n\n## Environment Variables\n\n```bash\nAZURE_SUBSCRIPTION_ID=\u003Cyour-subscription-id>  # Required for all auth methods\nAZURE_RESOURCE_GROUP=\u003Cyour-resource-group>  # Required for all auth methods\nAZURE_TOKEN_CREDENTIALS=prod # Required only if DefaultAzureCredential is used in production\n```\n\n## Authentication & Lifecycle\n\n> **🔑 Two rules apply to every code sample below:**\n>\n> 1. **Prefer `DefaultAzureCredential`.** It works locally (Azure CLI \u002F VS Code \u002F Developer CLI) and in Azure (managed identity, workload identity) with no code change. Avoid connection strings, account\u002FAPI keys — they bypass Entra audit and rotation.\n>    - Local dev: `DefaultAzureCredential` works as-is.\n>    - Production: set `AZURE_TOKEN_CREDENTIALS=prod` (or `AZURE_TOKEN_CREDENTIALS=\u003Cspecific_credential>`) to constrain the credential chain to production-safe credentials.\n> 2. **Wrap every client in a context manager** so HTTP transports, sockets, and token caches are released deterministically:\n>    - Sync: `with \u003CClient>(...) as client:`\n>    - Async: `async with \u003CClient>(...) as client:` **and** `async with DefaultAzureCredential() as credential:` (from `azure.identity.aio`)\n>\n> Snippets may abbreviate this setup, but production code should always follow both rules.\n\n```python\nfrom azure.identity import DefaultAzureCredential, ManagedIdentityCredential\nfrom azure.mgmt.fabric import FabricMgmtClient\nimport os\n\n# Local dev: DefaultAzureCredential. Production: set AZURE_TOKEN_CREDENTIALS=prod or AZURE_TOKEN_CREDENTIALS=\u003Cspecific_credential>\ncredential = DefaultAzureCredential(require_envvar=True)\n# Or use a specific credential directly in production:\n# See https:\u002F\u002Flearn.microsoft.com\u002Fpython\u002Fapi\u002Foverview\u002Fazure\u002Fidentity-readme?view=azure-python#credential-classes\n# credential = ManagedIdentityCredential()\n\nwith FabricMgmtClient(\n    credential=credential,\n    subscription_id=os.environ[\"AZURE_SUBSCRIPTION_ID\"]\n) as client:\n    # Use `client` for all subsequent operations (see examples below)\n    ...\n```\n\n## Create Fabric Capacity\n\n```python\nfrom azure.mgmt.fabric import FabricMgmtClient\nfrom azure.mgmt.fabric.models import FabricCapacity, FabricCapacityProperties, CapacitySku\nfrom azure.identity import DefaultAzureCredential\nimport os\n\nresource_group = os.environ[\"AZURE_RESOURCE_GROUP\"]\ncapacity_name = \"myfabriccapacity\"\n\ncredential = DefaultAzureCredential()\nwith FabricMgmtClient(\n    credential=credential,\n    subscription_id=os.environ[\"AZURE_SUBSCRIPTION_ID\"]\n) as client:\n    capacity = client.fabric_capacities.begin_create_or_update(\n        resource_group_name=resource_group,\n        capacity_name=capacity_name,\n        resource=FabricCapacity(\n            location=\"eastus\",\n            sku=CapacitySku(\n                name=\"F2\",  # Fabric SKU\n                tier=\"Fabric\"\n            ),\n            properties=FabricCapacityProperties(\n                administration=FabricCapacityAdministration(\n                    members=[\"user@contoso.com\"]\n                )\n            )\n        )\n    ).result()\n\nprint(f\"Capacity created: {capacity.name}\")\n```\n\n## Get Capacity Details\n\n```python\ncapacity = client.fabric_capacities.get(\n    resource_group_name=resource_group,\n    capacity_name=capacity_name\n)\n\nprint(f\"Capacity: {capacity.name}\")\nprint(f\"SKU: {capacity.sku.name}\")\nprint(f\"State: {capacity.properties.state}\")\nprint(f\"Location: {capacity.location}\")\n```\n\n## List Capacities in Resource Group\n\n```python\ncapacities = client.fabric_capacities.list_by_resource_group(\n    resource_group_name=resource_group\n)\n\nfor capacity in capacities:\n    print(f\"Capacity: {capacity.name} - SKU: {capacity.sku.name}\")\n```\n\n## List All Capacities in Subscription\n\n```python\nall_capacities = client.fabric_capacities.list_by_subscription()\n\nfor capacity in all_capacities:\n    print(f\"Capacity: {capacity.name} in {capacity.location}\")\n```\n\n## Update Capacity\n\n```python\nfrom azure.mgmt.fabric.models import FabricCapacityUpdate, CapacitySku\n\nupdated = client.fabric_capacities.begin_update(\n    resource_group_name=resource_group,\n    capacity_name=capacity_name,\n    properties=FabricCapacityUpdate(\n        sku=CapacitySku(\n            name=\"F4\",  # Scale up\n            tier=\"Fabric\"\n        ),\n        tags={\"environment\": \"production\"}\n    )\n).result()\n\nprint(f\"Updated SKU: {updated.sku.name}\")\n```\n\n## Suspend Capacity\n\nPause capacity to stop billing:\n\n```python\nclient.fabric_capacities.begin_suspend(\n    resource_group_name=resource_group,\n    capacity_name=capacity_name\n).result()\n\nprint(\"Capacity suspended\")\n```\n\n## Resume Capacity\n\nResume a paused capacity:\n\n```python\nclient.fabric_capacities.begin_resume(\n    resource_group_name=resource_group,\n    capacity_name=capacity_name\n).result()\n\nprint(\"Capacity resumed\")\n```\n\n## Delete Capacity\n\n```python\nclient.fabric_capacities.begin_delete(\n    resource_group_name=resource_group,\n    capacity_name=capacity_name\n).result()\n\nprint(\"Capacity deleted\")\n```\n\n## Check Name Availability\n\n```python\nfrom azure.mgmt.fabric.models import CheckNameAvailabilityRequest\n\nresult = client.fabric_capacities.check_name_availability(\n    location=\"eastus\",\n    body=CheckNameAvailabilityRequest(\n        name=\"my-new-capacity\",\n        type=\"Microsoft.Fabric\u002Fcapacities\"\n    )\n)\n\nif result.name_available:\n    print(\"Name is available\")\nelse:\n    print(f\"Name not available: {result.reason}\")\n```\n\n## List Available SKUs\n\n```python\nskus = client.fabric_capacities.list_skus(\n    resource_group_name=resource_group,\n    capacity_name=capacity_name\n)\n\nfor sku in skus:\n    print(f\"SKU: {sku.name} - Tier: {sku.tier}\")\n```\n\n## Client Operations\n\n| Operation | Method |\n|-----------|--------|\n| `client.fabric_capacities` | Capacity CRUD operations |\n| `client.operations` | List available operations |\n\n## Fabric SKUs\n\n| SKU | Description | CUs |\n|-----|-------------|-----|\n| `F2` | Entry level | 2 Capacity Units |\n| `F4` | Small | 4 Capacity Units |\n| `F8` | Medium | 8 Capacity Units |\n| `F16` | Large | 16 Capacity Units |\n| `F32` | X-Large | 32 Capacity Units |\n| `F64` | 2X-Large | 64 Capacity Units |\n| `F128` | 4X-Large | 128 Capacity Units |\n| `F256` | 8X-Large | 256 Capacity Units |\n| `F512` | 16X-Large | 512 Capacity Units |\n| `F1024` | 32X-Large | 1024 Capacity Units |\n| `F2048` | 64X-Large | 2048 Capacity Units |\n\n## Capacity States\n\n| State | Description |\n|-------|-------------|\n| `Active` | Capacity is running |\n| `Paused` | Capacity is suspended (no billing) |\n| `Provisioning` | Being created |\n| `Updating` | Being modified |\n| `Deleting` | Being removed |\n| `Failed` | Operation failed |\n\n## Long-Running Operations\n\nAll mutating operations are long-running (LRO). Use `.result()` to wait:\n\n```python\n# Synchronous wait\ncapacity = client.fabric_capacities.begin_create_or_update(...).result()\n\n# Or poll manually\npoller = client.fabric_capacities.begin_create_or_update(...)\nwhile not poller.done():\n    print(f\"Status: {poller.status()}\")\n    time.sleep(5)\ncapacity = poller.result()\n```\n\n## Best Practices\n\n1. **Pick sync OR async and stay consistent.** Do not mix `azure.xxx` sync clients with `azure.xxx.aio` async clients in the same call path. Choose one mode per module.\n2. **Always use context managers for clients and async credentials.** Wrap every client in `with Client(...) as client:` (sync) or `async with Client(...) as client:` (async). For async `DefaultAzureCredential` from `azure.identity.aio`, also use `async with credential:` so tokens and transports are cleaned up.\n3. **Use `DefaultAzureCredential`** for code that runs locally. Use a specific token credential for code that runs in Azure.\n4. **Suspend unused capacities** to reduce costs\n5. **Start with smaller SKUs** and scale up as needed\n6. **Use tags** for cost tracking and organization\n7. **Check name availability** before creating capacities\n8. **Handle LRO properly** — don't assume immediate completion\n9. **Set up capacity admins** — specify users who can manage workspaces\n10. **Monitor capacity usage** via Azure Monitor metrics\n\n## Reference Files\n\n| File | Contents |\n|------|----------|\n| [references\u002Fcapabilities.md](references\u002Fcapabilities.md) | Additional non-hero capabilities, operation-group coverage, and production checklists. |\n| [references\u002Fnon-hero-scenarios.md](references\u002Fnon-hero-scenarios.md) | Dedicated non-hero examples for secondary\u002Fadvanced scenarios. |\n",{"data":44,"body":47},{"name":4,"description":6,"license":28,"metadata":45},{"author":9,"version":46},"1.0.0",{"type":48,"children":49},"root",[50,59,65,72,124,130,217,223,360,509,515,776,782,860,866,919,925,963,969,1093,1099,1104,1155,1161,1166,1217,1223,1274,1280,1395,1401,1460,1466,1528,1534,1803,1809,1932,1938,1951,2029,2035,2197,2203,2258],{"type":51,"tag":52,"props":53,"children":55},"element","h1",{"id":54},"azure-fabric-management-sdk-for-python",[56],{"type":57,"value":58},"text","Azure Fabric Management SDK for Python",{"type":51,"tag":60,"props":61,"children":62},"p",{},[63],{"type":57,"value":64},"Manage Microsoft Fabric capacities and resources programmatically.",{"type":51,"tag":66,"props":67,"children":69},"h2",{"id":68},"installation",[70],{"type":57,"value":71},"Installation",{"type":51,"tag":73,"props":74,"children":79},"pre",{"className":75,"code":76,"language":77,"meta":78,"style":78},"language-bash shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","pip install azure-mgmt-fabric\npip install azure-identity\n","bash","",[80],{"type":51,"tag":81,"props":82,"children":83},"code",{"__ignoreMap":78},[84,107],{"type":51,"tag":85,"props":86,"children":89},"span",{"class":87,"line":88},"line",1,[90,96,102],{"type":51,"tag":85,"props":91,"children":93},{"style":92},"--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B",[94],{"type":57,"value":95},"pip",{"type":51,"tag":85,"props":97,"children":99},{"style":98},"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D",[100],{"type":57,"value":101}," install",{"type":51,"tag":85,"props":103,"children":104},{"style":98},[105],{"type":57,"value":106}," azure-mgmt-fabric\n",{"type":51,"tag":85,"props":108,"children":110},{"class":87,"line":109},2,[111,115,119],{"type":51,"tag":85,"props":112,"children":113},{"style":92},[114],{"type":57,"value":95},{"type":51,"tag":85,"props":116,"children":117},{"style":98},[118],{"type":57,"value":101},{"type":51,"tag":85,"props":120,"children":121},{"style":98},[122],{"type":57,"value":123}," azure-identity\n",{"type":51,"tag":66,"props":125,"children":127},{"id":126},"environment-variables",[128],{"type":57,"value":129},"Environment Variables",{"type":51,"tag":73,"props":131,"children":133},{"className":75,"code":132,"language":77,"meta":78,"style":78},"AZURE_SUBSCRIPTION_ID=\u003Cyour-subscription-id>  # Required for all auth methods\nAZURE_RESOURCE_GROUP=\u003Cyour-resource-group>  # Required for all auth methods\nAZURE_TOKEN_CREDENTIALS=prod # Required only if DefaultAzureCredential is used in production\n",[134],{"type":51,"tag":81,"props":135,"children":136},{"__ignoreMap":78},[137,168,193],{"type":51,"tag":85,"props":138,"children":139},{"class":87,"line":88},[140,146,152,157,162],{"type":51,"tag":85,"props":141,"children":143},{"style":142},"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8",[144],{"type":57,"value":145},"AZURE_SUBSCRIPTION_ID",{"type":51,"tag":85,"props":147,"children":149},{"style":148},"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF",[150],{"type":57,"value":151},"=\u003C",{"type":51,"tag":85,"props":153,"children":154},{"style":98},[155],{"type":57,"value":156},"your-subscription-id",{"type":51,"tag":85,"props":158,"children":159},{"style":148},[160],{"type":57,"value":161},">",{"type":51,"tag":85,"props":163,"children":165},{"style":164},"--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#546E7A;--shiki-default-font-style:italic;--shiki-dark:#676E95;--shiki-dark-font-style:italic",[166],{"type":57,"value":167},"  # Required for all auth methods\n",{"type":51,"tag":85,"props":169,"children":170},{"class":87,"line":109},[171,176,180,185,189],{"type":51,"tag":85,"props":172,"children":173},{"style":142},[174],{"type":57,"value":175},"AZURE_RESOURCE_GROUP",{"type":51,"tag":85,"props":177,"children":178},{"style":148},[179],{"type":57,"value":151},{"type":51,"tag":85,"props":181,"children":182},{"style":98},[183],{"type":57,"value":184},"your-resource-group",{"type":51,"tag":85,"props":186,"children":187},{"style":148},[188],{"type":57,"value":161},{"type":51,"tag":85,"props":190,"children":191},{"style":164},[192],{"type":57,"value":167},{"type":51,"tag":85,"props":194,"children":196},{"class":87,"line":195},3,[197,202,207,212],{"type":51,"tag":85,"props":198,"children":199},{"style":142},[200],{"type":57,"value":201},"AZURE_TOKEN_CREDENTIALS",{"type":51,"tag":85,"props":203,"children":204},{"style":148},[205],{"type":57,"value":206},"=",{"type":51,"tag":85,"props":208,"children":209},{"style":98},[210],{"type":57,"value":211},"prod",{"type":51,"tag":85,"props":213,"children":214},{"style":164},[215],{"type":57,"value":216}," # Required only if DefaultAzureCredential is used in production\n",{"type":51,"tag":66,"props":218,"children":220},{"id":219},"authentication-lifecycle",[221],{"type":57,"value":222},"Authentication & Lifecycle",{"type":51,"tag":224,"props":225,"children":226},"blockquote",{},[227,236,355],{"type":51,"tag":60,"props":228,"children":229},{},[230],{"type":51,"tag":231,"props":232,"children":233},"strong",{},[234],{"type":57,"value":235},"🔑 Two rules apply to every code sample below:",{"type":51,"tag":237,"props":238,"children":239},"ol",{},[240,296],{"type":51,"tag":241,"props":242,"children":243},"li",{},[244,257,259],{"type":51,"tag":231,"props":245,"children":246},{},[247,249,255],{"type":57,"value":248},"Prefer ",{"type":51,"tag":81,"props":250,"children":252},{"className":251},[],[253],{"type":57,"value":254},"DefaultAzureCredential",{"type":57,"value":256},".",{"type":57,"value":258}," It works locally (Azure CLI \u002F VS Code \u002F Developer CLI) and in Azure (managed identity, workload identity) with no code change. Avoid connection strings, account\u002FAPI keys — they bypass Entra audit and rotation.\n",{"type":51,"tag":260,"props":261,"children":262},"ul",{},[263,275],{"type":51,"tag":241,"props":264,"children":265},{},[266,268,273],{"type":57,"value":267},"Local dev: ",{"type":51,"tag":81,"props":269,"children":271},{"className":270},[],[272],{"type":57,"value":254},{"type":57,"value":274}," works as-is.",{"type":51,"tag":241,"props":276,"children":277},{},[278,280,286,288,294],{"type":57,"value":279},"Production: set ",{"type":51,"tag":81,"props":281,"children":283},{"className":282},[],[284],{"type":57,"value":285},"AZURE_TOKEN_CREDENTIALS=prod",{"type":57,"value":287}," (or ",{"type":51,"tag":81,"props":289,"children":291},{"className":290},[],[292],{"type":57,"value":293},"AZURE_TOKEN_CREDENTIALS=\u003Cspecific_credential>",{"type":57,"value":295},") to constrain the credential chain to production-safe credentials.",{"type":51,"tag":241,"props":297,"children":298},{},[299,304,306],{"type":51,"tag":231,"props":300,"children":301},{},[302],{"type":57,"value":303},"Wrap every client in a context manager",{"type":57,"value":305}," so HTTP transports, sockets, and token caches are released deterministically:\n",{"type":51,"tag":260,"props":307,"children":308},{},[309,320],{"type":51,"tag":241,"props":310,"children":311},{},[312,314],{"type":57,"value":313},"Sync: ",{"type":51,"tag":81,"props":315,"children":317},{"className":316},[],[318],{"type":57,"value":319},"with \u003CClient>(...) as client:",{"type":51,"tag":241,"props":321,"children":322},{},[323,325,331,333,338,339,345,347,353],{"type":57,"value":324},"Async: ",{"type":51,"tag":81,"props":326,"children":328},{"className":327},[],[329],{"type":57,"value":330},"async with \u003CClient>(...) as client:",{"type":57,"value":332}," ",{"type":51,"tag":231,"props":334,"children":335},{},[336],{"type":57,"value":337},"and",{"type":57,"value":332},{"type":51,"tag":81,"props":340,"children":342},{"className":341},[],[343],{"type":57,"value":344},"async with DefaultAzureCredential() as credential:",{"type":57,"value":346}," (from ",{"type":51,"tag":81,"props":348,"children":350},{"className":349},[],[351],{"type":57,"value":352},"azure.identity.aio",{"type":57,"value":354},")",{"type":51,"tag":60,"props":356,"children":357},{},[358],{"type":57,"value":359},"Snippets may abbreviate this setup, but production code should always follow both rules.",{"type":51,"tag":73,"props":361,"children":364},{"className":362,"code":363,"language":21,"meta":78,"style":78},"language-python shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","from azure.identity import DefaultAzureCredential, ManagedIdentityCredential\nfrom azure.mgmt.fabric import FabricMgmtClient\nimport os\n\n# Local dev: DefaultAzureCredential. Production: set AZURE_TOKEN_CREDENTIALS=prod or AZURE_TOKEN_CREDENTIALS=\u003Cspecific_credential>\ncredential = DefaultAzureCredential(require_envvar=True)\n# Or use a specific credential directly in production:\n# See https:\u002F\u002Flearn.microsoft.com\u002Fpython\u002Fapi\u002Foverview\u002Fazure\u002Fidentity-readme?view=azure-python#credential-classes\n# credential = ManagedIdentityCredential()\n\nwith FabricMgmtClient(\n    credential=credential,\n    subscription_id=os.environ[\"AZURE_SUBSCRIPTION_ID\"]\n) as client:\n    # Use `client` for all subsequent operations (see examples below)\n    ...\n",[365],{"type":51,"tag":81,"props":366,"children":367},{"__ignoreMap":78},[368,376,384,392,402,411,420,429,438,447,455,464,473,482,491,500],{"type":51,"tag":85,"props":369,"children":370},{"class":87,"line":88},[371],{"type":51,"tag":85,"props":372,"children":373},{},[374],{"type":57,"value":375},"from azure.identity import DefaultAzureCredential, ManagedIdentityCredential\n",{"type":51,"tag":85,"props":377,"children":378},{"class":87,"line":109},[379],{"type":51,"tag":85,"props":380,"children":381},{},[382],{"type":57,"value":383},"from azure.mgmt.fabric import FabricMgmtClient\n",{"type":51,"tag":85,"props":385,"children":386},{"class":87,"line":195},[387],{"type":51,"tag":85,"props":388,"children":389},{},[390],{"type":57,"value":391},"import os\n",{"type":51,"tag":85,"props":393,"children":395},{"class":87,"line":394},4,[396],{"type":51,"tag":85,"props":397,"children":399},{"emptyLinePlaceholder":398},true,[400],{"type":57,"value":401},"\n",{"type":51,"tag":85,"props":403,"children":405},{"class":87,"line":404},5,[406],{"type":51,"tag":85,"props":407,"children":408},{},[409],{"type":57,"value":410},"# Local dev: DefaultAzureCredential. Production: set AZURE_TOKEN_CREDENTIALS=prod or AZURE_TOKEN_CREDENTIALS=\u003Cspecific_credential>\n",{"type":51,"tag":85,"props":412,"children":414},{"class":87,"line":413},6,[415],{"type":51,"tag":85,"props":416,"children":417},{},[418],{"type":57,"value":419},"credential = DefaultAzureCredential(require_envvar=True)\n",{"type":51,"tag":85,"props":421,"children":423},{"class":87,"line":422},7,[424],{"type":51,"tag":85,"props":425,"children":426},{},[427],{"type":57,"value":428},"# Or use a specific credential directly in production:\n",{"type":51,"tag":85,"props":430,"children":432},{"class":87,"line":431},8,[433],{"type":51,"tag":85,"props":434,"children":435},{},[436],{"type":57,"value":437},"# See https:\u002F\u002Flearn.microsoft.com\u002Fpython\u002Fapi\u002Foverview\u002Fazure\u002Fidentity-readme?view=azure-python#credential-classes\n",{"type":51,"tag":85,"props":439,"children":441},{"class":87,"line":440},9,[442],{"type":51,"tag":85,"props":443,"children":444},{},[445],{"type":57,"value":446},"# credential = ManagedIdentityCredential()\n",{"type":51,"tag":85,"props":448,"children":450},{"class":87,"line":449},10,[451],{"type":51,"tag":85,"props":452,"children":453},{"emptyLinePlaceholder":398},[454],{"type":57,"value":401},{"type":51,"tag":85,"props":456,"children":458},{"class":87,"line":457},11,[459],{"type":51,"tag":85,"props":460,"children":461},{},[462],{"type":57,"value":463},"with FabricMgmtClient(\n",{"type":51,"tag":85,"props":465,"children":467},{"class":87,"line":466},12,[468],{"type":51,"tag":85,"props":469,"children":470},{},[471],{"type":57,"value":472},"    credential=credential,\n",{"type":51,"tag":85,"props":474,"children":476},{"class":87,"line":475},13,[477],{"type":51,"tag":85,"props":478,"children":479},{},[480],{"type":57,"value":481},"    subscription_id=os.environ[\"AZURE_SUBSCRIPTION_ID\"]\n",{"type":51,"tag":85,"props":483,"children":485},{"class":87,"line":484},14,[486],{"type":51,"tag":85,"props":487,"children":488},{},[489],{"type":57,"value":490},") as client:\n",{"type":51,"tag":85,"props":492,"children":494},{"class":87,"line":493},15,[495],{"type":51,"tag":85,"props":496,"children":497},{},[498],{"type":57,"value":499},"    # Use `client` for all subsequent operations (see examples below)\n",{"type":51,"tag":85,"props":501,"children":503},{"class":87,"line":502},16,[504],{"type":51,"tag":85,"props":505,"children":506},{},[507],{"type":57,"value":508},"    ...\n",{"type":51,"tag":66,"props":510,"children":512},{"id":511},"create-fabric-capacity",[513],{"type":57,"value":514},"Create Fabric Capacity",{"type":51,"tag":73,"props":516,"children":518},{"className":362,"code":517,"language":21,"meta":78,"style":78},"from azure.mgmt.fabric import FabricMgmtClient\nfrom azure.mgmt.fabric.models import FabricCapacity, FabricCapacityProperties, CapacitySku\nfrom azure.identity import DefaultAzureCredential\nimport os\n\nresource_group = os.environ[\"AZURE_RESOURCE_GROUP\"]\ncapacity_name = \"myfabriccapacity\"\n\ncredential = DefaultAzureCredential()\nwith FabricMgmtClient(\n    credential=credential,\n    subscription_id=os.environ[\"AZURE_SUBSCRIPTION_ID\"]\n) as client:\n    capacity = client.fabric_capacities.begin_create_or_update(\n        resource_group_name=resource_group,\n        capacity_name=capacity_name,\n        resource=FabricCapacity(\n            location=\"eastus\",\n            sku=CapacitySku(\n                name=\"F2\",  # Fabric SKU\n                tier=\"Fabric\"\n            ),\n            properties=FabricCapacityProperties(\n                administration=FabricCapacityAdministration(\n                    members=[\"user@contoso.com\"]\n                )\n            )\n        )\n    ).result()\n\nprint(f\"Capacity created: {capacity.name}\")\n",[519],{"type":51,"tag":81,"props":520,"children":521},{"__ignoreMap":78},[522,529,537,545,552,559,567,575,582,590,597,604,611,618,626,634,642,651,660,669,678,687,696,705,714,723,732,741,750,759,767],{"type":51,"tag":85,"props":523,"children":524},{"class":87,"line":88},[525],{"type":51,"tag":85,"props":526,"children":527},{},[528],{"type":57,"value":383},{"type":51,"tag":85,"props":530,"children":531},{"class":87,"line":109},[532],{"type":51,"tag":85,"props":533,"children":534},{},[535],{"type":57,"value":536},"from azure.mgmt.fabric.models import FabricCapacity, FabricCapacityProperties, CapacitySku\n",{"type":51,"tag":85,"props":538,"children":539},{"class":87,"line":195},[540],{"type":51,"tag":85,"props":541,"children":542},{},[543],{"type":57,"value":544},"from azure.identity import DefaultAzureCredential\n",{"type":51,"tag":85,"props":546,"children":547},{"class":87,"line":394},[548],{"type":51,"tag":85,"props":549,"children":550},{},[551],{"type":57,"value":391},{"type":51,"tag":85,"props":553,"children":554},{"class":87,"line":404},[555],{"type":51,"tag":85,"props":556,"children":557},{"emptyLinePlaceholder":398},[558],{"type":57,"value":401},{"type":51,"tag":85,"props":560,"children":561},{"class":87,"line":413},[562],{"type":51,"tag":85,"props":563,"children":564},{},[565],{"type":57,"value":566},"resource_group = os.environ[\"AZURE_RESOURCE_GROUP\"]\n",{"type":51,"tag":85,"props":568,"children":569},{"class":87,"line":422},[570],{"type":51,"tag":85,"props":571,"children":572},{},[573],{"type":57,"value":574},"capacity_name = \"myfabriccapacity\"\n",{"type":51,"tag":85,"props":576,"children":577},{"class":87,"line":431},[578],{"type":51,"tag":85,"props":579,"children":580},{"emptyLinePlaceholder":398},[581],{"type":57,"value":401},{"type":51,"tag":85,"props":583,"children":584},{"class":87,"line":440},[585],{"type":51,"tag":85,"props":586,"children":587},{},[588],{"type":57,"value":589},"credential = DefaultAzureCredential()\n",{"type":51,"tag":85,"props":591,"children":592},{"class":87,"line":449},[593],{"type":51,"tag":85,"props":594,"children":595},{},[596],{"type":57,"value":463},{"type":51,"tag":85,"props":598,"children":599},{"class":87,"line":457},[600],{"type":51,"tag":85,"props":601,"children":602},{},[603],{"type":57,"value":472},{"type":51,"tag":85,"props":605,"children":606},{"class":87,"line":466},[607],{"type":51,"tag":85,"props":608,"children":609},{},[610],{"type":57,"value":481},{"type":51,"tag":85,"props":612,"children":613},{"class":87,"line":475},[614],{"type":51,"tag":85,"props":615,"children":616},{},[617],{"type":57,"value":490},{"type":51,"tag":85,"props":619,"children":620},{"class":87,"line":484},[621],{"type":51,"tag":85,"props":622,"children":623},{},[624],{"type":57,"value":625},"    capacity = client.fabric_capacities.begin_create_or_update(\n",{"type":51,"tag":85,"props":627,"children":628},{"class":87,"line":493},[629],{"type":51,"tag":85,"props":630,"children":631},{},[632],{"type":57,"value":633},"        resource_group_name=resource_group,\n",{"type":51,"tag":85,"props":635,"children":636},{"class":87,"line":502},[637],{"type":51,"tag":85,"props":638,"children":639},{},[640],{"type":57,"value":641},"        capacity_name=capacity_name,\n",{"type":51,"tag":85,"props":643,"children":645},{"class":87,"line":644},17,[646],{"type":51,"tag":85,"props":647,"children":648},{},[649],{"type":57,"value":650},"        resource=FabricCapacity(\n",{"type":51,"tag":85,"props":652,"children":654},{"class":87,"line":653},18,[655],{"type":51,"tag":85,"props":656,"children":657},{},[658],{"type":57,"value":659},"            location=\"eastus\",\n",{"type":51,"tag":85,"props":661,"children":663},{"class":87,"line":662},19,[664],{"type":51,"tag":85,"props":665,"children":666},{},[667],{"type":57,"value":668},"            sku=CapacitySku(\n",{"type":51,"tag":85,"props":670,"children":672},{"class":87,"line":671},20,[673],{"type":51,"tag":85,"props":674,"children":675},{},[676],{"type":57,"value":677},"                name=\"F2\",  # Fabric SKU\n",{"type":51,"tag":85,"props":679,"children":681},{"class":87,"line":680},21,[682],{"type":51,"tag":85,"props":683,"children":684},{},[685],{"type":57,"value":686},"                tier=\"Fabric\"\n",{"type":51,"tag":85,"props":688,"children":690},{"class":87,"line":689},22,[691],{"type":51,"tag":85,"props":692,"children":693},{},[694],{"type":57,"value":695},"            ),\n",{"type":51,"tag":85,"props":697,"children":699},{"class":87,"line":698},23,[700],{"type":51,"tag":85,"props":701,"children":702},{},[703],{"type":57,"value":704},"            properties=FabricCapacityProperties(\n",{"type":51,"tag":85,"props":706,"children":708},{"class":87,"line":707},24,[709],{"type":51,"tag":85,"props":710,"children":711},{},[712],{"type":57,"value":713},"                administration=FabricCapacityAdministration(\n",{"type":51,"tag":85,"props":715,"children":717},{"class":87,"line":716},25,[718],{"type":51,"tag":85,"props":719,"children":720},{},[721],{"type":57,"value":722},"                    members=[\"user@contoso.com\"]\n",{"type":51,"tag":85,"props":724,"children":726},{"class":87,"line":725},26,[727],{"type":51,"tag":85,"props":728,"children":729},{},[730],{"type":57,"value":731},"                )\n",{"type":51,"tag":85,"props":733,"children":735},{"class":87,"line":734},27,[736],{"type":51,"tag":85,"props":737,"children":738},{},[739],{"type":57,"value":740},"            )\n",{"type":51,"tag":85,"props":742,"children":744},{"class":87,"line":743},28,[745],{"type":51,"tag":85,"props":746,"children":747},{},[748],{"type":57,"value":749},"        )\n",{"type":51,"tag":85,"props":751,"children":753},{"class":87,"line":752},29,[754],{"type":51,"tag":85,"props":755,"children":756},{},[757],{"type":57,"value":758},"    ).result()\n",{"type":51,"tag":85,"props":760,"children":762},{"class":87,"line":761},30,[763],{"type":51,"tag":85,"props":764,"children":765},{"emptyLinePlaceholder":398},[766],{"type":57,"value":401},{"type":51,"tag":85,"props":768,"children":770},{"class":87,"line":769},31,[771],{"type":51,"tag":85,"props":772,"children":773},{},[774],{"type":57,"value":775},"print(f\"Capacity created: {capacity.name}\")\n",{"type":51,"tag":66,"props":777,"children":779},{"id":778},"get-capacity-details",[780],{"type":57,"value":781},"Get Capacity Details",{"type":51,"tag":73,"props":783,"children":785},{"className":362,"code":784,"language":21,"meta":78,"style":78},"capacity = client.fabric_capacities.get(\n    resource_group_name=resource_group,\n    capacity_name=capacity_name\n)\n\nprint(f\"Capacity: {capacity.name}\")\nprint(f\"SKU: {capacity.sku.name}\")\nprint(f\"State: {capacity.properties.state}\")\nprint(f\"Location: {capacity.location}\")\n",[786],{"type":51,"tag":81,"props":787,"children":788},{"__ignoreMap":78},[789,797,805,813,821,828,836,844,852],{"type":51,"tag":85,"props":790,"children":791},{"class":87,"line":88},[792],{"type":51,"tag":85,"props":793,"children":794},{},[795],{"type":57,"value":796},"capacity = client.fabric_capacities.get(\n",{"type":51,"tag":85,"props":798,"children":799},{"class":87,"line":109},[800],{"type":51,"tag":85,"props":801,"children":802},{},[803],{"type":57,"value":804},"    resource_group_name=resource_group,\n",{"type":51,"tag":85,"props":806,"children":807},{"class":87,"line":195},[808],{"type":51,"tag":85,"props":809,"children":810},{},[811],{"type":57,"value":812},"    capacity_name=capacity_name\n",{"type":51,"tag":85,"props":814,"children":815},{"class":87,"line":394},[816],{"type":51,"tag":85,"props":817,"children":818},{},[819],{"type":57,"value":820},")\n",{"type":51,"tag":85,"props":822,"children":823},{"class":87,"line":404},[824],{"type":51,"tag":85,"props":825,"children":826},{"emptyLinePlaceholder":398},[827],{"type":57,"value":401},{"type":51,"tag":85,"props":829,"children":830},{"class":87,"line":413},[831],{"type":51,"tag":85,"props":832,"children":833},{},[834],{"type":57,"value":835},"print(f\"Capacity: {capacity.name}\")\n",{"type":51,"tag":85,"props":837,"children":838},{"class":87,"line":422},[839],{"type":51,"tag":85,"props":840,"children":841},{},[842],{"type":57,"value":843},"print(f\"SKU: {capacity.sku.name}\")\n",{"type":51,"tag":85,"props":845,"children":846},{"class":87,"line":431},[847],{"type":51,"tag":85,"props":848,"children":849},{},[850],{"type":57,"value":851},"print(f\"State: {capacity.properties.state}\")\n",{"type":51,"tag":85,"props":853,"children":854},{"class":87,"line":440},[855],{"type":51,"tag":85,"props":856,"children":857},{},[858],{"type":57,"value":859},"print(f\"Location: {capacity.location}\")\n",{"type":51,"tag":66,"props":861,"children":863},{"id":862},"list-capacities-in-resource-group",[864],{"type":57,"value":865},"List Capacities in Resource Group",{"type":51,"tag":73,"props":867,"children":869},{"className":362,"code":868,"language":21,"meta":78,"style":78},"capacities = client.fabric_capacities.list_by_resource_group(\n    resource_group_name=resource_group\n)\n\nfor capacity in capacities:\n    print(f\"Capacity: {capacity.name} - SKU: {capacity.sku.name}\")\n",[870],{"type":51,"tag":81,"props":871,"children":872},{"__ignoreMap":78},[873,881,889,896,903,911],{"type":51,"tag":85,"props":874,"children":875},{"class":87,"line":88},[876],{"type":51,"tag":85,"props":877,"children":878},{},[879],{"type":57,"value":880},"capacities = client.fabric_capacities.list_by_resource_group(\n",{"type":51,"tag":85,"props":882,"children":883},{"class":87,"line":109},[884],{"type":51,"tag":85,"props":885,"children":886},{},[887],{"type":57,"value":888},"    resource_group_name=resource_group\n",{"type":51,"tag":85,"props":890,"children":891},{"class":87,"line":195},[892],{"type":51,"tag":85,"props":893,"children":894},{},[895],{"type":57,"value":820},{"type":51,"tag":85,"props":897,"children":898},{"class":87,"line":394},[899],{"type":51,"tag":85,"props":900,"children":901},{"emptyLinePlaceholder":398},[902],{"type":57,"value":401},{"type":51,"tag":85,"props":904,"children":905},{"class":87,"line":404},[906],{"type":51,"tag":85,"props":907,"children":908},{},[909],{"type":57,"value":910},"for capacity in capacities:\n",{"type":51,"tag":85,"props":912,"children":913},{"class":87,"line":413},[914],{"type":51,"tag":85,"props":915,"children":916},{},[917],{"type":57,"value":918},"    print(f\"Capacity: {capacity.name} - SKU: {capacity.sku.name}\")\n",{"type":51,"tag":66,"props":920,"children":922},{"id":921},"list-all-capacities-in-subscription",[923],{"type":57,"value":924},"List All Capacities in Subscription",{"type":51,"tag":73,"props":926,"children":928},{"className":362,"code":927,"language":21,"meta":78,"style":78},"all_capacities = client.fabric_capacities.list_by_subscription()\n\nfor capacity in all_capacities:\n    print(f\"Capacity: {capacity.name} in {capacity.location}\")\n",[929],{"type":51,"tag":81,"props":930,"children":931},{"__ignoreMap":78},[932,940,947,955],{"type":51,"tag":85,"props":933,"children":934},{"class":87,"line":88},[935],{"type":51,"tag":85,"props":936,"children":937},{},[938],{"type":57,"value":939},"all_capacities = client.fabric_capacities.list_by_subscription()\n",{"type":51,"tag":85,"props":941,"children":942},{"class":87,"line":109},[943],{"type":51,"tag":85,"props":944,"children":945},{"emptyLinePlaceholder":398},[946],{"type":57,"value":401},{"type":51,"tag":85,"props":948,"children":949},{"class":87,"line":195},[950],{"type":51,"tag":85,"props":951,"children":952},{},[953],{"type":57,"value":954},"for capacity in all_capacities:\n",{"type":51,"tag":85,"props":956,"children":957},{"class":87,"line":394},[958],{"type":51,"tag":85,"props":959,"children":960},{},[961],{"type":57,"value":962},"    print(f\"Capacity: {capacity.name} in {capacity.location}\")\n",{"type":51,"tag":66,"props":964,"children":966},{"id":965},"update-capacity",[967],{"type":57,"value":968},"Update Capacity",{"type":51,"tag":73,"props":970,"children":972},{"className":362,"code":971,"language":21,"meta":78,"style":78},"from azure.mgmt.fabric.models import FabricCapacityUpdate, CapacitySku\n\nupdated = client.fabric_capacities.begin_update(\n    resource_group_name=resource_group,\n    capacity_name=capacity_name,\n    properties=FabricCapacityUpdate(\n        sku=CapacitySku(\n            name=\"F4\",  # Scale up\n            tier=\"Fabric\"\n        ),\n        tags={\"environment\": \"production\"}\n    )\n).result()\n\nprint(f\"Updated SKU: {updated.sku.name}\")\n",[973],{"type":51,"tag":81,"props":974,"children":975},{"__ignoreMap":78},[976,984,991,999,1006,1014,1022,1030,1038,1046,1054,1062,1070,1078,1085],{"type":51,"tag":85,"props":977,"children":978},{"class":87,"line":88},[979],{"type":51,"tag":85,"props":980,"children":981},{},[982],{"type":57,"value":983},"from azure.mgmt.fabric.models import FabricCapacityUpdate, CapacitySku\n",{"type":51,"tag":85,"props":985,"children":986},{"class":87,"line":109},[987],{"type":51,"tag":85,"props":988,"children":989},{"emptyLinePlaceholder":398},[990],{"type":57,"value":401},{"type":51,"tag":85,"props":992,"children":993},{"class":87,"line":195},[994],{"type":51,"tag":85,"props":995,"children":996},{},[997],{"type":57,"value":998},"updated = client.fabric_capacities.begin_update(\n",{"type":51,"tag":85,"props":1000,"children":1001},{"class":87,"line":394},[1002],{"type":51,"tag":85,"props":1003,"children":1004},{},[1005],{"type":57,"value":804},{"type":51,"tag":85,"props":1007,"children":1008},{"class":87,"line":404},[1009],{"type":51,"tag":85,"props":1010,"children":1011},{},[1012],{"type":57,"value":1013},"    capacity_name=capacity_name,\n",{"type":51,"tag":85,"props":1015,"children":1016},{"class":87,"line":413},[1017],{"type":51,"tag":85,"props":1018,"children":1019},{},[1020],{"type":57,"value":1021},"    properties=FabricCapacityUpdate(\n",{"type":51,"tag":85,"props":1023,"children":1024},{"class":87,"line":422},[1025],{"type":51,"tag":85,"props":1026,"children":1027},{},[1028],{"type":57,"value":1029},"        sku=CapacitySku(\n",{"type":51,"tag":85,"props":1031,"children":1032},{"class":87,"line":431},[1033],{"type":51,"tag":85,"props":1034,"children":1035},{},[1036],{"type":57,"value":1037},"            name=\"F4\",  # Scale up\n",{"type":51,"tag":85,"props":1039,"children":1040},{"class":87,"line":440},[1041],{"type":51,"tag":85,"props":1042,"children":1043},{},[1044],{"type":57,"value":1045},"            tier=\"Fabric\"\n",{"type":51,"tag":85,"props":1047,"children":1048},{"class":87,"line":449},[1049],{"type":51,"tag":85,"props":1050,"children":1051},{},[1052],{"type":57,"value":1053},"        ),\n",{"type":51,"tag":85,"props":1055,"children":1056},{"class":87,"line":457},[1057],{"type":51,"tag":85,"props":1058,"children":1059},{},[1060],{"type":57,"value":1061},"        tags={\"environment\": \"production\"}\n",{"type":51,"tag":85,"props":1063,"children":1064},{"class":87,"line":466},[1065],{"type":51,"tag":85,"props":1066,"children":1067},{},[1068],{"type":57,"value":1069},"    )\n",{"type":51,"tag":85,"props":1071,"children":1072},{"class":87,"line":475},[1073],{"type":51,"tag":85,"props":1074,"children":1075},{},[1076],{"type":57,"value":1077},").result()\n",{"type":51,"tag":85,"props":1079,"children":1080},{"class":87,"line":484},[1081],{"type":51,"tag":85,"props":1082,"children":1083},{"emptyLinePlaceholder":398},[1084],{"type":57,"value":401},{"type":51,"tag":85,"props":1086,"children":1087},{"class":87,"line":493},[1088],{"type":51,"tag":85,"props":1089,"children":1090},{},[1091],{"type":57,"value":1092},"print(f\"Updated SKU: {updated.sku.name}\")\n",{"type":51,"tag":66,"props":1094,"children":1096},{"id":1095},"suspend-capacity",[1097],{"type":57,"value":1098},"Suspend Capacity",{"type":51,"tag":60,"props":1100,"children":1101},{},[1102],{"type":57,"value":1103},"Pause capacity to stop billing:",{"type":51,"tag":73,"props":1105,"children":1107},{"className":362,"code":1106,"language":21,"meta":78,"style":78},"client.fabric_capacities.begin_suspend(\n    resource_group_name=resource_group,\n    capacity_name=capacity_name\n).result()\n\nprint(\"Capacity suspended\")\n",[1108],{"type":51,"tag":81,"props":1109,"children":1110},{"__ignoreMap":78},[1111,1119,1126,1133,1140,1147],{"type":51,"tag":85,"props":1112,"children":1113},{"class":87,"line":88},[1114],{"type":51,"tag":85,"props":1115,"children":1116},{},[1117],{"type":57,"value":1118},"client.fabric_capacities.begin_suspend(\n",{"type":51,"tag":85,"props":1120,"children":1121},{"class":87,"line":109},[1122],{"type":51,"tag":85,"props":1123,"children":1124},{},[1125],{"type":57,"value":804},{"type":51,"tag":85,"props":1127,"children":1128},{"class":87,"line":195},[1129],{"type":51,"tag":85,"props":1130,"children":1131},{},[1132],{"type":57,"value":812},{"type":51,"tag":85,"props":1134,"children":1135},{"class":87,"line":394},[1136],{"type":51,"tag":85,"props":1137,"children":1138},{},[1139],{"type":57,"value":1077},{"type":51,"tag":85,"props":1141,"children":1142},{"class":87,"line":404},[1143],{"type":51,"tag":85,"props":1144,"children":1145},{"emptyLinePlaceholder":398},[1146],{"type":57,"value":401},{"type":51,"tag":85,"props":1148,"children":1149},{"class":87,"line":413},[1150],{"type":51,"tag":85,"props":1151,"children":1152},{},[1153],{"type":57,"value":1154},"print(\"Capacity suspended\")\n",{"type":51,"tag":66,"props":1156,"children":1158},{"id":1157},"resume-capacity",[1159],{"type":57,"value":1160},"Resume Capacity",{"type":51,"tag":60,"props":1162,"children":1163},{},[1164],{"type":57,"value":1165},"Resume a paused capacity:",{"type":51,"tag":73,"props":1167,"children":1169},{"className":362,"code":1168,"language":21,"meta":78,"style":78},"client.fabric_capacities.begin_resume(\n    resource_group_name=resource_group,\n    capacity_name=capacity_name\n).result()\n\nprint(\"Capacity resumed\")\n",[1170],{"type":51,"tag":81,"props":1171,"children":1172},{"__ignoreMap":78},[1173,1181,1188,1195,1202,1209],{"type":51,"tag":85,"props":1174,"children":1175},{"class":87,"line":88},[1176],{"type":51,"tag":85,"props":1177,"children":1178},{},[1179],{"type":57,"value":1180},"client.fabric_capacities.begin_resume(\n",{"type":51,"tag":85,"props":1182,"children":1183},{"class":87,"line":109},[1184],{"type":51,"tag":85,"props":1185,"children":1186},{},[1187],{"type":57,"value":804},{"type":51,"tag":85,"props":1189,"children":1190},{"class":87,"line":195},[1191],{"type":51,"tag":85,"props":1192,"children":1193},{},[1194],{"type":57,"value":812},{"type":51,"tag":85,"props":1196,"children":1197},{"class":87,"line":394},[1198],{"type":51,"tag":85,"props":1199,"children":1200},{},[1201],{"type":57,"value":1077},{"type":51,"tag":85,"props":1203,"children":1204},{"class":87,"line":404},[1205],{"type":51,"tag":85,"props":1206,"children":1207},{"emptyLinePlaceholder":398},[1208],{"type":57,"value":401},{"type":51,"tag":85,"props":1210,"children":1211},{"class":87,"line":413},[1212],{"type":51,"tag":85,"props":1213,"children":1214},{},[1215],{"type":57,"value":1216},"print(\"Capacity resumed\")\n",{"type":51,"tag":66,"props":1218,"children":1220},{"id":1219},"delete-capacity",[1221],{"type":57,"value":1222},"Delete Capacity",{"type":51,"tag":73,"props":1224,"children":1226},{"className":362,"code":1225,"language":21,"meta":78,"style":78},"client.fabric_capacities.begin_delete(\n    resource_group_name=resource_group,\n    capacity_name=capacity_name\n).result()\n\nprint(\"Capacity deleted\")\n",[1227],{"type":51,"tag":81,"props":1228,"children":1229},{"__ignoreMap":78},[1230,1238,1245,1252,1259,1266],{"type":51,"tag":85,"props":1231,"children":1232},{"class":87,"line":88},[1233],{"type":51,"tag":85,"props":1234,"children":1235},{},[1236],{"type":57,"value":1237},"client.fabric_capacities.begin_delete(\n",{"type":51,"tag":85,"props":1239,"children":1240},{"class":87,"line":109},[1241],{"type":51,"tag":85,"props":1242,"children":1243},{},[1244],{"type":57,"value":804},{"type":51,"tag":85,"props":1246,"children":1247},{"class":87,"line":195},[1248],{"type":51,"tag":85,"props":1249,"children":1250},{},[1251],{"type":57,"value":812},{"type":51,"tag":85,"props":1253,"children":1254},{"class":87,"line":394},[1255],{"type":51,"tag":85,"props":1256,"children":1257},{},[1258],{"type":57,"value":1077},{"type":51,"tag":85,"props":1260,"children":1261},{"class":87,"line":404},[1262],{"type":51,"tag":85,"props":1263,"children":1264},{"emptyLinePlaceholder":398},[1265],{"type":57,"value":401},{"type":51,"tag":85,"props":1267,"children":1268},{"class":87,"line":413},[1269],{"type":51,"tag":85,"props":1270,"children":1271},{},[1272],{"type":57,"value":1273},"print(\"Capacity deleted\")\n",{"type":51,"tag":66,"props":1275,"children":1277},{"id":1276},"check-name-availability",[1278],{"type":57,"value":1279},"Check Name Availability",{"type":51,"tag":73,"props":1281,"children":1283},{"className":362,"code":1282,"language":21,"meta":78,"style":78},"from azure.mgmt.fabric.models import CheckNameAvailabilityRequest\n\nresult = client.fabric_capacities.check_name_availability(\n    location=\"eastus\",\n    body=CheckNameAvailabilityRequest(\n        name=\"my-new-capacity\",\n        type=\"Microsoft.Fabric\u002Fcapacities\"\n    )\n)\n\nif result.name_available:\n    print(\"Name is available\")\nelse:\n    print(f\"Name not available: {result.reason}\")\n",[1284],{"type":51,"tag":81,"props":1285,"children":1286},{"__ignoreMap":78},[1287,1295,1302,1310,1318,1326,1334,1342,1349,1356,1363,1371,1379,1387],{"type":51,"tag":85,"props":1288,"children":1289},{"class":87,"line":88},[1290],{"type":51,"tag":85,"props":1291,"children":1292},{},[1293],{"type":57,"value":1294},"from azure.mgmt.fabric.models import CheckNameAvailabilityRequest\n",{"type":51,"tag":85,"props":1296,"children":1297},{"class":87,"line":109},[1298],{"type":51,"tag":85,"props":1299,"children":1300},{"emptyLinePlaceholder":398},[1301],{"type":57,"value":401},{"type":51,"tag":85,"props":1303,"children":1304},{"class":87,"line":195},[1305],{"type":51,"tag":85,"props":1306,"children":1307},{},[1308],{"type":57,"value":1309},"result = client.fabric_capacities.check_name_availability(\n",{"type":51,"tag":85,"props":1311,"children":1312},{"class":87,"line":394},[1313],{"type":51,"tag":85,"props":1314,"children":1315},{},[1316],{"type":57,"value":1317},"    location=\"eastus\",\n",{"type":51,"tag":85,"props":1319,"children":1320},{"class":87,"line":404},[1321],{"type":51,"tag":85,"props":1322,"children":1323},{},[1324],{"type":57,"value":1325},"    body=CheckNameAvailabilityRequest(\n",{"type":51,"tag":85,"props":1327,"children":1328},{"class":87,"line":413},[1329],{"type":51,"tag":85,"props":1330,"children":1331},{},[1332],{"type":57,"value":1333},"        name=\"my-new-capacity\",\n",{"type":51,"tag":85,"props":1335,"children":1336},{"class":87,"line":422},[1337],{"type":51,"tag":85,"props":1338,"children":1339},{},[1340],{"type":57,"value":1341},"        type=\"Microsoft.Fabric\u002Fcapacities\"\n",{"type":51,"tag":85,"props":1343,"children":1344},{"class":87,"line":431},[1345],{"type":51,"tag":85,"props":1346,"children":1347},{},[1348],{"type":57,"value":1069},{"type":51,"tag":85,"props":1350,"children":1351},{"class":87,"line":440},[1352],{"type":51,"tag":85,"props":1353,"children":1354},{},[1355],{"type":57,"value":820},{"type":51,"tag":85,"props":1357,"children":1358},{"class":87,"line":449},[1359],{"type":51,"tag":85,"props":1360,"children":1361},{"emptyLinePlaceholder":398},[1362],{"type":57,"value":401},{"type":51,"tag":85,"props":1364,"children":1365},{"class":87,"line":457},[1366],{"type":51,"tag":85,"props":1367,"children":1368},{},[1369],{"type":57,"value":1370},"if result.name_available:\n",{"type":51,"tag":85,"props":1372,"children":1373},{"class":87,"line":466},[1374],{"type":51,"tag":85,"props":1375,"children":1376},{},[1377],{"type":57,"value":1378},"    print(\"Name is available\")\n",{"type":51,"tag":85,"props":1380,"children":1381},{"class":87,"line":475},[1382],{"type":51,"tag":85,"props":1383,"children":1384},{},[1385],{"type":57,"value":1386},"else:\n",{"type":51,"tag":85,"props":1388,"children":1389},{"class":87,"line":484},[1390],{"type":51,"tag":85,"props":1391,"children":1392},{},[1393],{"type":57,"value":1394},"    print(f\"Name not available: {result.reason}\")\n",{"type":51,"tag":66,"props":1396,"children":1398},{"id":1397},"list-available-skus",[1399],{"type":57,"value":1400},"List Available SKUs",{"type":51,"tag":73,"props":1402,"children":1404},{"className":362,"code":1403,"language":21,"meta":78,"style":78},"skus = client.fabric_capacities.list_skus(\n    resource_group_name=resource_group,\n    capacity_name=capacity_name\n)\n\nfor sku in skus:\n    print(f\"SKU: {sku.name} - Tier: {sku.tier}\")\n",[1405],{"type":51,"tag":81,"props":1406,"children":1407},{"__ignoreMap":78},[1408,1416,1423,1430,1437,1444,1452],{"type":51,"tag":85,"props":1409,"children":1410},{"class":87,"line":88},[1411],{"type":51,"tag":85,"props":1412,"children":1413},{},[1414],{"type":57,"value":1415},"skus = client.fabric_capacities.list_skus(\n",{"type":51,"tag":85,"props":1417,"children":1418},{"class":87,"line":109},[1419],{"type":51,"tag":85,"props":1420,"children":1421},{},[1422],{"type":57,"value":804},{"type":51,"tag":85,"props":1424,"children":1425},{"class":87,"line":195},[1426],{"type":51,"tag":85,"props":1427,"children":1428},{},[1429],{"type":57,"value":812},{"type":51,"tag":85,"props":1431,"children":1432},{"class":87,"line":394},[1433],{"type":51,"tag":85,"props":1434,"children":1435},{},[1436],{"type":57,"value":820},{"type":51,"tag":85,"props":1438,"children":1439},{"class":87,"line":404},[1440],{"type":51,"tag":85,"props":1441,"children":1442},{"emptyLinePlaceholder":398},[1443],{"type":57,"value":401},{"type":51,"tag":85,"props":1445,"children":1446},{"class":87,"line":413},[1447],{"type":51,"tag":85,"props":1448,"children":1449},{},[1450],{"type":57,"value":1451},"for sku in skus:\n",{"type":51,"tag":85,"props":1453,"children":1454},{"class":87,"line":422},[1455],{"type":51,"tag":85,"props":1456,"children":1457},{},[1458],{"type":57,"value":1459},"    print(f\"SKU: {sku.name} - Tier: {sku.tier}\")\n",{"type":51,"tag":66,"props":1461,"children":1463},{"id":1462},"client-operations",[1464],{"type":57,"value":1465},"Client Operations",{"type":51,"tag":1467,"props":1468,"children":1469},"table",{},[1470,1489],{"type":51,"tag":1471,"props":1472,"children":1473},"thead",{},[1474],{"type":51,"tag":1475,"props":1476,"children":1477},"tr",{},[1478,1484],{"type":51,"tag":1479,"props":1480,"children":1481},"th",{},[1482],{"type":57,"value":1483},"Operation",{"type":51,"tag":1479,"props":1485,"children":1486},{},[1487],{"type":57,"value":1488},"Method",{"type":51,"tag":1490,"props":1491,"children":1492},"tbody",{},[1493,1511],{"type":51,"tag":1475,"props":1494,"children":1495},{},[1496,1506],{"type":51,"tag":1497,"props":1498,"children":1499},"td",{},[1500],{"type":51,"tag":81,"props":1501,"children":1503},{"className":1502},[],[1504],{"type":57,"value":1505},"client.fabric_capacities",{"type":51,"tag":1497,"props":1507,"children":1508},{},[1509],{"type":57,"value":1510},"Capacity CRUD operations",{"type":51,"tag":1475,"props":1512,"children":1513},{},[1514,1523],{"type":51,"tag":1497,"props":1515,"children":1516},{},[1517],{"type":51,"tag":81,"props":1518,"children":1520},{"className":1519},[],[1521],{"type":57,"value":1522},"client.operations",{"type":51,"tag":1497,"props":1524,"children":1525},{},[1526],{"type":57,"value":1527},"List available operations",{"type":51,"tag":66,"props":1529,"children":1531},{"id":1530},"fabric-skus",[1532],{"type":57,"value":1533},"Fabric SKUs",{"type":51,"tag":1467,"props":1535,"children":1536},{},[1537,1558],{"type":51,"tag":1471,"props":1538,"children":1539},{},[1540],{"type":51,"tag":1475,"props":1541,"children":1542},{},[1543,1548,1553],{"type":51,"tag":1479,"props":1544,"children":1545},{},[1546],{"type":57,"value":1547},"SKU",{"type":51,"tag":1479,"props":1549,"children":1550},{},[1551],{"type":57,"value":1552},"Description",{"type":51,"tag":1479,"props":1554,"children":1555},{},[1556],{"type":57,"value":1557},"CUs",{"type":51,"tag":1490,"props":1559,"children":1560},{},[1561,1583,1605,1627,1649,1671,1693,1715,1737,1759,1781],{"type":51,"tag":1475,"props":1562,"children":1563},{},[1564,1573,1578],{"type":51,"tag":1497,"props":1565,"children":1566},{},[1567],{"type":51,"tag":81,"props":1568,"children":1570},{"className":1569},[],[1571],{"type":57,"value":1572},"F2",{"type":51,"tag":1497,"props":1574,"children":1575},{},[1576],{"type":57,"value":1577},"Entry level",{"type":51,"tag":1497,"props":1579,"children":1580},{},[1581],{"type":57,"value":1582},"2 Capacity Units",{"type":51,"tag":1475,"props":1584,"children":1585},{},[1586,1595,1600],{"type":51,"tag":1497,"props":1587,"children":1588},{},[1589],{"type":51,"tag":81,"props":1590,"children":1592},{"className":1591},[],[1593],{"type":57,"value":1594},"F4",{"type":51,"tag":1497,"props":1596,"children":1597},{},[1598],{"type":57,"value":1599},"Small",{"type":51,"tag":1497,"props":1601,"children":1602},{},[1603],{"type":57,"value":1604},"4 Capacity Units",{"type":51,"tag":1475,"props":1606,"children":1607},{},[1608,1617,1622],{"type":51,"tag":1497,"props":1609,"children":1610},{},[1611],{"type":51,"tag":81,"props":1612,"children":1614},{"className":1613},[],[1615],{"type":57,"value":1616},"F8",{"type":51,"tag":1497,"props":1618,"children":1619},{},[1620],{"type":57,"value":1621},"Medium",{"type":51,"tag":1497,"props":1623,"children":1624},{},[1625],{"type":57,"value":1626},"8 Capacity Units",{"type":51,"tag":1475,"props":1628,"children":1629},{},[1630,1639,1644],{"type":51,"tag":1497,"props":1631,"children":1632},{},[1633],{"type":51,"tag":81,"props":1634,"children":1636},{"className":1635},[],[1637],{"type":57,"value":1638},"F16",{"type":51,"tag":1497,"props":1640,"children":1641},{},[1642],{"type":57,"value":1643},"Large",{"type":51,"tag":1497,"props":1645,"children":1646},{},[1647],{"type":57,"value":1648},"16 Capacity Units",{"type":51,"tag":1475,"props":1650,"children":1651},{},[1652,1661,1666],{"type":51,"tag":1497,"props":1653,"children":1654},{},[1655],{"type":51,"tag":81,"props":1656,"children":1658},{"className":1657},[],[1659],{"type":57,"value":1660},"F32",{"type":51,"tag":1497,"props":1662,"children":1663},{},[1664],{"type":57,"value":1665},"X-Large",{"type":51,"tag":1497,"props":1667,"children":1668},{},[1669],{"type":57,"value":1670},"32 Capacity Units",{"type":51,"tag":1475,"props":1672,"children":1673},{},[1674,1683,1688],{"type":51,"tag":1497,"props":1675,"children":1676},{},[1677],{"type":51,"tag":81,"props":1678,"children":1680},{"className":1679},[],[1681],{"type":57,"value":1682},"F64",{"type":51,"tag":1497,"props":1684,"children":1685},{},[1686],{"type":57,"value":1687},"2X-Large",{"type":51,"tag":1497,"props":1689,"children":1690},{},[1691],{"type":57,"value":1692},"64 Capacity Units",{"type":51,"tag":1475,"props":1694,"children":1695},{},[1696,1705,1710],{"type":51,"tag":1497,"props":1697,"children":1698},{},[1699],{"type":51,"tag":81,"props":1700,"children":1702},{"className":1701},[],[1703],{"type":57,"value":1704},"F128",{"type":51,"tag":1497,"props":1706,"children":1707},{},[1708],{"type":57,"value":1709},"4X-Large",{"type":51,"tag":1497,"props":1711,"children":1712},{},[1713],{"type":57,"value":1714},"128 Capacity Units",{"type":51,"tag":1475,"props":1716,"children":1717},{},[1718,1727,1732],{"type":51,"tag":1497,"props":1719,"children":1720},{},[1721],{"type":51,"tag":81,"props":1722,"children":1724},{"className":1723},[],[1725],{"type":57,"value":1726},"F256",{"type":51,"tag":1497,"props":1728,"children":1729},{},[1730],{"type":57,"value":1731},"8X-Large",{"type":51,"tag":1497,"props":1733,"children":1734},{},[1735],{"type":57,"value":1736},"256 Capacity Units",{"type":51,"tag":1475,"props":1738,"children":1739},{},[1740,1749,1754],{"type":51,"tag":1497,"props":1741,"children":1742},{},[1743],{"type":51,"tag":81,"props":1744,"children":1746},{"className":1745},[],[1747],{"type":57,"value":1748},"F512",{"type":51,"tag":1497,"props":1750,"children":1751},{},[1752],{"type":57,"value":1753},"16X-Large",{"type":51,"tag":1497,"props":1755,"children":1756},{},[1757],{"type":57,"value":1758},"512 Capacity Units",{"type":51,"tag":1475,"props":1760,"children":1761},{},[1762,1771,1776],{"type":51,"tag":1497,"props":1763,"children":1764},{},[1765],{"type":51,"tag":81,"props":1766,"children":1768},{"className":1767},[],[1769],{"type":57,"value":1770},"F1024",{"type":51,"tag":1497,"props":1772,"children":1773},{},[1774],{"type":57,"value":1775},"32X-Large",{"type":51,"tag":1497,"props":1777,"children":1778},{},[1779],{"type":57,"value":1780},"1024 Capacity Units",{"type":51,"tag":1475,"props":1782,"children":1783},{},[1784,1793,1798],{"type":51,"tag":1497,"props":1785,"children":1786},{},[1787],{"type":51,"tag":81,"props":1788,"children":1790},{"className":1789},[],[1791],{"type":57,"value":1792},"F2048",{"type":51,"tag":1497,"props":1794,"children":1795},{},[1796],{"type":57,"value":1797},"64X-Large",{"type":51,"tag":1497,"props":1799,"children":1800},{},[1801],{"type":57,"value":1802},"2048 Capacity Units",{"type":51,"tag":66,"props":1804,"children":1806},{"id":1805},"capacity-states",[1807],{"type":57,"value":1808},"Capacity States",{"type":51,"tag":1467,"props":1810,"children":1811},{},[1812,1827],{"type":51,"tag":1471,"props":1813,"children":1814},{},[1815],{"type":51,"tag":1475,"props":1816,"children":1817},{},[1818,1823],{"type":51,"tag":1479,"props":1819,"children":1820},{},[1821],{"type":57,"value":1822},"State",{"type":51,"tag":1479,"props":1824,"children":1825},{},[1826],{"type":57,"value":1552},{"type":51,"tag":1490,"props":1828,"children":1829},{},[1830,1847,1864,1881,1898,1915],{"type":51,"tag":1475,"props":1831,"children":1832},{},[1833,1842],{"type":51,"tag":1497,"props":1834,"children":1835},{},[1836],{"type":51,"tag":81,"props":1837,"children":1839},{"className":1838},[],[1840],{"type":57,"value":1841},"Active",{"type":51,"tag":1497,"props":1843,"children":1844},{},[1845],{"type":57,"value":1846},"Capacity is running",{"type":51,"tag":1475,"props":1848,"children":1849},{},[1850,1859],{"type":51,"tag":1497,"props":1851,"children":1852},{},[1853],{"type":51,"tag":81,"props":1854,"children":1856},{"className":1855},[],[1857],{"type":57,"value":1858},"Paused",{"type":51,"tag":1497,"props":1860,"children":1861},{},[1862],{"type":57,"value":1863},"Capacity is suspended (no billing)",{"type":51,"tag":1475,"props":1865,"children":1866},{},[1867,1876],{"type":51,"tag":1497,"props":1868,"children":1869},{},[1870],{"type":51,"tag":81,"props":1871,"children":1873},{"className":1872},[],[1874],{"type":57,"value":1875},"Provisioning",{"type":51,"tag":1497,"props":1877,"children":1878},{},[1879],{"type":57,"value":1880},"Being created",{"type":51,"tag":1475,"props":1882,"children":1883},{},[1884,1893],{"type":51,"tag":1497,"props":1885,"children":1886},{},[1887],{"type":51,"tag":81,"props":1888,"children":1890},{"className":1889},[],[1891],{"type":57,"value":1892},"Updating",{"type":51,"tag":1497,"props":1894,"children":1895},{},[1896],{"type":57,"value":1897},"Being modified",{"type":51,"tag":1475,"props":1899,"children":1900},{},[1901,1910],{"type":51,"tag":1497,"props":1902,"children":1903},{},[1904],{"type":51,"tag":81,"props":1905,"children":1907},{"className":1906},[],[1908],{"type":57,"value":1909},"Deleting",{"type":51,"tag":1497,"props":1911,"children":1912},{},[1913],{"type":57,"value":1914},"Being removed",{"type":51,"tag":1475,"props":1916,"children":1917},{},[1918,1927],{"type":51,"tag":1497,"props":1919,"children":1920},{},[1921],{"type":51,"tag":81,"props":1922,"children":1924},{"className":1923},[],[1925],{"type":57,"value":1926},"Failed",{"type":51,"tag":1497,"props":1928,"children":1929},{},[1930],{"type":57,"value":1931},"Operation failed",{"type":51,"tag":66,"props":1933,"children":1935},{"id":1934},"long-running-operations",[1936],{"type":57,"value":1937},"Long-Running Operations",{"type":51,"tag":60,"props":1939,"children":1940},{},[1941,1943,1949],{"type":57,"value":1942},"All mutating operations are long-running (LRO). Use ",{"type":51,"tag":81,"props":1944,"children":1946},{"className":1945},[],[1947],{"type":57,"value":1948},".result()",{"type":57,"value":1950}," to wait:",{"type":51,"tag":73,"props":1952,"children":1954},{"className":362,"code":1953,"language":21,"meta":78,"style":78},"# Synchronous wait\ncapacity = client.fabric_capacities.begin_create_or_update(...).result()\n\n# Or poll manually\npoller = client.fabric_capacities.begin_create_or_update(...)\nwhile not poller.done():\n    print(f\"Status: {poller.status()}\")\n    time.sleep(5)\ncapacity = poller.result()\n",[1955],{"type":51,"tag":81,"props":1956,"children":1957},{"__ignoreMap":78},[1958,1966,1974,1981,1989,1997,2005,2013,2021],{"type":51,"tag":85,"props":1959,"children":1960},{"class":87,"line":88},[1961],{"type":51,"tag":85,"props":1962,"children":1963},{},[1964],{"type":57,"value":1965},"# Synchronous wait\n",{"type":51,"tag":85,"props":1967,"children":1968},{"class":87,"line":109},[1969],{"type":51,"tag":85,"props":1970,"children":1971},{},[1972],{"type":57,"value":1973},"capacity = client.fabric_capacities.begin_create_or_update(...).result()\n",{"type":51,"tag":85,"props":1975,"children":1976},{"class":87,"line":195},[1977],{"type":51,"tag":85,"props":1978,"children":1979},{"emptyLinePlaceholder":398},[1980],{"type":57,"value":401},{"type":51,"tag":85,"props":1982,"children":1983},{"class":87,"line":394},[1984],{"type":51,"tag":85,"props":1985,"children":1986},{},[1987],{"type":57,"value":1988},"# Or poll manually\n",{"type":51,"tag":85,"props":1990,"children":1991},{"class":87,"line":404},[1992],{"type":51,"tag":85,"props":1993,"children":1994},{},[1995],{"type":57,"value":1996},"poller = client.fabric_capacities.begin_create_or_update(...)\n",{"type":51,"tag":85,"props":1998,"children":1999},{"class":87,"line":413},[2000],{"type":51,"tag":85,"props":2001,"children":2002},{},[2003],{"type":57,"value":2004},"while not poller.done():\n",{"type":51,"tag":85,"props":2006,"children":2007},{"class":87,"line":422},[2008],{"type":51,"tag":85,"props":2009,"children":2010},{},[2011],{"type":57,"value":2012},"    print(f\"Status: {poller.status()}\")\n",{"type":51,"tag":85,"props":2014,"children":2015},{"class":87,"line":431},[2016],{"type":51,"tag":85,"props":2017,"children":2018},{},[2019],{"type":57,"value":2020},"    time.sleep(5)\n",{"type":51,"tag":85,"props":2022,"children":2023},{"class":87,"line":440},[2024],{"type":51,"tag":85,"props":2025,"children":2026},{},[2027],{"type":57,"value":2028},"capacity = poller.result()\n",{"type":51,"tag":66,"props":2030,"children":2032},{"id":2031},"best-practices",[2033],{"type":57,"value":2034},"Best Practices",{"type":51,"tag":237,"props":2036,"children":2037},{},[2038,2064,2112,2127,2137,2147,2157,2167,2177,2187],{"type":51,"tag":241,"props":2039,"children":2040},{},[2041,2046,2048,2054,2056,2062],{"type":51,"tag":231,"props":2042,"children":2043},{},[2044],{"type":57,"value":2045},"Pick sync OR async and stay consistent.",{"type":57,"value":2047}," Do not mix ",{"type":51,"tag":81,"props":2049,"children":2051},{"className":2050},[],[2052],{"type":57,"value":2053},"azure.xxx",{"type":57,"value":2055}," sync clients with ",{"type":51,"tag":81,"props":2057,"children":2059},{"className":2058},[],[2060],{"type":57,"value":2061},"azure.xxx.aio",{"type":57,"value":2063}," async clients in the same call path. Choose one mode per module.",{"type":51,"tag":241,"props":2065,"children":2066},{},[2067,2072,2074,2080,2082,2088,2090,2095,2097,2102,2104,2110],{"type":51,"tag":231,"props":2068,"children":2069},{},[2070],{"type":57,"value":2071},"Always use context managers for clients and async credentials.",{"type":57,"value":2073}," Wrap every client in ",{"type":51,"tag":81,"props":2075,"children":2077},{"className":2076},[],[2078],{"type":57,"value":2079},"with Client(...) as client:",{"type":57,"value":2081}," (sync) or ",{"type":51,"tag":81,"props":2083,"children":2085},{"className":2084},[],[2086],{"type":57,"value":2087},"async with Client(...) as client:",{"type":57,"value":2089}," (async). For async ",{"type":51,"tag":81,"props":2091,"children":2093},{"className":2092},[],[2094],{"type":57,"value":254},{"type":57,"value":2096}," from ",{"type":51,"tag":81,"props":2098,"children":2100},{"className":2099},[],[2101],{"type":57,"value":352},{"type":57,"value":2103},", also use ",{"type":51,"tag":81,"props":2105,"children":2107},{"className":2106},[],[2108],{"type":57,"value":2109},"async with credential:",{"type":57,"value":2111}," so tokens and transports are cleaned up.",{"type":51,"tag":241,"props":2113,"children":2114},{},[2115,2125],{"type":51,"tag":231,"props":2116,"children":2117},{},[2118,2120],{"type":57,"value":2119},"Use ",{"type":51,"tag":81,"props":2121,"children":2123},{"className":2122},[],[2124],{"type":57,"value":254},{"type":57,"value":2126}," for code that runs locally. Use a specific token credential for code that runs in Azure.",{"type":51,"tag":241,"props":2128,"children":2129},{},[2130,2135],{"type":51,"tag":231,"props":2131,"children":2132},{},[2133],{"type":57,"value":2134},"Suspend unused capacities",{"type":57,"value":2136}," to reduce costs",{"type":51,"tag":241,"props":2138,"children":2139},{},[2140,2145],{"type":51,"tag":231,"props":2141,"children":2142},{},[2143],{"type":57,"value":2144},"Start with smaller SKUs",{"type":57,"value":2146}," and scale up as needed",{"type":51,"tag":241,"props":2148,"children":2149},{},[2150,2155],{"type":51,"tag":231,"props":2151,"children":2152},{},[2153],{"type":57,"value":2154},"Use tags",{"type":57,"value":2156}," for cost tracking and organization",{"type":51,"tag":241,"props":2158,"children":2159},{},[2160,2165],{"type":51,"tag":231,"props":2161,"children":2162},{},[2163],{"type":57,"value":2164},"Check name availability",{"type":57,"value":2166}," before creating capacities",{"type":51,"tag":241,"props":2168,"children":2169},{},[2170,2175],{"type":51,"tag":231,"props":2171,"children":2172},{},[2173],{"type":57,"value":2174},"Handle LRO properly",{"type":57,"value":2176}," — don't assume immediate completion",{"type":51,"tag":241,"props":2178,"children":2179},{},[2180,2185],{"type":51,"tag":231,"props":2181,"children":2182},{},[2183],{"type":57,"value":2184},"Set up capacity admins",{"type":57,"value":2186}," — specify users who can manage workspaces",{"type":51,"tag":241,"props":2188,"children":2189},{},[2190,2195],{"type":51,"tag":231,"props":2191,"children":2192},{},[2193],{"type":57,"value":2194},"Monitor capacity usage",{"type":57,"value":2196}," via Azure Monitor metrics",{"type":51,"tag":66,"props":2198,"children":2200},{"id":2199},"reference-files",[2201],{"type":57,"value":2202},"Reference Files",{"type":51,"tag":1467,"props":2204,"children":2205},{},[2206,2222],{"type":51,"tag":1471,"props":2207,"children":2208},{},[2209],{"type":51,"tag":1475,"props":2210,"children":2211},{},[2212,2217],{"type":51,"tag":1479,"props":2213,"children":2214},{},[2215],{"type":57,"value":2216},"File",{"type":51,"tag":1479,"props":2218,"children":2219},{},[2220],{"type":57,"value":2221},"Contents",{"type":51,"tag":1490,"props":2223,"children":2224},{},[2225,2242],{"type":51,"tag":1475,"props":2226,"children":2227},{},[2228,2237],{"type":51,"tag":1497,"props":2229,"children":2230},{},[2231],{"type":51,"tag":2232,"props":2233,"children":2235},"a",{"href":2234},"references\u002Fcapabilities.md",[2236],{"type":57,"value":2234},{"type":51,"tag":1497,"props":2238,"children":2239},{},[2240],{"type":57,"value":2241},"Additional non-hero capabilities, operation-group coverage, and production checklists.",{"type":51,"tag":1475,"props":2243,"children":2244},{},[2245,2253],{"type":51,"tag":1497,"props":2246,"children":2247},{},[2248],{"type":51,"tag":2232,"props":2249,"children":2251},{"href":2250},"references\u002Fnon-hero-scenarios.md",[2252],{"type":57,"value":2250},{"type":51,"tag":1497,"props":2254,"children":2255},{},[2256],{"type":57,"value":2257},"Dedicated non-hero examples for secondary\u002Fadvanced scenarios.",{"type":51,"tag":2259,"props":2260,"children":2261},"style",{},[2262],{"type":57,"value":2263},"html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"items":2265,"total":2454},[2266,2288,2305,2326,2341,2356,2367,2380,2395,2410,2429,2442],{"slug":2267,"name":2267,"fn":2268,"description":2269,"org":2270,"tags":2271,"stars":2285,"repoUrl":2286,"updatedAt":2287},"rushstack-best-practices","manage Rush monorepos with best practices","Provides best practices and guidance for working with Rush monorepos. Use when the user is working in a Rush-based repository, asks about Rush commands (install, update, build, rebuild), needs help with project selection, dependency management, build caching, subspace configuration, or troubleshooting Rush-specific issues.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[2272,2275,2278,2279,2282],{"name":2273,"slug":2274,"type":15},"Engineering","engineering",{"name":2276,"slug":2277,"type":15},"Local Development","local-development",{"name":9,"slug":8,"type":15},{"name":2280,"slug":2281,"type":15},"Project Management","project-management",{"name":2283,"slug":2284,"type":15},"Rush","rush",6484,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Frushstack","2026-04-06T18:34:44.965032",{"slug":2289,"name":2289,"fn":2290,"description":2291,"org":2292,"tags":2293,"stars":25,"repoUrl":26,"updatedAt":2304},"azure-ai-agents-persistent-dotnet","build AI agents with Azure .NET SDK","Azure AI Agents Persistent SDK for .NET. Low-level SDK for creating and managing AI agents with threads, messages, runs, and tools. Use for agent CRUD, conversation threads, streaming responses, function calling, file search, and code interpreter. Triggers: \"PersistentAgentsClient\", \"persistent agents\", \"agent threads\", \"agent runs\", \"streaming agents\", \"function calling agents .NET\".\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[2294,2297,2299,2301],{"name":2295,"slug":2296,"type":15},".NET","net",{"name":2298,"slug":32,"type":15},"Agents",{"name":2300,"slug":33,"type":15},"Azure",{"name":2302,"slug":2303,"type":15},"LLM","llm","2026-07-03T16:32:10.297433",{"slug":2306,"name":2306,"fn":2307,"description":2308,"org":2309,"tags":2310,"stars":25,"repoUrl":26,"updatedAt":2325},"azure-ai-anomalydetector-java","build anomaly detection applications with Java","Build anomaly detection applications with Azure AI Anomaly Detector SDK for Java. Use when implementing univariate\u002Fmultivariate anomaly detection, time-series analysis, or AI-powered monitoring.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[2311,2314,2315,2318,2321,2322],{"name":2312,"slug":2313,"type":15},"Analytics","analytics",{"name":2300,"slug":33,"type":15},{"name":2316,"slug":2317,"type":15},"Data Analysis","data-analysis",{"name":2319,"slug":2320,"type":15},"Java","java",{"name":9,"slug":8,"type":15},{"name":2323,"slug":2324,"type":15},"Monitoring","monitoring","2026-05-13T06:14:16.261754",{"slug":2327,"name":2327,"fn":2328,"description":2329,"org":2330,"tags":2331,"stars":25,"repoUrl":26,"updatedAt":2340},"azure-ai-contentsafety-java","build content moderation applications with Azure AI","Build content moderation applications with Azure AI Content Safety SDK for Java. Use when implementing text\u002Fimage analysis, blocklist management, or harm detection for hate, violence, sexual content, and self-harm.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[2332,2335,2336,2337],{"name":2333,"slug":2334,"type":15},"AI Infrastructure","ai-infrastructure",{"name":2300,"slug":33,"type":15},{"name":2319,"slug":2320,"type":15},{"name":2338,"slug":2339,"type":15},"Security","security","2026-07-07T06:53:31.293235",{"slug":2342,"name":2342,"fn":2343,"description":2344,"org":2345,"tags":2346,"stars":25,"repoUrl":26,"updatedAt":2355},"azure-ai-contentsafety-py","detect harmful content with Azure AI Content Safety","Azure AI Content Safety SDK for Python. Use for detecting harmful content in text and images with multi-severity classification.\nTriggers: \"azure-ai-contentsafety\", \"ContentSafetyClient\", \"content moderation\", \"harmful content\", \"text analysis\", \"image analysis\".\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[2347,2348,2351,2352,2353,2354],{"name":2300,"slug":33,"type":15},{"name":2349,"slug":2350,"type":15},"Compliance","compliance",{"name":2302,"slug":2303,"type":15},{"name":9,"slug":8,"type":15},{"name":20,"slug":21,"type":15},{"name":2338,"slug":2339,"type":15},"2026-07-18T05:14:23.017504",{"slug":2357,"name":2357,"fn":2358,"description":2359,"org":2360,"tags":2361,"stars":25,"repoUrl":26,"updatedAt":2366},"azure-ai-language-conversations-py","implement conversational language understanding with Python","Implement Conversational Language Understanding (CLU) using the azure-ai-language-conversations Python SDK. Use when working with ConversationAnalysisClient to analyze conversation intent and entities, building NLP features, or integrating language understanding into applications.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[2362,2363,2364,2365],{"name":2312,"slug":2313,"type":15},{"name":2300,"slug":33,"type":15},{"name":2302,"slug":2303,"type":15},{"name":20,"slug":21,"type":15},"2026-07-31T05:54:29.068751",{"slug":2368,"name":2368,"fn":2369,"description":2370,"org":2371,"tags":2372,"stars":25,"repoUrl":26,"updatedAt":2379},"azure-ai-translation-text-py","translate text using Azure AI services","Azure AI Text Translation SDK for real-time text translation, transliteration, language detection, and dictionary lookup. Use for translating text content in applications.\nTriggers: \"text translation\", \"translator\", \"translate text\", \"transliterate\", \"TextTranslationClient\".\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[2373,2376,2377,2378],{"name":2374,"slug":2375,"type":15},"API Development","api-development",{"name":2300,"slug":33,"type":15},{"name":9,"slug":8,"type":15},{"name":20,"slug":21,"type":15},"2026-07-18T05:14:16.988376",{"slug":2381,"name":2381,"fn":2382,"description":2383,"org":2384,"tags":2385,"stars":25,"repoUrl":26,"updatedAt":2394},"azure-ai-vision-imageanalysis-py","analyze images with Azure AI Vision","Azure AI Vision Image Analysis SDK for captions, tags, objects, OCR, people detection, and smart cropping. Use for computer vision and image understanding tasks.\nTriggers: \"image analysis\", \"computer vision\", \"OCR\", \"object detection\", \"ImageAnalysisClient\", \"image caption\".\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[2386,2387,2390,2393],{"name":2300,"slug":33,"type":15},{"name":2388,"slug":2389,"type":15},"Computer Vision","computer-vision",{"name":2391,"slug":2392,"type":15},"Images","images",{"name":20,"slug":21,"type":15},"2026-07-18T05:14:18.007737",{"slug":2396,"name":2396,"fn":2397,"description":2398,"org":2399,"tags":2400,"stars":25,"repoUrl":26,"updatedAt":2409},"azure-appconfiguration-java","manage configuration with Azure App Configuration","Azure App Configuration SDK for Java. Centralized application configuration management with key-value settings, feature flags, and snapshots.\nTriggers: \"ConfigurationClient java\", \"app configuration java\", \"feature flag java\", \"configuration setting java\", \"azure config java\".\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[2401,2402,2405,2408],{"name":2300,"slug":33,"type":15},{"name":2403,"slug":2404,"type":15},"Configuration","configuration",{"name":2406,"slug":2407,"type":15},"Feature Flags","feature-flags",{"name":2319,"slug":2320,"type":15},"2026-07-03T16:32:01.278468",{"slug":2411,"name":2411,"fn":2412,"description":2413,"org":2414,"tags":2415,"stars":25,"repoUrl":26,"updatedAt":2428},"azure-cosmos-rust","build applications with Azure Cosmos DB","Azure Cosmos DB library for Rust (NoSQL API). Document CRUD, containers, and globally distributed data.\nTriggers: \"cosmos db rust\", \"CosmosClient rust\", \"document crud rust\", \"NoSQL rust\", \"partition key rust\".\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[2416,2419,2422,2425],{"name":2417,"slug":2418,"type":15},"Cosmos DB","cosmos-db",{"name":2420,"slug":2421,"type":15},"Database","database",{"name":2423,"slug":2424,"type":15},"NoSQL","nosql",{"name":2426,"slug":2427,"type":15},"Rust","rust","2026-07-31T05:54:27.021432",{"slug":2430,"name":2430,"fn":2412,"description":2431,"org":2432,"tags":2433,"stars":25,"repoUrl":26,"updatedAt":2441},"azure-cosmos-ts","Azure Cosmos DB JavaScript\u002FTypeScript SDK (@azure\u002Fcosmos) for data plane operations. Use for CRUD operations on documents, queries, bulk operations, and container management. Triggers: \"Cosmos DB\", \"@azure\u002Fcosmos\", \"CosmosClient\", \"document CRUD\", \"NoSQL queries\", \"bulk operations\", \"partition key\", \"container.items\".\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[2434,2435,2436,2437,2438],{"name":2417,"slug":2418,"type":15},{"name":2420,"slug":2421,"type":15},{"name":9,"slug":8,"type":15},{"name":2423,"slug":2424,"type":15},{"name":2439,"slug":2440,"type":15},"TypeScript","typescript","2026-07-03T16:31:19.368382",{"slug":2443,"name":2443,"fn":2444,"description":2445,"org":2446,"tags":2447,"stars":25,"repoUrl":26,"updatedAt":2453},"azure-data-tables-java","build table storage applications with Java","Build table storage applications with Azure Tables SDK for Java. Use when working with Azure Table Storage or Cosmos DB Table API for NoSQL key-value data, schemaless storage, or structured data at scale.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[2448,2449,2450,2451,2452],{"name":2300,"slug":33,"type":15},{"name":2417,"slug":2418,"type":15},{"name":2420,"slug":2421,"type":15},{"name":2319,"slug":2320,"type":15},{"name":2423,"slug":2424,"type":15},"2026-05-13T06:14:17.582229",267,{"items":2456,"total":2510},[2457,2464,2473,2480,2489,2496,2503],{"slug":2289,"name":2289,"fn":2290,"description":2291,"org":2458,"tags":2459,"stars":25,"repoUrl":26,"updatedAt":2304},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[2460,2461,2462,2463],{"name":2295,"slug":2296,"type":15},{"name":2298,"slug":32,"type":15},{"name":2300,"slug":33,"type":15},{"name":2302,"slug":2303,"type":15},{"slug":2306,"name":2306,"fn":2307,"description":2308,"org":2465,"tags":2466,"stars":25,"repoUrl":26,"updatedAt":2325},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[2467,2468,2469,2470,2471,2472],{"name":2312,"slug":2313,"type":15},{"name":2300,"slug":33,"type":15},{"name":2316,"slug":2317,"type":15},{"name":2319,"slug":2320,"type":15},{"name":9,"slug":8,"type":15},{"name":2323,"slug":2324,"type":15},{"slug":2327,"name":2327,"fn":2328,"description":2329,"org":2474,"tags":2475,"stars":25,"repoUrl":26,"updatedAt":2340},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[2476,2477,2478,2479],{"name":2333,"slug":2334,"type":15},{"name":2300,"slug":33,"type":15},{"name":2319,"slug":2320,"type":15},{"name":2338,"slug":2339,"type":15},{"slug":2342,"name":2342,"fn":2343,"description":2344,"org":2481,"tags":2482,"stars":25,"repoUrl":26,"updatedAt":2355},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[2483,2484,2485,2486,2487,2488],{"name":2300,"slug":33,"type":15},{"name":2349,"slug":2350,"type":15},{"name":2302,"slug":2303,"type":15},{"name":9,"slug":8,"type":15},{"name":20,"slug":21,"type":15},{"name":2338,"slug":2339,"type":15},{"slug":2357,"name":2357,"fn":2358,"description":2359,"org":2490,"tags":2491,"stars":25,"repoUrl":26,"updatedAt":2366},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[2492,2493,2494,2495],{"name":2312,"slug":2313,"type":15},{"name":2300,"slug":33,"type":15},{"name":2302,"slug":2303,"type":15},{"name":20,"slug":21,"type":15},{"slug":2368,"name":2368,"fn":2369,"description":2370,"org":2497,"tags":2498,"stars":25,"repoUrl":26,"updatedAt":2379},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[2499,2500,2501,2502],{"name":2374,"slug":2375,"type":15},{"name":2300,"slug":33,"type":15},{"name":9,"slug":8,"type":15},{"name":20,"slug":21,"type":15},{"slug":2381,"name":2381,"fn":2382,"description":2383,"org":2504,"tags":2505,"stars":25,"repoUrl":26,"updatedAt":2394},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[2506,2507,2508,2509],{"name":2300,"slug":33,"type":15},{"name":2388,"slug":2389,"type":15},{"name":2391,"slug":2392,"type":15},{"name":20,"slug":21,"type":15},38]