I am trying to create an Azure Integration Runtime with VNet config Enabled. But when I try to run it with Terraform it gives the below error:
Error: Unsupported argument
on DataFactory.tf line 44, in resource "azurerm_data_factory_integration_runtime_azure" "managed_ir":
44: virtual_network_enabled = true
An argument named "virtual_network_enabled" is not expected here.
My Terraform snippet:
resource "azurerm_data_factory_integration_runtime_azure" "managed_ir" {
name = "${local.prefix_kebab}-Managed-IR"
data_factory_name = azurerm_data_factory.datafactory.name
resource_group_name = azurerm_resource_group.RG.name
location = azurerm_resource_group.RG.location
virtual_network_enabled = true
}
I am not sure why it gives the ablove error as it is according to the documentation provided on terraform official website (