Skip to content

Commit

Permalink
Fix resource name lengths in Azure attack techniques (closes #301) (#302
Browse files Browse the repository at this point in the history
)
  • Loading branch information
christophetd committed Jan 30, 2023
1 parent bedcae3 commit 106b04f
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
Expand Up @@ -12,7 +12,7 @@ provider "azurerm" {
}

locals {
resource_prefix = "stratus-red-team-vmcse" # stratus red team vm custom script extension
resource_prefix = "srt-vmcse" # stratus red team vm custom script extension
}

# # # # # # # # # # # # # # # # # # # # # # # # # # # # #
Expand Down Expand Up @@ -75,7 +75,7 @@ resource "azurerm_network_interface" "lab_nic" {
# # # # # # # # # # # # # # # # # # # # # # # # # # # # #

resource "azurerm_windows_virtual_machine" "lab_windows_vm" {
name = "${local.resource_prefix}-vm-${random_string.lab_name.result}"
name = "srt-vm-vmcse" # at most 15 characters
resource_group_name = azurerm_resource_group.lab_environment.name
location = azurerm_resource_group.lab_environment.location
size = "Standard_F2"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ provider "azurerm" {
}

locals {
resource_prefix = "stratus-red-team-vmrc" # stratus red team vm run commant
resource_prefix = "srt-vmrc" # stratus red team vm run commant
}

# # # # # # # # # # # # # # # # # # # # # # # # # # # # #
Expand Down Expand Up @@ -75,7 +75,7 @@ resource "azurerm_network_interface" "lab_nic" {
# # # # # # # # # # # # # # # # # # # # # # # # # # # # #

resource "azurerm_windows_virtual_machine" "lab_windows_vm" {
name = "${local.resource_prefix}-vm-${random_string.lab_name.result}"
name = "srt-vm-vmrc"
resource_group_name = azurerm_resource_group.lab_environment.name
location = azurerm_resource_group.lab_environment.location
size = "Standard_F2"
Expand Down

0 comments on commit 106b04f

Please sign in to comment.