skillfed

azure-mgmt-network

Microsoft Azure Network Management Client Library for Python

azure-mgmt-network v31.0.1 6.9M downloads/30d#1,811 on PyPI5,588
Permissive license MIT Active released

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-network

uv

uv add azure-mgmt-network

poetry

poetry add azure-mgmt-network

Installing 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

Development Status :: 5 - Production/StableProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14

Tags

azure network management pythonazure virtual network clientazure load balancer sdkazure firewall managementazure expressroute pythonazure network infrastructure apiazure networking sdk
azure-sdkcloud-infrastructureiac

More Networking packages

h11

h11 is a pure-Python HTTP/1.1 protocol…

permissive · top 100 on PyPI

psutil

psutil retrieves real-time information about…

permissive · top 1,000 on PyPI

pyOpenSSL

pyOpenSSL wraps OpenSSL's SSL/TLS functionality…

permissive · top 1,000 on PyPI

uvloop

uvloop is a drop-in replacement for Python's…

permissive · top 1,000 on PyPI

execnet

execnet lets you spawn and communicate with…

permissive · top 1,000 on PyPI

pyzmq

PyZMQ provides Python bindings for ZeroMQ…

permissive · top 1,000 on PyPI

azure-mgmt-botservice

Provides Python bindings to manage Azure Bot…

permissive · top 5,000 on PyPI

azure-mgmt-hybridcompute

Manages hybrid compute resources in Microsoft…

permissive · top 15,000 on PyPI

azure-mgmt-privatedns

Manages Azure Private DNS zones, record sets,…

permissive · top 5,000 on PyPI

azure-mgmt-resource

Provides Python bindings to manage Azure…

permissive · top 1,000 on PyPI

azure-mgmt-cdn

Manages Azure CDN resources (profiles,…

permissive · top 5,000 on PyPI

azure-mgmt-apimanagement

Provides Python client library for managing…

permissive · top 5,000 on PyPI

azure-core

Provides shared exceptions, HTTP utilities, and…

unclear · top 1,000 on PyPI

azure-mgmt-managementgroups

Provides a Python client library to manage…

permissive · top 5,000 on PyPI

azure-mgmt-frontdoor

Manages Azure Front Door resources—CDN, load…

permissive · top 15,000 on PyPI

azure-mgmt-datafactory

Manages Azure Data Factory resources—factories,…

permissive · top 5,000 on PyPI