From 8d0fd9fbecef4bfd5f8e3b52669bcccecdc8a0bc Mon Sep 17 00:00:00 2001 From: Gary Ewan Park Date: Thu, 1 Oct 2020 08:10:58 +0100 Subject: [PATCH] (build) Fixing up terraform validate errors --- prepare-vms/azure/terraform/init.tf | 5 ++++- prepare-vms/azure/terraform/windows.tf | 3 +-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/prepare-vms/azure/terraform/init.tf b/prepare-vms/azure/terraform/init.tf index 31166ea..ff7bb95 100644 --- a/prepare-vms/azure/terraform/init.tf +++ b/prepare-vms/azure/terraform/init.tf @@ -1,5 +1,8 @@ # Configure the Microsoft Azure Provider -provider "azurerm" {} +provider "azurerm" { + version = "=2.3.0" + features {} +} # Create a resource group resource "azurerm_resource_group" "global" { diff --git a/prepare-vms/azure/terraform/windows.tf b/prepare-vms/azure/terraform/windows.tf index e3a8d24..e7d0f03 100644 --- a/prepare-vms/azure/terraform/windows.tf +++ b/prepare-vms/azure/terraform/windows.tf @@ -32,7 +32,7 @@ resource "azurerm_public_ip" "windows" { idle_timeout_in_minutes = 30 location = "${var.location}" name = "windows-${format("%02d", count.index + 1)}-publicip" - public_ip_address_allocation = "dynamic" + allocation_method = "Dynamic" resource_group_name = "${azurerm_resource_group.global.name}" } @@ -40,7 +40,6 @@ resource "azurerm_storage_container" "windows" { container_access_type = "private" count = "${var.count}" name = "windows-${format("%02d", count.index + 1)}-storage" - resource_group_name = "${azurerm_resource_group.global.name}" storage_account_name = "${azurerm_storage_account.global.name}" }