-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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_virtual_hub_bgp_connection fails and expects existing provisioned HubVirtualNetworkConnection #17872
Comments
I opened an Azure support ticket too, send them the failed terraform error when trying to add a BGP peer. Then support came back and said it's a terraform problem. Can you please tell me why the "virtual network connection" is missing from the terraform resource block? We need that added in order to get past the BGP peer adding error. From support... |
@JeffGiroux thanks for opening this issue here. PR for resource |
I see it and will watch. Thx. |
This functionality has been released in v3.25.0 of the Terraform Provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you! |
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. |
Is there an existing issue for this?
Community Note
Terraform Version
1.1.5
AzureRM Provider Version
3.16.0
Affected Resource(s)/Data Source(s)
azurerm_virtual_hub_bgp_connection
Terraform Configuration Files
I took examples straight from the terraform Azure provider docs and modified slightly.
https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/virtual_hub_bgp_connection
As a result, this is my bgp connection block...
Debug Output/Panic Output
Expected Behaviour
BGP connection should successfully create based on provided input parameters of code block.
Actual Behaviour
"must reference existing provisioned HubVirtualNetworkConnection"
It appears that the BGP connection is looking for an existing hub connection...to which I do indeed have an existing hub connection. I created it with the below command block...
However, terraform apply fails with the error provided about requiring an existing hub connection. From a quick glance, the resource azurerm_virtual_hub_connection seems to require the ID of an existing virtual network connection. But yet, there is not an option to provide such parameter value.
Note: workaround, I can easily go into the portal and create a BGP connection by clicking around the UI. One of the dropdowns is indeed the "Virtual Network Connection" parameter as shown in the Azure docs link here - https://docs.microsoft.com/en-us/azure/virtual-wan/create-bgp-peering-hub-portal.
Steps to Reproduce
Use example bgp connection resource from the Azure terraform examples.
https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/virtual_hub_bgp_connection
Important Factoids
No response
References
No response
The text was updated successfully, but these errors were encountered: