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

Cannot change route from VirtualAppliance to None #1352

Closed
glenjamin opened this issue Jun 6, 2018 · 2 comments · Fixed by #2184
Closed

Cannot change route from VirtualAppliance to None #1352

glenjamin opened this issue Jun 6, 2018 · 2 comments · Fixed by #2184

Comments

@glenjamin
Copy link
Contributor

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

Terraform v0.11.7
+ provider.azurerm v1.6.0

Affected Resource(s)

  • azurerm_route_table

Terraform Configuration Files

Before

resource "azurerm_route_table" "primary" {
  name                = "primary"
  location            = "${azurerm_resource_group.routes.location}"
  resource_group_name = "${azurerm_resource_group.routes.name}"

  route {
    name                   = "UDR_to_InternetProxy"
    address_prefix         = "0.0.0.0/0"
    next_hop_type          = "VirtualAppliance"
    next_hop_in_ip_address = "192.168.0.1"
  }
}

After

resource "azurerm_route_table" "primary" {
  name                = "primary"
  location            = "${azurerm_resource_group.routes.location}"
  resource_group_name = "${azurerm_resource_group.routes.name}"

  route {
    name           = "UDR_BlackHole"
    address_prefix = "0.0.0.0/0"
    next_hop_type  = "None"
  }
}

Expected Behavior

Route is updated

Actual Behavior

1 error(s) occurred:

* azurerm_route_table.primary: 1 error(s) occurred:

* azurerm_route_table.primary: Error Creating/Updating Route Table "primary" (Resource Group "Network-Routes"): network.RouteTablesClient#CreateOrUpdate: Failure sending request: StatusCode=400 -- Original Error: Code="NextHopIpAddressNotAllowed" Message="NextHopIpAddress 192.168.0.1 for route UDR_BlackHole cannot be specified. This field can only be specified for NextHopType VirtualAppliance." Details=[]

Steps to Reproduce

  1. terraform apply the "before" config
  2. terraform apply the "after" config

Important Factoids

References

@draggeta
Copy link
Contributor

Ran into this same issue, but with the routes itself. There the issue isn't as apparent, as changing the name creates a new resource, but if the name stays the same, it doesn't work.

@tombuildsstuff tombuildsstuff added this to the 1.19.0 milestone Nov 3, 2018
@ghost
Copy link

ghost commented Mar 6, 2019

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 Mar 6, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
4 participants