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
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