azure-mgmt-network
Microsoft Azure Network Management Client Library for Python
What it is and what it does
This is Microsoft's official Python client library for managing Azure network infrastructure. It provides programmatic access to create, read, update, and delete virtual networks, subnets, network interfaces, load balancers, firewalls, ExpressRoute circuits, and related networking resources within Azure subscriptions. The library wraps Azure's REST APIs and handles authentication via Microsoft Entra tokens, with dependencies on isodate, azure-mgmt-core, and typing-extensions.
Version 31.0.1 is production-stable and actively maintained, supporting Python 3.10 through 3.14. Recent releases added new operation groups (commits, connection_policies, interconnect_groups, subgroups) and models for advanced networking scenarios like DDoS protection, ExpressRoute failover testing, and managed HSM integration. Breaking changes in 31.0.0 introduced hybrid models and modified method signatures for IPAM and network group operations.
Use it for:
- Automate provisioning and configuration of Azure virtual networks, subnets, and network security groups in infrastructure-as-code pipelines.
- Manage load balancer rules, backend pools, and health probes programmatically across multiple Azure subscriptions.
- Configure ExpressRoute circuits and gateways for hybrid cloud connectivity and failover testing.
- Implement DDoS protection policies and firewall rules at scale across enterprise Azure deployments.
- Query and monitor network resource state, including connection monitors and traffic analytics.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Manages Azure network resources (virtual networks, load balancers, firewalls, ExpressRoute circuits, and related infrastructure) via Python client library backed by Azure REST APIs.
Yes. This is the official, actively maintained Azure network management client for Python. Install it if you need to manage Azure networking resources programmatically. Low install friction, no security vulnerabilities, and MIT licensing make it a straightforward choice for Azure-native projects. Verify that your codebase can accommodate the breaking changes in version 31.0.0 (hybrid models, method signature changes) if upgrading from earlier versions.
Install
azure-mgmt-network on PyPI
pip
pip install azure-mgmt-networkuv
uv add azure-mgmt-networkpoetry
poetry add azure-mgmt-networkInstalling azure-mgmt-network
Before you install
Low friction install with three lightweight runtime dependencies (isodate, azure-mgmt-core, typing-extensions). Actively maintained as of 2026-08-14 with recent release 31.0.1 on 2026-07-02. Requires Python 3.10 or later; no compiled dependencies.
License in practice
MIT license permits commercial and private use with minimal restrictions. No copyleft obligations.
Quickstart
pip install azure-mgmt-network
from azure.mgmt.network import NetworkManagementClient
from azure.mgmt.core import DefaultAzureCredential
import os
sub_id = os.getenv("AZURE_SUBSCRIPTION_ID")
client = NetworkManagementClient(credential=DefaultAzureCredential(), subscription_id=sub_id)
Requires Python 3.10+. Authentication requires environment variables AZURE_CLIENT_ID, AZURE_TENANT_ID, AZURE_CLIENT_SECRET, and AZURE_SUBSCRIPTION_ID to be set.
Verify before relying
- Whether hybrid model migration (mentioned in breaking changes) affects existing codebases using earlier versions.
- Performance characteristics when managing large numbers of network resources.
- Specific Azure regions or cloud environments supported by this client version.
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 — 43 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 6,916,363/month — #1,811 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: azure_mgmt_network-31.0.1-py3-none-any.whl
Keywords: azure, azure sdk
Tags
More Networking packages
h11 is a pure-Python HTTP/1.1 protocol…
permissive · top 100 on PyPI
psutilpsutil retrieves real-time information about…
permissive · top 1,000 on PyPI
pyOpenSSLpyOpenSSL wraps OpenSSL's SSL/TLS functionality…
permissive · top 1,000 on PyPI
uvloopuvloop is a drop-in replacement for Python's…
permissive · top 1,000 on PyPI
execnetexecnet lets you spawn and communicate with…
permissive · top 1,000 on PyPI
pyzmqPyZMQ provides Python bindings for ZeroMQ…
permissive · top 1,000 on PyPI
azure-mgmt-botserviceProvides Python bindings to manage Azure Bot…
permissive · top 5,000 on PyPI
azure-mgmt-hybridcomputeManages hybrid compute resources in Microsoft…
permissive · top 15,000 on PyPI
azure-mgmt-privatednsManages Azure Private DNS zones, record sets,…
permissive · top 5,000 on PyPI
azure-mgmt-resourceProvides Python bindings to manage Azure…
permissive · top 1,000 on PyPI
azure-mgmt-cdnManages Azure CDN resources (profiles,…
permissive · top 5,000 on PyPI
azure-mgmt-apimanagementProvides Python client library for managing…
permissive · top 5,000 on PyPI
azure-coreProvides shared exceptions, HTTP utilities, and…
unclear · top 1,000 on PyPI
azure-mgmt-managementgroupsProvides a Python client library to manage…
permissive · top 5,000 on PyPI
azure-mgmt-frontdoorManages Azure Front Door resources—CDN, load…
permissive · top 15,000 on PyPI
azure-mgmt-datafactoryManages Azure Data Factory resources—factories,…
permissive · top 5,000 on PyPI