Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Route is not deleted despite commenting out azurerm_route #21348

Open
1 task done
mishikawan opened this issue Apr 8, 2023 · 2 comments
Open
1 task done

Route is not deleted despite commenting out azurerm_route #21348

mishikawan opened this issue Apr 8, 2023 · 2 comments

Comments

@mishikawan
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Community Note

  • Please vote on this issue by adding a 馃憤 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Terraform Version

1.4.4

AzureRM Provider Version

3.51.0

Affected Resource(s)/Data Source(s)

azurerm_route_table azure_route

Terraform Configuration Files

# STEP1: create route_table & create route

resource "azurerm_route_table" "example" {
  name                = "acceptanceTestRouteTable1"
  location            = azurerm_resource_group.example.location
  resource_group_name = azurerm_resource_group.example.name
  disable_bgp_route_propagation = false
}
resource "azurerm_route" "example" {
  name                = "acceptanceTestRoute1"
  resource_group_name = azurerm_resource_group.example.name
  route_table_name    = azurerm_route_table.example.name
  address_prefix      = "10.1.0.0/16"
  next_hop_type       = "VnetLocal"
}

# STEP2: update route_table & remove route

resource "azurerm_route_table" "example" {
  name                = "acceptanceTestRouteTable1"
  location            = azurerm_resource_group.example.location
  resource_group_name = azurerm_resource_group.example.name
  disable_bgp_route_propagation = true # change
}
#remove#resource "azurerm_route" "example" {
#remove#  name                = "acceptanceTestRoute1"
#remove#  resource_group_name = azurerm_resource_group.example.name
#remove#  route_table_name    = azurerm_route_table.example.name
#remove#  address_prefix      = "10.1.0.0/16"
#remove#  next_hop_type       = "VnetLocal"
#remove#}

Debug Output/Panic Output

n/a

Expected Behaviour

The route_table and route are created by applying STEP1.
The route(acceptanceTestRoute1) is deleted from route_table by applying STEP2.

Actual Behaviour

Application of STEP1 is successful
The application of STEP2 does not delete route(acceptanceTestRoute1) from route_table.

Steps to Reproduce

  1. (Application of STEP1) terraform apply
  2. (Application of STEP2) terraform apply

Important Factoids

No response

References

No response

@mishikawan mishikawan added the bug label Apr 8, 2023
@github-actions github-actions bot removed the bug label Apr 8, 2023
@Talaqalotaibipmp
Copy link

Good

@teowa
Copy link
Contributor

teowa commented Apr 10, 2023

Hi @mishikawan , thanks for reporting this! I have submitted PR #21352 to fix this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
5 participants