From 259b17b68f2bb08e714454adec4e33c61e8178ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?jortfal=20=7C=20Jos=C3=A9=20Manuel=20Ortega=20Falc=C3=B3n?= Date: Thu, 18 Mar 2021 13:34:48 +0100 Subject: [PATCH] fix: name of resources (#4) --- main_linux_custom.tf | 2 +- main_windows_custom.tf | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/main_linux_custom.tf b/main_linux_custom.tf index cf27595..30eae92 100644 --- a/main_linux_custom.tf +++ b/main_linux_custom.tf @@ -15,7 +15,7 @@ limitations under the License. */ # Linux Virtual Machine -resource "azurerm_virtual_machine" "this" { +resource "azurerm_virtual_machine" "this-custom" { count = var.os_type == "linux-custom-image" ? 1 : 0 name = var.name diff --git a/main_windows_custom.tf b/main_windows_custom.tf index 97134a0..5f04818 100644 --- a/main_windows_custom.tf +++ b/main_windows_custom.tf @@ -15,7 +15,7 @@ limitations under the License. */ # Windows Virtual Machine -resource "azurerm_virtual_machine" "this-w" { +resource "azurerm_virtual_machine" "this-w-custom" { count = var.os_type == "windows-custom-image" ? 1 : 0 name = var.name