azure-mgmt-sql
Microsoft Azure Sql Management Client Library for Python
Decision gist · record as of 2026-08-14
Yes. The package is actively maintained, has no known vulnerabilities, low install friction, and is the official Microsoft client for Azure SQL management. Install it if you need to programmatically manage Azure SQL resources; skip it if you only use the Azure Portal or CLI for SQL operations.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.10+; Azure subscription and environment variables (AZURE_CLIENT_ID, AZURE_TENANT_ID, AZURE_CLIENT_SECRET, AZURE_SUBSCRIPTION_ID) must be configured for authentication.
- Low install friction; pure Python wheel with three lightweight runtime dependencies (isodate, azure-mgmt-core, typing-extensions).
- Actively maintained with recent release (44 days old) and ongoing repository activity.
License · maintenance · safety
MIT (permissive) — MIT license permits commercial and private use with minimal restrictions; suitable for most deployment contexts.
last release 2026-07-01 (44 days) · last repo commit 2026-08-14 · 5,588 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 8,095,534 downloads/mo, #1,666 on PyPI
Alternatives
Verify before relying
pip install azure-mgmt-sql
from azure.mgmt.sql import SqlManagementClient
import os
sub_id = os.getenv("AZURE_SUBSCRIPTION_ID")
client = SqlManagementClient(credential=DefaultAzureCredential(), subscription_id=sub_id)- Whether the package supports all Azure SQL resource types or if some operations require separate SDKs.
- Performance characteristics when managing large numbers of resources or complex multi-region deployments.
- Backward compatibility guarantees between major versions given the 4.0.0 release.
- Authentication setup requirements beyond environment variable configuration.
What it is and what it does
azure-mgmt-sql is the official Azure SDK client library for managing SQL resources in Microsoft Azure. It exposes a large API surface covering databases, servers, elastic pools, failover groups, vulnerability assessments, and related infrastructure through the SqlManagementClient class. The package handles authentication via Microsoft Entra and abstracts the underlying REST API calls.
Typically used in infrastructure-as-code workflows, CI/CD pipelines, and automation scripts where you need to create, configure, monitor, or delete Azure SQL resources programmatically. Version 4.0.0 adds support for new resource types (distributed availability groups, IPv6 firewall rules, managed instance DTCs, and others) and extends existing models with system metadata and identity properties. The package requires Python 3.10+ and depends on azure-mgmt-core for common SDK patterns and isodate for date/time handling.
Use it for
- Automate provisioning of Azure SQL databases and servers in infrastructure-as-code deployments.
- Build CI/CD pipelines that create test databases on demand and clean them up after test runs.
- Manage firewall rules, elastic pools, and failover groups across multiple Azure SQL instances.
- Query and configure vulnerability assessment baselines and security settings at scale.
- Monitor and update database encryption protectors and advanced threat protection policies.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
The package is actively maintained, has no known vulnerabilities, low install friction, and is the official Microsoft client for Azure SQL management. Install it if you need to programmatically manage Azure SQL resources; skip it if you only use the Azure Portal or CLI for SQL operations.
Install
azure-mgmt-sql on PyPI
Before you install
Low install friction; pure Python wheel with three lightweight runtime dependencies (isodate, azure-mgmt-core, typing-extensions). Actively maintained with recent release (44 days old) and ongoing repository activity.
Requires Python 3.10+; Azure subscription and environment variables (AZURE_CLIENT_ID, AZURE_TENANT_ID, AZURE_CLIENT_SECRET, AZURE_SUBSCRIPTION_ID) must be configured for authentication.
License in practice
MIT license permits commercial and private use with minimal restrictions; suitable for most deployment contexts.
Quickstart
pip install azure-mgmt-sql
from azure.mgmt.sql import SqlManagementClient
import os
sub_id = os.getenv("AZURE_SUBSCRIPTION_ID")
client = SqlManagementClient(credential=DefaultAzureCredential(), subscription_id=sub_id)
Verify before relying
- Whether the package supports all Azure SQL resource types or if some operations require separate SDKs.
- Performance characteristics when managing large numbers of resources or complex multi-region deployments.
- Backward compatibility guarantees between major versions given the 4.0.0 release.
- Authentication setup requirements beyond environment variable configuration.
Package facts
| License | MIT permissive |
| Python support | Supports the current Python release >=3.10 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 3 packagesisodateazure-mgmt-coretyping-extensions |
| Maintenance | Actively maintained 44 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 8,095,534 / month, #1,666 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | 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 |
Evidence: azure_mgmt_sql-4.0.0-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “azure sql management client”
- azure-mgmt-sqlProvides programmatic management of Azure SQL resources—databases,…
- azure-mgmt-sqlvirtualmachineManages SQL Server virtual machines in Microsoft Azure, providing a…
- azure-mgmt-synapseProvides Python client library for programmatically managing Azure…
Give your agent the search over MCP, or paste the wish link into any chat.
More Database packages
psycopg2-binary is a PostgreSQL database adapter for Python that implements the DB API 2.0 specification, enabling Python applications to connect to and query PostgreSQL databases with thread-safe concurrent operations.
Python client library for connecting to and executing commands against Redis key-value stores, supporting both synchronous and asynchronous operations.
Install it if your application needs to interact with Redis; the only prerequisite is a running Redis server instance.
YDB Python SDK is the official client library for connecting to and querying YDB databases from Python applications.
Install it if you need to connect Python applications to YDB databases.
Connects Python applications to Snowflake data warehouses using the DB API 2.0 specification, enabling SQL queries, data transfers, and warehouse operations.
sqlparse tokenizes SQL text into a tree of statements, clauses, and expressions, and provides functions to split scripts, format queries, and inspect parsed tokens without validating dialect or syntax.
Install it if you need to manipulate, format, or analyze SQL text programmatically.
Provides base adapter protocols and shared functionality that database adapters use to integrate with dbt-core, handling connections, dialect translation, relation caching, and core interface management.
See also azure-mgmt-cosmosdb · azure-mgmt-sqlvirtualmachine · rockset · azure-mgmt-mysqlflexibleservers · azure-mgmt-datamigration · azure-cli-sql · azure-mgmt-web · azure-mgmt-redisenterprise · azure-mgmt-resource · azure-mgmt-resource-deployments