Skip to content

Commit

Permalink
fixes kumarvna#18 from original repo (kumarvna#18)
Browse files Browse the repository at this point in the history
  • Loading branch information
ryuzakyl committed Aug 10, 2023
1 parent 09a4579 commit c7eb041
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -281,11 +281,11 @@ resource "azurerm_sql_firewall_rule" "fw02" {

resource "azurerm_sql_failover_group" "fog" {
count = var.enable_failover_group ? 1 : 0
name = "sqldb-failover-group"
name = format("%s-failover-group", var.sqlserver_name)
resource_group_name = local.resource_group_name
server_name = azurerm_sql_server.primary.name
databases = [azurerm_sql_database.db.id]
tags = merge({ "Name" = format("%s", "sqldb-failover-group") }, var.tags, )
tags = merge({ "Name" = format("%s-failover-group", var.sqlserver_name) }, var.tags, )

partner_servers {
id = azurerm_sql_server.secondary.0.id
Expand Down

0 comments on commit c7eb041

Please sign in to comment.