azure-mgmt-sqlvirtualmachine
Microsoft Azure Sqlvirtualmachine Management Client Library for Python
What it is and what it does
This is the official Microsoft Azure SDK client library for managing SQL Server virtual machines deployed in Azure. It wraps the Azure Resource Manager REST API, allowing Python developers to programmatically provision, configure, and monitor SQL VM resources without direct HTTP calls. The library handles authentication via Microsoft Entra and manages the full lifecycle of SQL VM objects—from creation through patching, backup, and troubleshooting settings.
The package depends on isodate, azure-mgmt-core, and typing-extensions. It requires Python 3.10 or later and has reached general availability (version 1.0.0) after a beta period. Recent releases introduced hybrid model support and expanded operation groups for assessment and troubleshooting, making it suitable for infrastructure-as-code and automated SQL Server deployment workflows in Azure environments.
Use it for:
- Automate provisioning and configuration of SQL Server virtual machines in Azure at scale.
- Manage auto-patching, auto-backup, and key vault credential settings for SQL VMs programmatically.
- Integrate SQL VM lifecycle management into CI/CD pipelines or infrastructure-as-code tools.
- Query and monitor SQL VM provisioning state, licensing, and troubleshooting status.
- Configure availability groups and cluster settings for high-availability SQL deployments on Azure.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Manages SQL Server virtual machines in Microsoft Azure, providing a Python client to create, configure, and monitor SQL VM resources via the Azure Resource Manager API.
Yes. This is the official, actively maintained Azure SDK for SQL VM management. Install it if you need to automate SQL Server infrastructure on Azure from Python. Low install friction, permissive MIT license, recent GA release, and zero known vulnerabilities make it a safe choice. Prerequisite: Azure subscription and proper credential configuration.
Install
azure-mgmt-sqlvirtualmachine on PyPI
pip
pip install azure-mgmt-sqlvirtualmachineuv
uv add azure-mgmt-sqlvirtualmachinepoetry
poetry add azure-mgmt-sqlvirtualmachineInstalling azure-mgmt-sqlvirtualmachine
Before you install
Low friction: pure Python wheel with minimal runtime dependencies (isodate, azure-mgmt-core, typing-extensions). Active maintenance with recent GA release (1.0.0 on 2026-07-20, 25 days old). Requires Python 3.10+.
License in practice
MIT license permits commercial and private use with minimal restrictions—standard permissive terms suitable for most projects.
Quickstart
pip install azure-mgmt-sqlvirtualmachine
from azure.mgmt.sqlvirtualmachine import SqlVirtualMachineManagementClient
import os
sub_id = os.getenv("AZURE_SUBSCRIPTION_ID")
client = SqlVirtualMachineManagementClient(
credential=credential,
subscription_id=sub_id
)
Requires Python 3.10+. Requires Azure subscription and environment variables (AZURE_CLIENT_ID, AZURE_TENANT_ID, AZURE_CLIENT_SECRET, AZURE_SUBSCRIPTION_ID) for authentication.
Verify before relying
- Whether all operations support async/await patterns or only synchronous calls.
- Performance characteristics and rate limits when managing large numbers of SQL VMs.
- Complete list of available operations beyond those mentioned in release notes.
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 — 25 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 5,129,548/month — #2,164 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: azure_mgmt_sqlvirtualmachine-1.0.0-py3-none-any.whl
Keywords: azure, azure sdk
Tags
More Database packages
psycopg2-binary is a PostgreSQL database…
copyleft · top 1,000 on PyPI
redisPython client library for connecting to and…
permissive · top 1,000 on PyPI
ydbYDB Python SDK is the official client library…
permissive · top 1,000 on PyPI
snowflake-connector-pythonConnects Python applications to Snowflake data…
permissive · top 1,000 on PyPI
sqlparsesqlparse tokenizes SQL text into a tree of…
permissive · top 1,000 on PyPI
dbt-adaptersProvides base adapter protocols and shared…
permissive · top 1,000 on PyPI
azure-mgmt-managementpartnerProvides a Python client library for managing…
unclear · top 5,000 on PyPI
azure-mgmt-sqlProvides programmatic management of Azure SQL…
permissive · top 5,000 on PyPI
azure-mgmt-managedservicesProvides Python client library for managing…
unclear · top 15,000 on PyPI
azure-mgmt-webProvides programmatic management of Azure Web…
permissive · top 5,000 on PyPI
azure-mgmt-resourceProvides Python bindings to manage Azure…
permissive · top 1,000 on PyPI
azure-mgmt-mysqlflexibleserversProvides a Python client library for managing…
unclear · top 5,000 on PyPI
azure-mgmt-imagebuilderManages Azure VM image templates and builds…
unclear · top 5,000 on PyPI
azure-mgmt-desktopvirtualizationManages Azure Desktop Virtualization resources…
permissive · top 15,000 on PyPI
azure-mgmt-datamigrationManages Azure Data Migration resources and…
permissive · top 5,000 on PyPI
azure-mgmt-rdbmsProvides programmatic management of Azure…
unclear · top 5,000 on PyPI