Open michael-kolpin-bt opened 3 years ago
I am facing the same issue where Terraform doesn't detect the Managed Virtual Network configuration managed_virtual_network_enabled = true
Any updates when this will be fixed?
Digging into how the Azure Portal deploys a Data Factory with a Managed Virtual Network, I discovered Azure is deploying a configuration for the default Integration Runtime behind the scenes.
This led me to a potential workaround. Deploy an Integration Runtime from Terraform named AutoResolveIntegrationRuntime
as follows:
resource "azurerm_data_factory_integration_runtime_azure" "main" {
name = "AutoResolveIntegrationRuntime"
data_factory_id = azurerm_data_factory.main.id
location = "AutoResolve"
virtual_network_enabled = true
}
This has achieved the desired result of the default Integration Runtime using a Managed Virtual Network. You still need the managed_virtual_network_enabled = true
flag set on the Data Factory.
I agree this should happen automatically when the flag is set, but at least it is possible to work around in Terraform without resorting to an ARM template.
Really annoying to have to put in this workaround, can we please fix root cause: managed_virtual_network_enabled = true
Doesn't work as expected
I am getting same issue
This still seems to be wrongly deploying the ADF instance. Should this ticket be opened again or is there already a fix to be deployed?
Originally posted by @michael-kolpin-bt in https://github.com/hashicorp/terraform-provider-azurerm/issues/10542#issuecomment-891583123