Skip to content

Commit

Permalink
Merge pull request #1797 from aztfmod/patch.sqlmi
Browse files Browse the repository at this point in the history
Fix SQL MI regressions
  • Loading branch information
arnaudlh authored Sep 19, 2023
2 parents fcf3933 + 3101f44 commit 7a1bcf3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
variable "short_term_retention_days" {
description = "short_term_retention_days .The backup retention period in days. This is how many days Point-in-Time Restore will be supported. Value must be atleast 1"
nullable = false
description = "short_term_retention_days (Optional) .The backup retention period in days. This is how many days Point-in-Time Restore will be supported. Value must be atleast 1"
nullable = true

validation {
condition = var.short_term_retention_days >= 1
condition = var.short_term_retention_day == null ? true : var.short_term_retention_days >= 1

error_message = format("Not supported value: '%s'. \nAdjust your configuration file with a supported value of 1 or more days", var.short_term_retention_days)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ resource "azurecaf_name" "mssqlmi" {

resource "azurerm_resource_group_template_deployment" "mssqlmi" {

name = "mssqlmi"
name = azurecaf_name.mssqlmi.result
resource_group_name = var.resource_group_name

template_content = file(local.arm_filename)
Expand Down

0 comments on commit 7a1bcf3

Please sign in to comment.