--- id: azure-mgmt-compute version: "38.2.0" license: MIT license_treatment: permissive maintenance: active --- # azure-mgmt-compute — Microsoft Azure Compute Management Client Library for Python License: permissive · Maintenance: active · Downloads: 20.0M/mo ## What it is and what it does azure-mgmt-compute is the official Microsoft Azure SDK for Python that lets you programmatically manage compute infrastructure in Azure. It wraps the Azure Resource Manager REST API, exposing operations to create, update, delete, and query virtual machines, scale sets, disks, snapshots, galleries, and related resources. The package handles authentication via Microsoft Entra and provides strongly typed models for all Azure compute entities. You use it when you need to automate infrastructure provisioning, manage VM lifecycle at scale, or integrate Azure compute operations into Python applications. It requires Python 3.10 or later and depends on azure-mgmt-core for common SDK plumbing, isodate for date handling, and typing-extensions for type hints. The package is actively maintained, supports current Python versions, and carries no known vulnerabilities. Use it for: - Automate provisioning and teardown of virtual machines and scale sets in CI/CD pipelines or infrastructure-as-code workflows. - Build management dashboards or monitoring tools that query VM status, disk usage, and gallery metadata across Azure subscriptions. - Implement custom scaling policies or lifecycle hooks for application-driven VM orchestration. - Manage disk snapshots and immutability policies programmatically for backup and compliance automation. - Integrate Azure compute operations into multi-cloud or hybrid infrastructure management platforms. ## Worth the install? AI-flagged interpretation of the facts above — verify before relying. Provides Python bindings to manage Azure compute resources—virtual machines, scale sets, disks, galleries, and related infrastructure—through the Azure Resource Manager API. Yes. This is the official, actively maintained Azure compute SDK for Python. It has low install friction, permissive licensing, no known vulnerabilities, and broad platform support (Python 3.10–3.14). Install it if you need to manage Azure compute resources programmatically; it is the standard choice for that task. ## Install pip install azure-mgmt-compute uv add azure-mgmt-compute poetry add azure-mgmt-compute ## Installing azure-mgmt-compute Before you install: Low friction: pure Python wheel with only three lightweight runtime dependencies (isodate, azure-mgmt-core, typing-extensions). Actively maintained—latest release 25 days old, repository last committed 2026-08-14, no archived status. License in practice: MIT license (permissive): you may use, modify, and distribute this package freely in commercial and private projects with minimal restrictions. Quickstart: pip install azure-mgmt-compute from azure.mgmt.compute import ComputeManagementClient from azure.identity import DefaultAzureCredential import os sub_id = os.getenv("AZURE_SUBSCRIPTION_ID") client = ComputeManagementClient(credential=DefaultAzureCredential(), subscription_id=sub_id) Requires Python 3.10 or later. Requires Azure subscription and environment variables AZURE_CLIENT_ID, AZURE_TENANT_ID, AZURE_CLIENT_SECRET, and AZURE_SUBSCRIPTION_ID to be set for authentication. Verify before relying: - Whether the package supports all Azure compute resource types your use case requires (e.g., interconnect blocks, lifecycle hooks, immutability policies added in recent versions). - Performance characteristics and rate-limiting behavior when managing large numbers of resources or bulk operations. - Compatibility with authentication methods beyond Microsoft Entra token authentication. ## Package facts - License: MIT (permissive) - Python support: supports_current - Install friction: low - Maintenance: active - Downloads: 20.0M/month (top 5,000 on PyPI) - Known vulnerabilities: none known ## Tags azure compute management, azure vm api python, azure virtual machine sdk, azure resource manager compute, azure infrastructure as code, azure scale sets management, azure disk and snapshot api, cloud-infrastructure, azure-sdk, infrastructure-automation [View on SkillFed](https://skillfed.io/packages/azure-mgmt-compute) · [View on PyPI](https://pypi.org/project/azure-mgmt-compute/)