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_express_route_connection updating Express Route Connection fails with 400 Bad Request #26746

Closed
1 task done
tiwood opened this issue Jul 23, 2024 · 5 comments · Fixed by #26928
Closed
1 task done

Comments

@tiwood
Copy link
Contributor

tiwood commented Jul 23, 2024

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 comments along the lines of "+1", "me too" or "any updates", 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 and review the contribution guide to help.

Terraform Version

1.6.3

AzureRM Provider Version

3.113.0

Affected Resource(s)/Data Source(s)

azurerm_express_route_connection

Terraform Configuration Files

resource "azurerm_express_route_connection" "main" {
  for_each                         = local.express_route_connections
  name                             = each.value.name
  express_route_gateway_id         = azurerm_express_route_gateway.main[each.value.hub_key].id
  express_route_circuit_peering_id = each.value.peering_id
  routing_weight                   = each.value.weight
  enable_internet_security = false

  routing {
    associated_route_table_id = azurerm_virtual_hub_route_table.main[each.value.hub_key].id
  }
}

Debug Output/Panic Output

│ Error: updating Express Route Connection (Subscription: "xxx"
│ Resource Group Name: "xxx"
│ Express Route Gateway Name: "xxx"
│ Express Route Connection Name: "xxx"): performing CreateOrUpdate: unexpected status 400 (400 Bad Request) with error: InvalidRequestFormat: Cannot parse the request.
│ 
│   with azurerm_express_route_connection.main["xxx"],
│   on main.tf line 305, in resource "azurerm_express_route_connection" "main":
│  305: resource "azurerm_express_route_connection" "main" {

Expected Behaviour

No response

Actual Behaviour

No response

Steps to Reproduce

No response

Important Factoids

No response

References

No response

@tiwood
Copy link
Contributor Author

tiwood commented Jul 23, 2024

I've captured the HTTP response, which shows us the actual error:

{
  "error": {
    "code": "InvalidRequestFormat",
    "message": "Cannot parse the request.",
    "details": [
      {
        "code": "InvalidJson",
        "message": "Could not find member 'enablePrivateLinkFastPath' on object of type 'ExpressRouteConnectionProperties'. Path 'properties.enablePrivateLinkFastPath', line 1, position 116."
      }
    ]
  }
}

@tiwood
Copy link
Contributor Author

tiwood commented Jul 23, 2024

It seems the bug was introduced in version 3.100.0 via 56ac3fc

@erwinkramer
Copy link

It seems the bug was introduced in version 3.100.0 via 56ac3fc

I can confirm this, still works on 1 version lower, so 3.99.0.

@github-actions github-actions bot added this to the v3.116.0 milestone Aug 14, 2024
@adammontlake
Copy link

adammontlake commented Aug 29, 2024

This issue is still not solved.
While I can see that the latest provider v3.116.0 has now corrected the parameters, the Azure api version that is being used for sending the request is: api-version=2023-11-01
According to the Azure docs, it should be using 2024-01-01
The error I am still getting:
{"error":{"code":"InvalidRequestFormat","message":"Cannot parse the request.","details":[{"code":"InvalidJson","message":"Could not find member 'enablePrivateLinkFastPath' on object of type 'ExpressRouteConnectionProperties'. Path 'properties.enablePrivateLinkFastPath', line 1, position 108."}]}}: timestamp="2024-08-29T11:11:24.779+0300"

Copy link

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 have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 29, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
4 participants