Skip to content

Commit

Permalink
added unique suffix for sa name
Browse files Browse the repository at this point in the history
  • Loading branch information
v-shutov committed Sep 23, 2024
1 parent 346e2ea commit 6b84c2a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion main.tf
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
resource "random_id" "unique_suffix" {
byte_length = 4
}

module "resource_group_storage" {
source = "v-shutov/resource_group_storage/azurerm"
version = "1.0.2"
resource_group_name = var.resource_group_name
location = var.location
storage_account_name = var.storage_account_name
storage_account_name = "${var.storage_account_name}${random_id.unique_suffix.hex}"
}

0 comments on commit 6b84c2a

Please sign in to comment.