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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

azurerm_route does not delete routes associated with the table when removed #39

Closed
hashibot opened this issue Jun 13, 2017 · 1 comment · Fixed by #403
Closed

azurerm_route does not delete routes associated with the table when removed #39

hashibot opened this issue Jun 13, 2017 · 1 comment · Fixed by #403
Labels

Comments

@hashibot
Copy link

This issue was originally opened by @geofffranks as hashicorp/terraform#11747. It was migrated here as part of the provider split. The original body of the issue is below.


Terraform Version

Run terraform -v to show the version. If you are not running the latest version of Terraform, please upgrade because your issue may have already been fixed.

terraform v0.8.5

Affected Resource(s)

Please list the resources as a list, for example:

  • awsrm_route

If this issue appears to affect multiple resources, it may be an issue with Terraform's core, so please mention this.

Terraform Configuration Files

resource "azurerm_route_table" "external" {
    name = "${var.resource_group_name}-external"
    location = "${var.azure_region}"
    resource_group_name = "${azurerm_resource_group.default.name}"

    route {
        name = "internet"
        address_prefix = "0.0.0.0/0"
        next_hop_type = "internet"
    }
}

Expected Behavior

When removing the route from the above definition, terraform should remove the route from the routing table in Azure.

Actual Behavior

Terraform says nothing will change during plan or apply phases

Steps to Reproduce

Please list the steps required to reproduce the issue, for example:

  1. Deploy above route table in sample config
  2. Delete the route from the config
  3. terraform plan + apply
@hashibot hashibot added the bug label Jun 13, 2017
tombuildsstuff added a commit that referenced this issue Oct 6, 2017
```
$ acctests azurerm TestAccAzureRMRouteTable_removeRoute
=== RUN   TestAccAzureRMRouteTable_removeRoute
--- PASS: TestAccAzureRMRouteTable_removeRoute (93.89s)
PASS
ok      github.com/terraform-providers/terraform-provider-azurerm/azurerm    93.914s
```
@ghost
Copy link

ghost commented Apr 1, 2020

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 [email protected]. Thanks!

@ghost ghost locked and limited conversation to collaborators Apr 1, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant