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