sqldb

SQL Database

DatabasesAzure
General

General information about the service.

Description

Fully managed relational database with auto-scale.

Namespace and Entity

Microsoft.Sql/servers/databases

Chat

Powered by AI

Talk to this service to learn more about it.

Suggested questions:

Naming

The conventions, rules, and restrictions for naming this service.

Naming Convention

sqldb-

Length

1-128

Valid Characters

Alphanumerics, hyphens, underscores.

Scope

resource group

Code

Deploy your infrastructure as code using your preferred tooling.

Official DocumentationTerraform
terraform
1resource "azurerm_mssql_database" "main" {
2 name = "sqldb-${var.project}-${var.environment}"
3 server_id = azurerm_mssql_server.main.id
4 collation = "SQL_Latin1_General_CP1_CI_AS"
5 max_size_gb = 32
6 sku_name = "GP_S_Gen5_2"
7 zone_redundant = true
8
9 short_term_retention_policy {
10 retention_days = 7
11 }
12
13 long_term_retention_policy {
14 weekly_retention = "P1W"
15 monthly_retention = "P1M"
16 yearly_retention = "P1Y"
17 week_of_year = 1
18 }
19
20 tags = var.tags
21}
Utilities

Utilities to support app deployment or configuration.

Private Endpoints

Details to successfully deploy private endpoints on Azure.

Sub-Resource Names

sqlServer

Private DNS Zone Names

privatelink.database.windows.net

Public DNS Zone Forwarders

database.windows.net