azure-mgmt-desktopvirtualization
Microsoft Azure Desktop Virtualization Management Client Library for Python
What it is and what it does
This is the official Microsoft Azure SDK for managing Desktop Virtualization resources in Python. It provides a client library (DesktopVirtualizationMgmtClient) that wraps Azure's control-plane API for host pools, application groups, workspaces, scaling plans, and session hosts. You use it to programmatically create, read, update, and delete these resources within an Azure subscription.
The package depends on azure-common and azure-mgmt-core for shared Azure SDK infrastructure, plus isodate and typing-extensions for date handling and type hints. Version 2.0.0 added app-attach package management and private endpoint support. The library is production-stable, actively maintained, and supports Python 3.8 and later.
Use it for:
- Automate provisioning and configuration of Azure Virtual Desktop host pools and application groups as part of infrastructure-as-code workflows.
- Build management dashboards or monitoring tools that query session host status, workspace properties, and scaling plan metrics.
- Implement custom scaling logic by reading and updating scaling plan configurations programmatically.
- Manage app-attach packages and their deployment to host pools in bulk operations.
- Integrate Azure Virtual Desktop resource management into CI/CD pipelines for environment setup and teardown.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Manages Azure Desktop Virtualization resources (host pools, application groups, workspaces, scaling plans) via Python, providing a client library for Azure control-plane operations.
Yes. This is the official, actively maintained Azure SDK for Desktop Virtualization management. Install it if you need to manage Azure Virtual Desktop resources programmatically—it has low friction, permissive licensing, no known vulnerabilities, and production-stable status. Prerequisite: Python 3.8+, Azure subscription, and proper credential configuration.
Install
azure-mgmt-desktopvirtualization on PyPI
pip
pip install azure-mgmt-desktopvirtualizationuv
uv add azure-mgmt-desktopvirtualizationpoetry
poetry add azure-mgmt-desktopvirtualizationInstalling azure-mgmt-desktopvirtualization
Before you install
Low install friction with four lightweight runtime dependencies. Actively maintained with recent releases; repository shows 5588 stars and last commit on 2026-08-14. Supports Python 3.8 through 3.12.
License in practice
MIT License (permissive) allows commercial and private use with minimal restrictions—suitable for most production scenarios.
Quickstart
pip install azure-mgmt-desktopvirtualization
from azure.mgmt.desktopvirtualization import DesktopVirtualizationMgmtClient
from azure.common import AzureHttpError
import os
sub_id = os.getenv("AZURE_SUBSCRIPTION_ID")
client = DesktopVirtualizationMgmtClient(
credential=credential,
subscription_id=sub_id
)
Requires Python 3.8+, Azure subscription, and Azure Active Directory credentials configured via environment variables (AZURE_CLIENT_ID, AZURE_TENANT_ID, AZURE_CLIENT_SECRET, AZURE_SUBSCRIPTION_ID).
Verify before relying
- Whether the operation groups added in 2.0.0 (app_attach_package, app_attach_package_info) are fully documented with usage examples.
- Performance characteristics when managing large numbers of resources or concurrent operations.
- Which credential authentication methods are supported beyond the default token-based flow.
Package facts
| License | MIT License (permissive) |
| Python support | supports the current Python release (>=3.8) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 4 — isodate, typing-extensions, azure-common, azure-mgmt-core |
| Maintenance | actively maintained — 689 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 123,407/month — #11,909 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: azure_mgmt_desktopvirtualization-2.0.0-py3-none-any.whl
Keywords: azure, azure sdk
Tags
More Software Development packages
Provides backported and experimental type hints…
permissive · top 100 on PyPI
numpyNumPy provides an N-dimensional array object…
permissive · top 100 on PyPI
fastapiFastAPI is a Python web framework for building…
permissive · top 100 on PyPI
annotated-docProvides a way to document function parameters,…
permissive · top 100 on PyPI
typerTyper builds command-line applications from…
permissive · top 1,000 on PyPI
distlibDistlib provides low-level packaging utilities…
permissive · top 1,000 on PyPI
azure-mgmt-managementpartnerProvides a Python client library for managing…
unclear · top 5,000 on PyPI
azure-mgmt-resource-deploymentsManages Azure resource deployments…
permissive · top 5,000 on PyPI
azure-mgmt-managedservicesProvides Python client library for managing…
unclear · top 15,000 on PyPI
libvirt-pythonProvides Python bindings to the libvirt…
copyleft · top 15,000 on PyPI
azure-mgmt-resourceProvides Python bindings to manage Azure…
permissive · top 1,000 on PyPI
azure-mgmt-webProvides programmatic management of Azure Web…
permissive · top 5,000 on PyPI
azure-mgmt-sqlvirtualmachineManages SQL Server virtual machines in…
permissive · top 5,000 on PyPI
azure-mgmt-computeProvides Python bindings to manage Azure…
permissive · top 5,000 on PyPI
azure-mgmt-batchProvides a Python client library for managing…
unclear · top 5,000 on PyPI
azure-mgmt-resource-subscriptionsManages Azure subscriptions and related…
permissive · top 15,000 on PyPI