Skip to content

Commit

Permalink
Add random suffix to vm names (#22)
Browse files Browse the repository at this point in the history
Signed-off-by: Roman Schwarz <[email protected]>
  • Loading branch information
rswrz authored Sep 20, 2024
1 parent 2401cb1 commit 08bb6fa
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/remote/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,12 @@ resource "azurerm_resource_group" "tftest" {
module "tftest_01" {
source = "../.."

name = "vm-tftest-dev-euw-01"
name = "vm-tftestwindows-dev-euw-${random_string.tftest.result}"
location = azurerm_resource_group.tftest.location
resource_group_name = azurerm_resource_group.tftest.name

backup_policy_id = local.backup_policy_id
computer_name = "tftest"
computer_name = "tftest-windows"
image = "Win2022Datacenter"
key_vault_id = local.key_vault_id
subnet_id = local.subnet_id
Expand All @@ -65,13 +65,13 @@ module "tftest_01" {
module "tftest_02" {
source = "../.."

name = "vm-tftest-dev-euw-02"
name = "vm-tftestlinux-dev-euw-${random_string.tftest.result}"
location = azurerm_resource_group.tftest.location
resource_group_name = azurerm_resource_group.tftest.name

authentication_type = "SSH"
backup_policy_id = local.backup_policy_id
computer_name = "tftest"
computer_name = "tftest-linux"
image = "Ubuntu2204"
key_vault_id = local.key_vault_id
subnet_id = local.subnet_id
Expand Down

0 comments on commit 08bb6fa

Please sign in to comment.