Skip to content

Commit

Permalink
sql servers allows 63 characters
Browse files Browse the repository at this point in the history
  • Loading branch information
balpurewal committed Sep 25, 2023
1 parent 6b2ddbf commit 751eb40
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion azurerm/modules/azurerm-sql/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ resource "random_password" "password" {

# SQL Server instance
resource "azurerm_mssql_server" "example" {
name = substr(replace("${var.resource_namer}-sql", "-", ""), 0, 24)
name = substr(replace("${var.resource_namer}-sql", "-", ""), 0, 63)
resource_group_name = var.resource_group_name
location = var.resource_group_location
version = var.sql_version
Expand Down

0 comments on commit 751eb40

Please sign in to comment.