azure-cli-sql
Microsoft Azure Command-Line Tools SQL Command Module
What it is and what it does
This package is a command module for the Azure CLI that extends the `az` command-line tool with SQL database and server management capabilities. It wraps the Azure SQL management APIs (via azure-mgmt-sql and azure-mgmt-storage) to provide CLI commands for creating, updating, listing, and deleting SQL servers, databases, managed instances, elastic pools, and data warehouses.
The module is designed for developers and system administrators who manage Azure SQL resources from the command line. It integrates directly into the Azure CLI ecosystem and depends on azure-cli-core for command registration and execution. The package has a low install footprint (pure Python wheel) and no external system dependencies, but it is tightly coupled to the Azure CLI framework and cannot be used as a standalone library.
Use it for:
- Automate SQL server and database provisioning in Azure infrastructure-as-code scripts.
- Manage elastic pools and database scaling from CI/CD pipelines without writing custom Python code.
- List and restore deleted databases or manage in-progress database operations via CLI.
- Configure SQL server firewall rules, virtual network rules, and connection policies from the command line.
- Create and manage Azure SQL managed instances and managed databases in bulk operations.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
A command-line module for the Azure CLI that provides SQL database and server management commands, including operations on managed instances, elastic pools, databases, and data warehouses.
Yes, if you use the Azure CLI and need to manage SQL resources from the command line. Install friction is low and the module integrates seamlessly into the `az` tool. However, note that the latest release dates to 2019 and targets Python 2.7–3.6; verify compatibility with your current Azure CLI version and Python environment before adopting. No known security vulnerabilities.
Install
azure-cli-sql on PyPI
pip
pip install azure-cli-sqluv
uv add azure-cli-sqlpoetry
poetry add azure-cli-sqlInstalling azure-cli-sql
Before you install
Low install friction with a pure-Python wheel distribution. The package is actively maintained with recent commits and depends on stable Azure SDK components (azure-cli-core, azure-mgmt-sql, azure-mgmt-storage), though the latest release dates to 2019 and the package targets older Python versions (2.7, 3.4–3.6).
License in practice
MIT license permits commercial and private use with minimal restrictions; you may use, modify, and distribute this package freely provided you include the license notice.
Quickstart
# Install as part of Azure CLI
pip install azure-cli-sql
# Use via Azure CLI (requires azure-cli-core)
az sql server list
az sql db create --resource-group mygroup --server myserver --name mydb
Requires Azure CLI (azure-cli-core) to be installed and configured; commands execute through the `az` CLI tool, not as a standalone Python library.
Verify before relying
- Whether this module is still actively maintained or has been superseded by newer Azure CLI versions.
- Compatibility with Python versions beyond 3.6 (classifiers list only up to 3.6).
- Current state of dependencies (azure-mgmt-sql, azure-mgmt-storage) and whether they support modern Azure features.
Package facts
| License | MIT (permissive) |
| Python support | not specified |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 5 — azure-cli-core, azure-mgmt-sql, azure-mgmt-storage, six, azure-cli-command-modules-nspkg |
| Maintenance | actively maintained — 2,614 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 118,250/month — #12,128 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: azure_cli_sql-2.2.5-py2.py3-none-any.whl
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-cli-appserviceProvides Azure CLI commands for managing App…
permissive · top 15,000 on PyPI
azure-cli-acrProvides the Azure CLI 'acr' command module for…
permissive · top 15,000 on PyPI
azure-mgmt-sqlProvides programmatic management of Azure SQL…
permissive · top 5,000 on PyPI
azure-cliAzure CLI is a command-line tool for managing…
permissive · top 5,000 on PyPI
az.cliExecutes Azure CLI commands from Python and…
permissive · top 15,000 on PyPI
azure-cli-coreProvides the core Python library and CLI…
permissive · top 5,000 on PyPI
azure-mgmt-sqlvirtualmachineManages SQL Server virtual machines in…
permissive · top 5,000 on PyPI
mssql-pythonA Python driver for connecting to and querying…
unclear · top 5,000 on PyPI
mssql-djangoDjango database backend that connects Django…
permissive · top 15,000 on PyPI
azure-mgmt-cosmosdbProvides programmatic management of Azure…
permissive · top 5,000 on PyPI