Declare an existing VNet as a DevTest VNet

Hello,

I’ve a question concerning Devtest lab ressources management under Azure with Terraform.
I have declare a resource azurerm_dev_test_lab like this :

provider "azurerm" {
  features {
  }
  version = ">=2.0.0"
}

resource "azurerm_resource_group" "VNetResourceGroup" {
  name     = "VNet-ResourceGroup"
  location = "FranceCentral"
}

resource "azurerm_resource_group" "VMResourceGroup" {
  name     = "VM-ResourceGroup"
  location = "FranceCentral"
}

resource "azurerm_virtual_network" "VNet" {
  name                = "MyVnet"
  location            = azurerm_resource_group.VNetResourceGroup.location
  resource_group_name = azurerm_resource_group.VNetResourceGroup.name
  address_space       = ["10.0.0.0/16"]
}

resource "azurerm_dev_test_lab" "DevTestLab" {
  name                = "DevTestLab"
  location            = azurerm_resource_group.VMResourceGroup.location
  resource_group_name = azurerm_resource_group.VMResourceGroup.name
}

Now, I want to declare my existing VNet (aka MyVNet) as a dev_test_virtual_network but it seems that is not possible :frowning:
I can do it via Azure portal but not via Terraform …

Please could you help me and confirm or not this information ?

Regards.

Cédric

1 Like

Same problem here. Need to integrate into existing VNet with Azure Firewall and Azure Bastion Host.
Azure DTL currently does not support VNet peering so we have to integrate deciated firewall and bastion host ressources which require dedicated subnets …

Did you ever solve this?