Starting with Azure DevOps Terraform Installer Version 1.2.7, an error would occur during terraform apply/plan.
│ Error: Unsupported argument │ │ on subnets/subnets.tf line 4, in module "subnet_addrs": │ 4: base_cidr_block = data.azurerm_virtual_network.vnet.address_space[0] │ │ An argument named "base_cidr_block" is not expected here. ╵ ╷ │ Error: Unsupported argument │ │ on subnets/subnets.tf line 5, in module "subnet_addrs": │ 5: networks = local.subnets │ │ An argument named "networks" is not expected here. ╵
No changes were made to the subnet_addrs module before this error started. When the latest TerraformInstaller v1.2.7 was downloaded, the issues began. Setting the version for the TerraformInstaller to 1.2.6 resolved the issue and the error disappeared.
Starting with Azure DevOps Terraform Installer Version 1.2.7, an error would occur during terraform apply/plan.
│ Error: Unsupported argument │ │ on subnets/subnets.tf line 4, in module "subnet_addrs": │ 4: base_cidr_block = data.azurerm_virtual_network.vnet.address_space[0] │ │ An argument named "base_cidr_block" is not expected here. ╵ ╷ │ Error: Unsupported argument │ │ on subnets/subnets.tf line 5, in module "subnet_addrs": │ 5: networks = local.subnets │ │ An argument named "networks" is not expected here. ╵
No changes were made to the subnet_addrs module before this error started. When the latest TerraformInstaller v1.2.7 was downloaded, the issues began. Setting the version for the TerraformInstaller to 1.2.6 resolved the issue and the error disappeared.