Loading...
Loading...
### Terraform Version ```shell Terraform v1.9.8 ``` ### Terraform Configuration Files ``` terraform { required_version = ">= 1.9" required_providers { azurerm = { source = "hashicorp/azurerm" version = "~> 4.3" } } } ``` ### Debug Output ``` # module.kusto_cluster.azurerm_kusto_cluster.main must be replaced -/+ resource "azurerm_kusto_cluster" "main" { - allowed_fqdns = [] -> null - allowed_ip_ranges = [] -> null ~ auto_stop_enabled = false -> true ~ data_ingestion_uri = "https://ingest-uri.location.kusto.windows.net/" -> (known after apply) - double_encryption_enabled = false -> null ~ id = "/subscriptions//resourceGroups//providers/Microsoft.Kusto/clusters/" -> (known after apply) name = "" ~ tags = { "ApplicationName" = "" "DeployableName" = "" ~ "DeployableVersion" = "6.0.13-unstable" -> "6.0.15-unstable" "Environment" = "" "ProjectCode" = "" } ~ trusted_external_tenants = [] -> (known after apply) ~ uri = "https://uri.location.kusto.windows.net/" -> (known after apply) # (9 unchanged attributes hidden) - virtual_network_configuration { - data_management_public_ip_id = "/subscriptions//resourceGroups//providers/Microsoft.Network/publicIPAddresses/data-pip" -> null # forces replacement - engine_public_ip_id = "/subscriptions//resourceGroups//providers/Microsoft.Network/publicIPAddresses/engine-pip" -> null # forces replacement - subnet_id = "/subscriptions//resourceGroups//providers/Microsoft.Network/virtualNetworks/main-vnet/subnets/subnet" -> null # forces replacement } # (1 unchanged block hidden) } ``` ### Expected Behavior The documentation suggests that removing the `virtual_network_configuration` block from the `aurerm_kusto_cluster` resource definition will set virtual network injection to a `disabled` state by default which appears to be happening. It also suggests that it shouldn't force the resource to be replaced if the state is being switched from `enabled` to `disabled` ### Actual Behavior Removing the `virtual_network_configuration` block from the `aurerm_kusto_cluster` resource definition and changing the state of virtual network injection from `enabled` to `disabled` is causing the Kusto cluster resource to be replaced. ### Steps to Reproduce 1. Deploy `azurerm_kusto_cluster` resource with virtual_network_configuration block defined 2. Remove virtual_network_configuration block 3. Run terraform plan ### Additional Context Azure will no longer provide support for virtual network injection on Azure Data Explorer clusters from February 2025 so it is necessary to migrate to a private endpoint configuration [see here](https://learn.microsoft.com/en-us/azure/data-explorer/security-network-migrate-vnet-to-private-endpoint?tabs=arg%2Cportal). This is a prerequisite step for the migration and we cannot allow our existing cluster to be destroyed in the process. ### References _No response_
Click on a version to see all relevant bugs
Terraform Integration
Learn more about where this data comes from
Bug Scrub Advisor
Streamline upgrades with automated vendor bug scrubs
BugZero Enterprise
Wish you caught this bug sooner? Get proactive today.