brokenchapt3r/astralnexus/azure-mgmt-apimanagement-py
Claude Code and agent skill by brokenchapt3r/astralnexus
Trust tier 2
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
Azure API Management SDK for Python. Use for managing APIM services, APIs, products, subscriptions, and policies. Triggers: "azure-mgmt-apimanagement", "ApiManagementClient", "APIM", "API gateway", "API Management".
Install
npx vskill@latest install brokenchapt3r/astralnexus/azure-mgmt-apimanagement-pySKILL.md
The same SKILL.md was published earlier as brokenchapt3r/astralnexus/azure-mgmt-apimanagement-py.
Azure API Management SDK for Python
Manage Azure API Management services, APIs, products, and policies.
Installation
Environment Variables
Authentication & Lifecycle
🔑 Two rules apply to every code sample below:1. Prefer `DefaultAzureCredential`. It works locally (Azure CLI / VS Code / Developer CLI) and in Azure (managed identity, workload identity) with no code change. Avoid connection strings, account/API keys — they bypass Entra audit and rotation.- Local dev:DefaultAzureCredentialworks as-is.- Production: setAZURE_TOKEN_CREDENTIALS=prod(orAZURE_TOKEN_CREDENTIALS=<specific_credential>) to constrain the credential chain to production-safe credentials.2. Wrap every client in a context manager so HTTP transports, sockets, and token caches are released deterministically:- Sync:with <Client>(...) as client:- Async:async with <Client>(...) as client:andasync with DefaultAzureCredential() as credential:(fromazure.identity.aio)Snippets may abbreviate this setup, but production code should always follow both rules.
Create APIM Service
Import API from OpenAPI
Import API from URL
List APIs
Create Product
Add API to Product
Create Subscription
Set API Policy
Create Named Value (Secret)
Create Backend
Create User
Operation Groups
| Group | Purpose | |
|---|---|---|
api_management_service | APIM instance management | |
api | API operations | |
api_operation | API operation details | |
api_policy | API-level policies | |
product | Product management | |
product_api | Product-API associations | |
subscription | Subscription management | |
user | User management | |
named_value | Named values/secrets | |
backend | Backend services | |
certificate | Certificates | |
gateway | Self-hosted gateways |
Best Practices
- Pick sync OR async and stay consistent. Do not mix
azure.xxxsync clients withazure.xxx.aioasync clients in the same call path. Choose one mode per module. - Always use context managers for clients and async credentials. Wrap every client in
with Client(...) as client:(sync) orasync with Client(...) as client:(async). For asyncDefaultAzureCredentialfromazure.identity.aio, also useasync with credential:so tokens and transports are cleaned up. - Use named values for secrets and configuration
- Apply policies at appropriate scopes (global, product, API, operation)
- Use products to bundle APIs and manage access
- Enable Application Insights for monitoring
- Use backends to abstract backend services
- Version your APIs using APIM's versioning features
Reference Files
| File | Contents | |
|---|---|---|
| references/capabilities.md | Additional non-hero capabilities, operation-group coverage, and production checklists. | |
| references/non-hero-scenarios.md | Dedicated non-hero examples for secondary/advanced scenarios. |
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingsrc/AstralNexus/skills/vendor/microsoft/azure-mgmt-apimanagement-py/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/brokenchapt3r/astralnexus/azure-mgmt-apimanagement-py)