What problem does it solve?
Managing Azure API Management (APIM) resources manually is error-prone and time-consuming when creating services, importing APIs, configuring policies, and managing products, subscriptions, and backends at scale. This Skill provides concrete Python SDK patterns and examples to automate those administrative tasks and reduce operational friction.
Core Features & Use Cases
- Provision and manage APIM instances: create, update, list, and delete API Management services with proper handling of long-running operations.
- API import and versioning: import OpenAPI specs from raw JSON or external URLs, create APIs, and manage operations and policies.
- Access control and monetization: create products, add APIs to products, manage subscriptions and regenerate keys.
- Configuration and secrets: create named values (secrets), backends, and apply XML policies at service, API, or operation scope.
- Use Case: Automate onboarding of an OpenAPI-backed service by importing the spec, creating an API, bundling it into a product, applying rate-limiting policy, and provisioning a subscription key.
Quick Start
Install azure-mgmt-apimanagement and azure-identity, set AZURE_SUBSCRIPTION_ID, and instantiate an ApiManagementClient with DefaultAzureCredential to begin automating APIM tasks.