Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
The Azure MCP Server lets you manage Azure resources, including Azure SQL Database resources, using natural language prompts. This feature lets you quickly manage your database resources without remembering complex syntax.
Azure SQL Database is a fully managed platform as a service (PaaS) database engine that handles most of the database management functions such as upgrading, patching, backups, and monitoring without user involvement.
Note
The Azure MCP Server tools define parameters for data they need to complete tasks. Some of these parameters are specific to each tool and are documented below. Other parameters are global and shared by all tools. For more information, see Tool parameters.
Database: Create database
Create a new Azure SQL Database on an existing SQL Server. This command creates a database with configurable performance tiers, size limits, and other settings. Equivalent to 'az sql db create'.
Example prompts include:
- Create database: "Create a new SQL database named 'sales-data' in server 'prod-sql-server'"
- Specify tier: "Create a SQL database 'inventory' with Basic tier in server 'eastus-sql'"
- Resource group: "Create a new database called 'customer-info' on SQL server 'analytics-sql' in resource group 'data-services'"
Parameter | Required or optional | Description |
---|---|---|
Server | Required | The Azure SQL Server name. |
Database | Required | The Azure SQL Database name. |
SKU name | Optional | The SKU name for the database (for example, Basic, S0, P1, GP_Gen5_2). |
SKU tier | Optional | The SKU tier for the database (for example, Basic, Standard, Premium, GeneralPurpose). |
SKU capacity | Optional | The SKU capacity (DTU or vCore count) for the database. |
Collation | Optional | The collation for the database (for example, SQL_Latin1_General_CP1_CI_AS). |
Max size bytes | Optional | The maximum size of the database in bytes. |
Elastic pool name | Optional | The name of the elastic pool to assign the database to. |
Zone redundant | Optional | Whether the database should be zone redundant. |
Read scale | Optional | Read scale option for the database (Enabled or Disabled). |
Database: Delete database
Delete a SQL database.
Example prompts include:
- Delete database: "Delete the SQL database 'sales-data' from server 'prod-sql-server'"
- Remove from resource group: "Remove database 'inventory' from SQL server 'eastus-sql' in resource group 'data-services'"
- Delete by name: "Delete the database called 'customer-info' on server 'analytics-sql'"
Parameter | Required or optional | Description |
---|---|---|
Server | Required | The Azure SQL Server name. |
Database | Required | The Azure SQL Database name. |
Database: List databases
Lists all databases in your cloud resource with their configuration, status, SKU, and performance details. Use when you need to: view database inventory, check database status, compare database configurations, or find databases for management operations.
Example prompts include:
- List databases: "Show me all databases on my 'eastus-sql' server"
- Database inventory: "List databases in resource group 'data' and subscription 'corp-main'"
- Check database status: "What databases are currently active on my SQL server?"
- Database overview: "I need a quick overview of all databases hosted on our production SQL server for the upcoming team meeting"
- Database configurations: "Can you provide a detailed list of all databases on the 'analytics-sql' server, including their performance tiers, sizes, and current operational status?"
Parameter | Required or optional | Description |
---|---|---|
Server | Required | The name of the resource. |
Database: Rename database
Rename an existing Azure SQL Database to a new name within the same SQL server.
Example prompts include:
- Rename database: "Rename the SQL database 'sales-data' on server 'prod-sql-server' to 'sales-archive'"
- Rename with explicit server: "Rename my Azure SQL database 'inventory' to 'inventory-2025' on server 'eastus-sql'"
Parameter | Required or optional | Description |
---|---|---|
Server | Required | The Azure SQL Server name. |
Database | Required | The Azure SQL Database name. |
New database name | Required | The new name for the Azure SQL Database. |
Database: Show database details
Retrieves detailed information about a specific database. Use this command to check the configuration, performance tier, size, and other characteristics of your database.
Example prompts include:
- View database details: "Show me details for the 'inventory' database on my 'eastus-sql' server"
- Check database configuration: "Can you tell me the specifications and current state of my customer-db database in the prod-dbs resource group and finance subscription?"
- Database information: "Database details... financial-data... need info now"
- Check performance tier: "What service tier is my analytics database using? And is it properly sized for our workload?"
- Database properties: "I want to see all performance metrics, sizing options, and configuration settings for the orders database hosted on commerce-sql-01 in the west-europe region"
Parameter | Required or optional | Description |
---|---|---|
Server | Required | The name of the resource. |
Database | Required | The name of the database on the resource. |
Database: Update database
Update configuration settings for an existing Azure SQL Database.
Example prompts include:
- Update performance tier: "Update the performance tier of SQL database 'sales-data' on server 'prod-sql-server'"
- Scale database SKU: "Scale SQL database 'inventory' on server 'eastus-sql' to use S3 SKU"
Parameter | Required or optional | Description |
---|---|---|
Server | Required | The Azure SQL Server name. |
Database | Required | The Azure SQL Database name. |
SKU name | Optional | The SKU name for the database (for example, Basic, S0, P1, GP_Gen5_2). |
SKU tier | Optional | The SKU tier for the database (for example, Basic, Standard, Premium, GeneralPurpose). |
SKU capacity | Optional | The SKU capacity (DTU or vCore count) for the database. |
Collation | Optional | The collation for the database (for example, SQL_Latin1_General_CP1_CI_AS). |
Max size bytes | Optional | The maximum size of the database in bytes. |
Elastic pool name | Optional | The name of the elastic pool to assign the database to. |
Zone redundant | Optional | Whether the database should be zone redundant. |
Read scale | Optional | Read scale option for the database (Enabled or Disabled). |
Server: Create
Creates a new Azure SQL server in the specified resource group and ___location.
Example prompts include:
- Create SQL server: "Create a new Azure SQL server named 'prod-sql-server' in resource group 'data-services'"
- Specify admin user: "Create an Azure SQL server with name 'eastus-sql' in ___location 'East US' with admin user 'sqladmin'"
- Set up server in resource group: "Set up a new SQL server called 'analytics-sql' in my resource group 'analytics-group'"
Parameter | Required or optional | Description |
---|---|---|
Server | Required | The Azure SQL Server name. |
Administrator user | Required | The administrator login name for the SQL server. |
Administrator password | Required | The administrator password for the SQL server. |
Location | Required | The Azure region ___location where the SQL server is created. |
Version | Optional | The version of SQL Server to create (for example, '12.0'). |
Public network access | Optional | Whether public network access is enabled for the SQL server ('Enabled' or 'Disabled'). |
Server: Delete
Deletes an Azure SQL server and all of its databases from the specified resource group.
Example prompts include:
- Delete SQL server: "Delete the Azure SQL server 'prod-sql-server' from resource group 'data-services'"
- Remove from subscription: "Remove the SQL server 'test-sql-server' from my subscription"
- Permanent delete: "Delete SQL server 'analytics-sql' permanently"
Parameter | Required or optional | Description |
---|---|---|
Server | Required | The Azure SQL Server name. |
Force | Optional | Force delete the server without confirmation prompts. |
Server: List servers
Lists Azure SQL servers within a resource group.
Example prompts include:
- List SQL servers: "List all Azure SQL servers in resource group 'data-services'"
- Show all servers: "Show me every SQL server available in resource group 'analytics-group'"
Server: Show
Retrieves detailed information about an Azure SQL server including its configuration, status, and properties such as the fully qualified ___domain name, version, administrator login, and network access settings.
Example prompts include:
- Show server details: "Show me the details of Azure SQL server 'prod-sql-server' in resource group 'data-services'"
- Get configuration: "Get the configuration details for SQL server 'analytics-sql'"
- Display properties: "Display the properties of SQL server 'eastus-sql'"
Parameter | Required or optional | Description |
---|---|---|
Server | Required | The Azure SQL Server name. |
Server: List Microsoft Entra administrators
Lists Microsoft Entra ID administrators configured for a resource. Use this command to manage and audit identity-based access to your resource.
Example prompts include:
- Check admin users: "Show me all Microsoft Entra administrators for my 'prod-sql' server"
- Identity access: "List Microsoft Entra admins for SQL server 'finance-db' in resource group 'data' and subscription 'corp-main'"
- Security check: "Who has admin access to my SQL servers?"
- Administrator review: "Need to verify Entra ID admins on SQL server now"
- Access audit: "Could you please provide a comprehensive breakdown of all Microsoft Entra administrators assigned to my eastus-sql-02 server in the development environment for security compliance documentation?"
Parameter | Required or optional | Description |
---|---|---|
Server | Required | The name of the resource. |
Server: List firewall rules
Lists all firewall rules for a specific resource. Use this command to manage and review the network access settings for your resource.
Example prompts include:
- View firewall settings: "Show me all firewall rules for my 'prod-sql-server' in resource group 'data'"
- Check access controls: "Are there any firewall rules for my analytics-db SQL server in the eastus region?"
- Review security: "IP addresses... SQL server eastus-sql-01... security review"
- Network access: "I need to immediately identify all network access points and IP address ranges that have been granted permissions to connect to our production SQL server environment for the compliance audit happening tomorrow"
- Security audit: "List the firewall rules for our finance-db server in resource group accounting and subscription finance-prod"
Parameter | Required or optional | Description |
---|---|---|
Server | Required | The name of the resource. |
Server: Create firewall rule
Creates a firewall rule for a resource. Firewall rules control which IP addresses are allowed to connect to the resource. You can specify either a single IP address (by setting start and end IP to the same value) or a range of IP addresses.
Example prompts include:
- Add firewall rule: "Create a firewall rule named 'office-access' for my 'prod-sql' server allowing IP range 192.168.1.1 to 192.168.1.100"
- Set access range: "I need to set a firewall rule on my 'analytics-sql' server to allow access from the IP range 10.0.0.1 to 10.0.0.255"
Parameter | Required or optional | Description |
---|---|---|
Server | Required | The name of the resource. |
Firewall rule | Required | The name of the firewall rule. |
Start ip address | Required | The start IP address of the firewall rule range. |
End ip address | Required | The end IP address of the firewall rule range. |
Server: Delete firewall rule
Deletes a firewall rule from a resource. This operation removes the specified firewall rule, potentially restricting access for the IP addresses that were previously allowed by this rule. If the rule doesn't exist, no error is returned.
Example prompts include:
- Remove firewall rule: "Delete the firewall rule named 'office-access' from my 'prod-sql' server"
- Revoke access: "Revoke the firewall rule 'office-access' on my 'prod-sql' server"
- Delete access rule: "I need to delete the firewall rule named 'temp-access' from our 'test-sql' server to tighten security"
- Security update: "Please remove the firewall rule 'guest-access' from our development SQL server immediately to prevent unauthorized access"
- Access control: "Can you delete the firewall rule 'external-access' on our 'marketing-sql' server in the westus region?"
Parameter | Required or optional | Description |
---|---|---|
Server | Required | The name of the resource. |
Firewall rule | Required | The name of the firewall rule. |
Elastic pools: List elastic pools
Lists all elastic pools for a specific resource. Elastic pools are a resource allocation solution that lets you manage and scale multiple databases with varying resource demands.
Example prompts include:
- View resource pools: "Show me all elastic pools on my 'main-sql' server"
- Check elasticity: "Could you list any elastic pools we have running on our customer-db SQL server in the production environment?"
- Resource management: "Elastic pools... SQL server... need status report"
- Pool inventory: "I need a complete inventory of every single elastic pool deployed across all our SQL servers in the dev-subscription, including their DTU allocation, storage limits, and current database count"
- Database scaling: "What's the current configuration and available capacity in the analytics elastic pool on our main SQL server in resource group data-services?"
Parameter | Required or optional | Description |
---|---|---|
Server | Required | The name of the resource. |