azure-mgmt-containerservice
Microsoft Azure Containerservice Management Client Library for Python
What it is and what it does
This is the official Microsoft Azure SDK for managing Azure Container Service (primarily Azure Kubernetes Service / AKS) resources from Python. It wraps the Azure Resource Manager API, allowing you to programmatically create, update, delete, and inspect AKS clusters, agent pools, and related networking and security configurations. The package depends on isodate for date handling, azure-mgmt-core for common Azure SDK patterns, and typing-extensions for type hints.
You use it by instantiating a ContainerServiceClient with Azure credentials and then calling operation groups to manage cluster lifecycle, scaling, upgrades, and monitoring. It requires Python 3.10 or later and is actively maintained as part of the broader Azure SDK for Python ecosystem.
Use it for:
- Automate AKS cluster provisioning and teardown in CI/CD pipelines or infrastructure-as-code workflows.
- Programmatically scale agent pools or update cluster configurations in response to application demand.
- Integrate cluster management into custom Python tools or dashboards for multi-cluster operations.
- Retrieve cluster status, upgrade profiles, and node metrics for monitoring or compliance auditing.
- Manage identity bindings, maintenance windows, and security profiles across multiple AKS deployments.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Provides Python bindings to manage Azure Container Service resources (AKS clusters, agent pools, and related infrastructure) via the Azure Resource Manager API.
Yes. This is the official, actively maintained Azure SDK for container service management in Python. Install it if you need to manage AKS clusters programmatically. The low install friction, permissive license, recent release cycle, and zero known vulnerabilities make it a reliable choice for Azure-native infrastructure automation.
Install
azure-mgmt-containerservice on PyPI
pip
pip install azure-mgmt-containerserviceuv
uv add azure-mgmt-containerservicepoetry
poetry add azure-mgmt-containerserviceInstalling azure-mgmt-containerservice
Before you install
Low friction install with three lightweight runtime dependencies. Actively maintained with a release 21 days old; repository shows recent commits and substantial community engagement (5588 stars).
License in practice
MIT license permits commercial use, modification, and distribution with minimal restrictions—suitable for most projects.
Quickstart
pip install azure-mgmt-containerservice
from azure.mgmt.containerservice import ContainerServiceClient
from azure.identity import DefaultAzureCredential
import os
sub_id = os.getenv("AZURE_SUBSCRIPTION_ID")
client = ContainerServiceClient(credential=DefaultAzureCredential(), subscription_id=sub_id)
Requires Python 3.10 or later and Azure credentials configured via environment variables (AZURE_CLIENT_ID, AZURE_TENANT_ID, AZURE_CLIENT_SECRET, AZURE_SUBSCRIPTION_ID).
Verify before relying
- Exact scope of container service operations available (e.g., cluster CRUD, node pool management, monitoring integration) beyond what the release notes enumerate.
- Whether all operation groups mentioned in the 41.3.0b1 release (e.g., load_balancers, mesh_memberships, jwt_authenticators) are stable in 41.5.0 or still in beta.
- Whether azure-identity is a required runtime dependency or only recommended for authentication.
Package facts
| License | MIT (permissive) |
| Python support | supports the current Python release (>=3.10) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 3 — isodate, azure-mgmt-core, typing-extensions |
| Maintenance | actively maintained — 21 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 10,762,051/month — #1,436 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: azure_mgmt_containerservice-41.5.0-py3-none-any.whl
Keywords: azure, azure sdk
Tags
More Distributed Computing packages
gRPC Python is an HTTP/2-based RPC framework…
permissive · top 100 on PyPI
execnetexecnet lets you spawn and communicate with…
permissive · top 1,000 on PyPI
cloudpickleCloudpickle extends Python's standard pickle…
permissive · top 1,000 on PyPI
smart-openProvides a unified, open()-compatible Python…
permissive · top 1,000 on PyPI
portalockerPortalocker provides cross-platform file…
permissive · top 1,000 on PyPI
rayRay is a distributed computing framework that…
permissive · top 1,000 on PyPI
azure-mgmt-resource-deploymentsManages Azure resource deployments…
permissive · top 5,000 on PyPI
azure-mgmt-resourceProvides Python bindings to manage Azure…
permissive · top 1,000 on PyPI
azure-mgmt-managedservicesProvides Python client library for managing…
unclear · top 15,000 on PyPI
azure-mgmt-servicefabricmanagedclustersManages Azure Service Fabric Managed Clusters…
unclear · top 5,000 on PyPI
azure-mgmt-computeProvides Python bindings to manage Azure…
permissive · top 5,000 on PyPI
azure-mgmt-apimanagementProvides Python client library for managing…
permissive · top 5,000 on PyPI
azure-mgmt-managementpartnerProvides a Python client library for managing…
unclear · top 5,000 on PyPI
azure-mgmt-containerregistrytasksProvides Python client library for managing…
unclear · top 5,000 on PyPI
azure-mgmt-storageManages Azure Storage accounts, containers,…
permissive · top 5,000 on PyPI
azure-mgmt-containerregistryManages Azure Container Registry…
unclear · top 5,000 on PyPI