Skip to content

Commit

Permalink
no count on a-set
Browse files Browse the repository at this point in the history
  • Loading branch information
jmcalalang committed Jan 18, 2024
1 parent 501a074 commit 4fb591e
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -93,10 +93,9 @@ resource "azurerm_windows_virtual_machine" "active-directory-instance" {

## Availability Set
resource "azurerm_availability_set" "active-directory-instance" {
name = "a-set-${random_string.active-directory-random-string[0].result}-${count.index}"
name = "a-set-${random_string.active-directory-random-string[0].result}"
location = var.location
resource_group_name = azurerm_resource_group.active-directory-resource-group.name
count = sum([var.active-directory-instance-count])

tags = {
environment = var.tag_environment
Expand Down

0 comments on commit 4fb591e

Please sign in to comment.