azure-mgmt-privatedns
Microsoft Azure Privatedns Management Client Library for Python
What it is and what it does
This is the Microsoft Azure SDK client library for managing private DNS zones within Azure. It provides programmatic control over private DNS resources—zones, record sets, and virtual network links—through the Azure Resource Manager API. The package wraps REST endpoints and exposes them as Python classes and methods, allowing you to create, update, delete, and query private DNS infrastructure as code.
The library depends on isodate for date handling, azure-mgmt-core for common Azure SDK patterns, and typing-extensions for type hints. It requires Python 3.10 or later and authentication via environment variables (AZURE_CLIENT_ID, AZURE_TENANT_ID, AZURE_CLIENT_SECRET, AZURE_SUBSCRIPTION_ID). Version 2.0.0 introduces breaking changes around model structure and method signatures, moving resource properties into nested objects and replacing positional parameters with keyword-only arguments.
Use it for:
- Provision and configure private DNS zones for Azure virtual networks in infrastructure-as-code workflows.
- Automate DNS record creation and updates (A, AAAA, CNAME, MX, PTR, SOA, SRV, TXT) for internal services.
- Link virtual networks to private DNS zones and manage registration and resolution policies programmatically.
- Query existing private DNS resources and their metadata (system_data, provisioning state) for auditing or monitoring.
- Integrate private DNS management into Azure deployment pipelines or multi-tenant provisioning systems.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Manages Azure Private DNS zones, record sets, and virtual network links via the Azure Resource Manager API.
Yes. The package is actively maintained, has no known vulnerabilities, uses a permissive MIT license, and is part of the official Microsoft Azure SDK. Install it if you need to manage private DNS zones in Azure from Python. Be aware that version 2.0.0 contains breaking changes; review migration guidance if upgrading from earlier versions.
Install
azure-mgmt-privatedns on PyPI
pip
pip install azure-mgmt-privatednsuv
uv add azure-mgmt-privatednspoetry
poetry add azure-mgmt-privatednsInstalling azure-mgmt-privatedns
Before you install
Low install friction with a pure-Python wheel. Actively maintained; released 16 days ago with recent commits. Requires Python 3.10+.
License in practice
MIT license permits commercial and private use with minimal restrictions.
Quickstart
pip install azure-mgmt-privatedns
from azure.mgmt.privatedns import PrivateDnsManagementClient
from azure.mgmt.core import DEFAULT_MANAGEMENT_CREDENTIALS
import os
sub_id = os.getenv("AZURE_SUBSCRIPTION_ID")
client = PrivateDnsManagementClient(credential=DEFAULT_MANAGEMENT_CREDENTIALS, subscription_id=sub_id)
Requires Python 3.10+. 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 version 2.0.0 breaking changes (hybrid models, method signature changes) affect existing codebases using earlier versions.
- Performance characteristics when managing large numbers of record sets or virtual network links.
- How to obtain and configure Azure credentials for authentication in different deployment environments.
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 — 16 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 5,847,216/month — #2,024 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: azure_mgmt_privatedns-2.0.0-py3-none-any.whl
Keywords: azure, azure sdk
Tags
More Internet packages
Botocore provides low-level, data-driven access…
permissive · top 100 on PyPI
aiobotocoreProvides an async client for AWS services using…
permissive · top 100 on PyPI
pydanticPydantic validates Python data structures…
permissive · top 100 on PyPI
filelockProvides a platform-independent file locking…
permissive · top 100 on PyPI
fastapiFastAPI is a Python web framework for building…
permissive · top 100 on PyPI
googleapis-common-protosProvides common Protocol Buffer message…
permissive · top 100 on PyPI
azure-mgmt-networkManages Azure network resources (virtual…
permissive · top 5,000 on PyPI
azure-mgmt-resourceProvides Python bindings to manage Azure…
permissive · top 1,000 on PyPI
azure-mgmt-dnsManages Azure DNS resources—zones, record sets,…
permissive · top 5,000 on PyPI
azure-mgmt-managementgroupsProvides a Python client library to manage…
permissive · top 5,000 on PyPI
azure-mgmt-domainregistrationManages Azure domain registrations…
permissive · top 5,000 on PyPI
azure-mgmt-webProvides programmatic management of Azure Web…
permissive · top 5,000 on PyPI
azure-mgmt-datafactoryManages Azure Data Factory resources—factories,…
permissive · top 5,000 on PyPI
azure-mgmt-cdnManages Azure CDN resources (profiles,…
permissive · top 5,000 on PyPI
azure-mgmt-resource-subscriptionsManages Azure subscriptions and related…
permissive · top 15,000 on PyPI
azure-mgmt-recoveryservicesProvides Python bindings to manage Azure…
permissive · top 5,000 on PyPI