From 898d6c361b2cb4679bef856fc6bea7d482348770 Mon Sep 17 00:00:00 2001 From: HarshCasper Date: Fri, 27 Feb 2026 16:32:26 +0530 Subject: [PATCH 1/5] add Azure SQL service doc --- src/content/docs/azure/services/sql.mdx | 215 +++++++++++++++++++++++- 1 file changed, 214 insertions(+), 1 deletion(-) diff --git a/src/content/docs/azure/services/sql.mdx b/src/content/docs/azure/services/sql.mdx index 6fc8d585..860e201a 100644 --- a/src/content/docs/azure/services/sql.mdx +++ b/src/content/docs/azure/services/sql.mdx @@ -1,11 +1,224 @@ --- title: "SQL" -description: API coverage for Microsoft.Sql in LocalStack for Azure. +description: Get started with Azure SQL in LocalStack for Azure. template: doc --- import AzureFeatureCoverage from "../../../../components/feature-coverage/AzureFeatureCoverage"; +## Introduction + +Azure SQL is a managed relational database service for building cloud-native applications with familiar SQL Server tooling. +It supports creating logical servers, provisioning databases, and configuring operational features such as firewall access and retention policies. +This makes it a common choice for transactional workloads and application backends. + +LocalStack for Azure lets you build and test Azure SQL workflows locally using the same CLI patterns you use in cloud environments. +The supported APIs are listed in the [API Coverage](#api-coverage) section. + +## Getting started + +This guide is designed for users new to Azure SQL and assumes basic knowledge of the Azure CLI and `azlocal`. + +Start by enabling interception so your `az` commands are routed to LocalStack: + +```bash +azlocal start_interception +``` + +The following example creates a SQL server, creates a database, configures firewall access, and manages retention and encryption settings. + +### Create a resource group + +Create a resource group to contain your SQL resources: + +```bash +az group create --name rg-sql-demo --location westeurope +``` + +```bash title="Output" +{ + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg-sql-demo", + "location": "westeurope", + "name": "rg-sql-demo", + "properties": { + "provisioningState": "Succeeded" + }, + ... +} +``` + +### Create and inspect a SQL server + +Create a logical SQL server to host your databases: + +```bash +az sql server create \ + --name sqlsrvdoc85 \ + --resource-group rg-sql-demo \ + --location westeurope \ + --admin-user lsadmin \ + --admin-password "LocalstackSqlPassw0rd" +``` + +```bash title="Output" +{ + "name": "UpsertLogicalServer", + "operation": "UpsertLogicalServer", + "status": "Succeeded", + ... +} +``` + +Get the SQL server details to verify it is ready: + +```bash +az sql server show --name sqlsrvdoc85 --resource-group rg-sql-demo +``` + +```bash title="Output" +{ + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg-sql-demo/providers/Microsoft.Sql/servers/sqlsrvdoc85", + "name": "sqlsrvdoc85", + "location": "westeurope", + "state": "Ready", + "publicNetworkAccess": "Enabled", + "type": "Microsoft.Sql/servers", + ... +} +``` + +### Create and query a database + +Create a database on the SQL server: + +```bash +az rest --method put \ + --url "http://management.localhost.localstack.cloud:4566/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg-sql-demo/providers/Microsoft.Sql/servers/sqlsrvdoc85/databases/sqldbdoc85?api-version=2021-11-01" \ + --headers "Content-Type=application/json" \ + --body '{"location":"westeurope"}' +``` + +```bash title="Output" +{ + "name": "CreateLogicalDatabase", + "operation": "CreateLogicalDatabase", + "startTime": "2026-02-27T10:11:48.1772187108+00:00", + "status": "InProgress" +} +``` + +List databases on the SQL server to confirm it was created: + +```bash +az rest --method get \ + --url "http://management.localhost.localstack.cloud:4566/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg-sql-demo/providers/Microsoft.Sql/servers/sqlsrvdoc85/databases?api-version=2021-11-01" +``` + +```bash title="Output" +{ + "value": [ + { + "name": "sqldbdoc85", + "type": "Microsoft.Sql/servers/databases", + "properties": { + "status": "Online", + ... + }, + ... + } + ] +} +``` + +### Add a firewall rule + +Create a firewall rule to allow client access: + +```bash +az sql server firewall-rule create \ + --resource-group rg-sql-demo \ + --server sqlsrvdoc85 \ + --name AllowLocal \ + --start-ip-address 0.0.0.0 \ + --end-ip-address 255.255.255.255 +``` + +```bash title="Output" +{ + "name": "AllowLocal", + "startIpAddress": "0.0.0.0", + "endIpAddress": "255.255.255.255", + "type": "Microsoft.Sql/servers/firewallRules", + ... +} +``` + +### Configure transparent data encryption + +Enable transparent data encryption on the database: + +```bash +az rest --method put \ + --url "http://management.localhost.localstack.cloud:4566/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg-sql-demo/providers/Microsoft.Sql/servers/sqlsrvdoc85/databases/sqldbdoc85/transparentDataEncryption/current?api-version=2021-11-01" \ + --headers "Content-Type=application/json" \ + --body '{"properties":{"status":"Enabled"}}' +``` + +```bash title="Output" +{ + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg-sql-demo/providers/Microsoft.Sql/servers/sqlsrvdoc85/databases/sqldbdoc85/transparentDataEncryption/current", + "name": "current", + "type": "Microsoft.Sql/servers/databases/transparentDataEncryption", + ... +} +``` + +### Configure backup retention policies + +Configure a short-term backup retention policy: + +```bash +az rest --method put \ + --url "http://management.localhost.localstack.cloud:4566/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg-sql-demo/providers/Microsoft.Sql/servers/sqlsrvdoc85/databases/sqldbdoc85/backupShortTermRetentionPolicies/default?api-version=2021-11-01" \ + --headers "Content-Type=application/json" \ + --body '{"properties":{"retentionDays":7,"diffBackupIntervalInHours":24}}' +``` + +```bash title="Output" +{ + "name": "default", + "properties": { + "retentionDays": 7, + "diffBackupIntervalInHours": 24 + }, + "type": "Microsoft.Sql/servers/databases/backupShortTermRetentionPolicies", + ... +} +``` + +Configure a long-term backup retention policy: + +```bash +az rest --method put \ + --url "http://management.localhost.localstack.cloud:4566/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg-sql-demo/providers/Microsoft.Sql/servers/sqlsrvdoc85/databases/sqldbdoc85/backupLongTermRetentionPolicies/default?api-version=2021-11-01" \ + --headers "Content-Type=application/json" \ + --body '{"properties":{"weeklyRetention":"PT0S","monthlyRetention":"PT0S","yearlyRetention":"PT0S","weekOfYear":1}}' +``` + +```bash title="Output" +{ + "name": "default", + "properties": { + "weeklyRetention": "PT0S", + "monthlyRetention": "PT0S", + "yearlyRetention": "PT0S", + "weekOfYear": 1 + }, + "type": "Microsoft.Sql/servers/databases/backupLongTermRetentionPolicies", + ... +} +``` + ## API Coverage From 9dc72c8a3a0fc572b33745d534b2d1363187b633 Mon Sep 17 00:00:00 2001 From: HarshCasper Date: Thu, 9 Apr 2026 17:58:29 +0530 Subject: [PATCH 2/5] fixes --- src/content/docs/azure/services/sql.mdx | 234 ++++++++++++++++++------ 1 file changed, 177 insertions(+), 57 deletions(-) diff --git a/src/content/docs/azure/services/sql.mdx b/src/content/docs/azure/services/sql.mdx index 860e201a..5dc57d5b 100644 --- a/src/content/docs/azure/services/sql.mdx +++ b/src/content/docs/azure/services/sql.mdx @@ -10,22 +10,33 @@ import AzureFeatureCoverage from "../../../../components/feature-coverage/AzureF Azure SQL is a managed relational database service for building cloud-native applications with familiar SQL Server tooling. It supports creating logical servers, provisioning databases, and configuring operational features such as firewall access and retention policies. -This makes it a common choice for transactional workloads and application backends. +This makes it a common choice for transactional workloads and application backends. For more information, see [What is Azure SQL Database?](https://learn.microsoft.com/azure/azure-sql/database/sql-database-paas-overview). -LocalStack for Azure lets you build and test Azure SQL workflows locally using the same CLI patterns you use in cloud environments. +LocalStack for Azure provides a local environment for building and testing applications that make use of Azure SQL Database. The supported APIs are listed in the [API Coverage](#api-coverage) section. ## Getting started -This guide is designed for users new to Azure SQL and assumes basic knowledge of the Azure CLI and `azlocal`. +This guide is designed for users new to Azure SQL Database and assumes basic knowledge of the Azure CLI and `azlocal`. The following example creates a SQL server and database, configures firewall access, and defines retention and encryption settings. -Start by enabling interception so your `az` commands are routed to LocalStack: +Launch LocalStack using your preferred method. For more information, see [Introduction to LocalStack for Azure](/azure/getting-started/). Once the container is running, enable Azure CLI interception by running: ```bash -azlocal start_interception +azlocal start-interception ``` -The following example creates a SQL server, creates a database, configures firewall access, and manages retention and encryption settings. +:::note +As an alternative to using the `azlocal` CLI, users can run: + +`azlocal start-interception` + +This command points the `az` CLI away from the public Azure management REST API and toward the LocalStack for Azure emulator REST API. +To revert this configuration, run: + +`azlocal stop-interception` + +This reconfigures the `az` CLI to send commands to the official Azure management REST API. +::: ### Create a resource group @@ -62,10 +73,16 @@ az sql server create \ ```bash title="Output" { - "name": "UpsertLogicalServer", - "operation": "UpsertLogicalServer", - "status": "Succeeded", + "administratorLogin": "lsadmin", + ... + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg-sql-demo/providers/Microsoft.Sql/servers/sqlsrvdoc85", ... + "location": "westeurope", + ... + "name": "sqlsrvdoc85", + ... + "type": "Microsoft.Sql/servers", + ... } ``` @@ -92,44 +109,92 @@ az sql server show --name sqlsrvdoc85 --resource-group rg-sql-demo Create a database on the SQL server: ```bash -az rest --method put \ - --url "http://management.localhost.localstack.cloud:4566/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg-sql-demo/providers/Microsoft.Sql/servers/sqlsrvdoc85/databases/sqldbdoc85?api-version=2021-11-01" \ - --headers "Content-Type=application/json" \ - --body '{"location":"westeurope"}' +az sql db create \ + --name sqldbdoc85 \ + --resource-group rg-sql-demo \ + --server sqlsrvdoc85 \ + --service-objective S0 \ + --compute-model Provisioned ``` ```bash title="Output" { - "name": "CreateLogicalDatabase", - "operation": "CreateLogicalDatabase", - "startTime": "2026-02-27T10:11:48.1772187108+00:00", - "status": "InProgress" + ... + "catalogCollation": "SQL_Latin1_General_CP1_CI_AS", + "collation": "SQL_Latin1_General_CP1_CI_AS", + "creationDate": "2026-03-24T09:32:54.177434+00:00", + "currentBackupStorageRedundancy": "Geo", + "currentServiceObjectiveName": "GP_Gen5_2", + "currentSku": { + "capacity": 2, + "family": "Gen5", + "name": "S0", + "size": null, + "tier": "GeneralPurpose" + }, + "databaseId": "62951a4b-e3b7-41ce-b7e7-1d4860801828", + ... + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg-sql-demo/providers/Microsoft.Sql/servers/sqlsrvdoc85/databases/sqldbdoc85", + ... + "name": "sqldbdoc85", + ... + "sku": { + "capacity": 2, + "family": "Gen5", + "name": "S0", + "size": null, + "tier": "GeneralPurpose" + }, + ... + "status": "Online", + ... } ``` -List databases on the SQL server to confirm it was created: +Verify the database status to confirm successful creation: ```bash -az rest --method get \ - --url "http://management.localhost.localstack.cloud:4566/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg-sql-demo/providers/Microsoft.Sql/servers/sqlsrvdoc85/databases?api-version=2021-11-01" +az sql db show \ + --name sqldbdoc85 \ + --resource-group rg-sql-demo \ + --server sqlsrvdoc85 ``` ```bash title="Output" { - "value": [ - { - "name": "sqldbdoc85", - "type": "Microsoft.Sql/servers/databases", - "properties": { - "status": "Online", - ... - }, - ... - } - ] + ... + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg-sql-demo/providers/Microsoft.Sql/servers/sqlsrvdoc85/databases/sqldbdoc85", + ... + "name": "sqldbdoc85", + ... + "status": "Online", + ... } ``` +List the databases on the SQL server: + +```bash +az sql db list \ + --resource-group rg-sql-demo \ + --server sqlsrvdoc85 +``` + +```bash title="Output" +[ + { + ... + "name": "master", + ... + }, + { + ... + "name": "sqldbdoc85", + ... + } +] +``` + ### Add a firewall rule Create a firewall rule to allow client access: @@ -158,18 +223,21 @@ az sql server firewall-rule create \ Enable transparent data encryption on the database: ```bash -az rest --method put \ - --url "http://management.localhost.localstack.cloud:4566/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg-sql-demo/providers/Microsoft.Sql/servers/sqlsrvdoc85/databases/sqldbdoc85/transparentDataEncryption/current?api-version=2021-11-01" \ - --headers "Content-Type=application/json" \ - --body '{"properties":{"status":"Enabled"}}' +az sql db tde set \ + --database sqldbdoc85 \ + --server sqlsrvdoc85 \ + --resource-group rg-sql-demo \ + --status Enabled ``` ```bash title="Output" { "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg-sql-demo/providers/Microsoft.Sql/servers/sqlsrvdoc85/databases/sqldbdoc85/transparentDataEncryption/current", "name": "current", - "type": "Microsoft.Sql/servers/databases/transparentDataEncryption", + "resourceGroup": "rg-sql-demo", ... + "state": "Enabled", + "type": "Microsoft.Sql/servers/databases/transparentDataEncryption" } ``` @@ -178,47 +246,99 @@ az rest --method put \ Configure a short-term backup retention policy: ```bash -az rest --method put \ - --url "http://management.localhost.localstack.cloud:4566/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg-sql-demo/providers/Microsoft.Sql/servers/sqlsrvdoc85/databases/sqldbdoc85/backupShortTermRetentionPolicies/default?api-version=2021-11-01" \ - --headers "Content-Type=application/json" \ - --body '{"properties":{"retentionDays":7,"diffBackupIntervalInHours":24}}' +az sql db str-policy set \ + --name sqldbdoc85 \ + --server sqlsrvdoc85 \ + --resource-group rg-sql-demo \ + --retention-days 7 \ + --diffbackup-hours 24 ``` ```bash title="Output" { + "diffBackupIntervalInHours": 24, + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg-sql-demo/providers/Microsoft.Sql/servers/sqlsrvdoc85/databases/sqldbdoc85/backupShortTermRetentionPolicies/default", "name": "default", - "properties": { - "retentionDays": 7, - "diffBackupIntervalInHours": 24 - }, - "type": "Microsoft.Sql/servers/databases/backupShortTermRetentionPolicies", - ... + "resourceGroup": "rg-sql-demo", + "retentionDays": 7, + "type": "Microsoft.Sql/servers/databases/backupShortTermRetentionPolicies" } ``` Configure a long-term backup retention policy: ```bash -az rest --method put \ - --url "http://management.localhost.localstack.cloud:4566/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg-sql-demo/providers/Microsoft.Sql/servers/sqlsrvdoc85/databases/sqldbdoc85/backupLongTermRetentionPolicies/default?api-version=2021-11-01" \ - --headers "Content-Type=application/json" \ - --body '{"properties":{"weeklyRetention":"PT0S","monthlyRetention":"PT0S","yearlyRetention":"PT0S","weekOfYear":1}}' +az sql db ltr-policy set \ + --name sqldbdoc85 \ + --server sqlsrvdoc85 \ + --resource-group rg-sql-demo \ + --weekly-retention "P4W" \ + --monthly-retention "P12M" \ + --yearly-retention "P5Y" \ + --week-of-year 16 ``` ```bash title="Output" { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg-sql-demo/providers/Microsoft.Sql/servers/sqlsrvdoc85/databases/sqldbdoc85/backupLongTermRetentionPolicies/default", + "monthlyRetention": "P12M", "name": "default", - "properties": { - "weeklyRetention": "PT0S", - "monthlyRetention": "PT0S", - "yearlyRetention": "PT0S", - "weekOfYear": 1 - }, + "resourceGroup": "rg-sql-demo", + "timeBasedImmutability": null, + "timeBasedImmutabilityMode": null, "type": "Microsoft.Sql/servers/databases/backupLongTermRetentionPolicies", - ... + "weekOfYear": 16, + "weeklyRetention": "P4W", + "yearlyRetention": "P5Y" } ``` +## Features + +The Azure SQL emulator supports the following features: + +- **Server lifecycle management**: Create, update, delete, get, and list logical SQL servers. +- **Database CRUD**: Create, update, delete, get, list, and rename databases on a logical server. +- **Firewall rules**: Create, update, delete, get, and list server-level firewall rules. +- **Transparent data encryption (TDE)**: Create or update, get, and list TDE configurations per database. +- **Short-term backup retention policies**: Create or update, get, update, and list short-term retention policies per database. +- **Long-term backup retention policies**: Create or update, get, and list long-term retention policies per database. +- **Database security alert policies**: Create or update, get, and list security alert policies per database. +- **Server connection policies**: Create or update, get, and list connection policies per server. +- **SQL vulnerability assessments**: Create or update, get, and list vulnerability assessment settings per server. +- **Database schema introspection**: Get and list schemas, tables, and columns by querying the live SQL Server instance. +- **Server name availability check**: Check whether a server name is available for use. +- **Restorable dropped databases**: Get and list restorable dropped databases (stub: always returns an empty list). +- **Replication links**: List replication links for a database (stub: always returns an empty list). +- **Asynchronous provisioning**: Server and database creation use async operations with polling headers, matching real Azure behavior. + +## Limitations + +- **No data persistence across restarts**: SQL Server containers are ephemeral. All databases, schemas, and data are lost when the LocalStack emulator is stopped or restarted. +- **Backup retention policies are metadata-only**: Short-term and long-term retention policies are stored but no actual backup or restore operations are performed. +- **Transparent data encryption is metadata-only**: TDE settings are stored but no actual encryption is applied to the database files. +- **Security alert policies are metadata-only**: Alert policies are stored but do not trigger notifications or log monitoring. +- **Vulnerability assessments are metadata-only**: Assessment settings are stored but no scans are executed. +- **Server connection policies are metadata-only**: Connection policies are stored but do not affect network behavior. +- **Replication links always empty**: No geo-replication or active replication is supported. +- **Elastic pools, failover groups, and geo-replication are not supported**: These features are not implemented. +- **MSSQL EULA acceptance required**: The `MSSQL_ACCEPT_EULA` environment variable must be set to `Y` before creating any SQL server. + +## Configuration + +The behavior of the Azure SQL emulator can be customized using the environment variables listed below. + +| **Variable** | **Description** | **Type** | **Default** | +| -------------------------------------- | --------------------------------------------------------------------------------------------------------- | -------- | ----------- | +| `MSSQL_ACCEPT_EULA` | Accept the Microsoft SQL Server End-User License Agreement. Must be set to `Y` to create SQL servers. | String | (unset) | +| `ALLOW_MULTIPLE_SQL_SERVER_DEPLOYMENTS`| Allow provisioning more than one SQL Server Docker container. Set to `1` or `true` to enable. | Boolean | `0` | + +## Samples + +The following sample demonstrates how to use Azure SQL Database with LocalStack for Azure: + +- [Web App and SQL Database](https://github.com/localstack/localstack-azure-samples/blob/main/samples/web-app-sql-database/python/) + ## API Coverage From 6ed9cf454bc0f20e230ea115bf4a8162ccdfe7f9 Mon Sep 17 00:00:00 2001 From: Harsh Mishra Date: Thu, 9 Apr 2026 18:07:32 +0530 Subject: [PATCH 3/5] Update src/content/docs/azure/services/sql.mdx Co-authored-by: Paolo Salvatori --- src/content/docs/azure/services/sql.mdx | 25 ++++++++++++------------- 1 file changed, 12 insertions(+), 13 deletions(-) diff --git a/src/content/docs/azure/services/sql.mdx b/src/content/docs/azure/services/sql.mdx index 5dc57d5b..be788981 100644 --- a/src/content/docs/azure/services/sql.mdx +++ b/src/content/docs/azure/services/sql.mdx @@ -157,19 +157,18 @@ Verify the database status to confirm successful creation: az sql db show \ --name sqldbdoc85 \ --resource-group rg-sql-demo \ - --server sqlsrvdoc85 -``` - -```bash title="Output" -{ - ... - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg-sql-demo/providers/Microsoft.Sql/servers/sqlsrvdoc85/databases/sqldbdoc85", - ... - "name": "sqldbdoc85", - ... - "status": "Online", - ... -} +[ + { + ... + "name": "master", + ... + }, + { + ... + "name": "sqldbdoc85", + ... + } +] ``` List the databases on the SQL server: From 3b37d620507d9015d29c80fa4410b2cf3a145699 Mon Sep 17 00:00:00 2001 From: HarshCasper Date: Thu, 9 Apr 2026 18:12:43 +0530 Subject: [PATCH 4/5] final fixes --- src/content/docs/azure/services/sql.mdx | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/src/content/docs/azure/services/sql.mdx b/src/content/docs/azure/services/sql.mdx index be788981..798143d1 100644 --- a/src/content/docs/azure/services/sql.mdx +++ b/src/content/docs/azure/services/sql.mdx @@ -25,18 +25,14 @@ Launch LocalStack using your preferred method. For more information, see [Introd azlocal start-interception ``` -:::note -As an alternative to using the `azlocal` CLI, users can run: - -`azlocal start-interception` - -This command points the `az` CLI away from the public Azure management REST API and toward the LocalStack for Azure emulator REST API. +This command points the `az` CLI away from the public Azure management REST API and toward the LocalStack for Azure emulator API. To revert this configuration, run: -`azlocal stop-interception` +```bash +azlocal stop-interception +``` This reconfigures the `az` CLI to send commands to the official Azure management REST API. -::: ### Create a resource group @@ -156,7 +152,10 @@ Verify the database status to confirm successful creation: ```bash az sql db show \ --name sqldbdoc85 \ - --resource-group rg-sql-demo \ + --resource-group rg-sql-demo +``` + +```bash title="Output" [ { ... From f5dbf119a2dd36c54d00e5fc0ff3298c3f874825 Mon Sep 17 00:00:00 2001 From: HarshCasper Date: Thu, 9 Apr 2026 18:13:56 +0530 Subject: [PATCH 5/5] another fix --- src/content/docs/azure/services/sql.mdx | 21 +++++++++------------ 1 file changed, 9 insertions(+), 12 deletions(-) diff --git a/src/content/docs/azure/services/sql.mdx b/src/content/docs/azure/services/sql.mdx index 798143d1..e2b77d23 100644 --- a/src/content/docs/azure/services/sql.mdx +++ b/src/content/docs/azure/services/sql.mdx @@ -156,18 +156,15 @@ az sql db show \ ``` ```bash title="Output" -[ - { - ... - "name": "master", - ... - }, - { - ... - "name": "sqldbdoc85", - ... - } -] +{ + ... + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg-sql-demo/providers/Microsoft.Sql/servers/sqlsrvdoc85/databases/sqldbdoc85", + ... + "name": "sqldbdoc85", + ... + "status": "Online", + ... +} ``` List the databases on the SQL server: