-
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
New resource: azurerm_virtual_network_gateway_nat_rule #15720
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@neil-yechenwei based on #15348 it appears that we also need to split the Create and Update method for Virtual Network Gateway such that that update does a Delta update for this to work - would you be able to take a look?
Thanks!
@katbyte , seems the Potential Terraform Configuration in #15348 has some problem. Per my understanding and testing, I assume we should implement Virtual Network Gateway Nat Rule resource first and then implement the egressNatRules and ingressNatRules of Virtual Network Gateway Connection (azurerm_virtual_network_gateway_connection) for the association. In addition, azurerm_virtual_network_gateway_connection is using separate API client |
Why would the fact the use a different client make a difference? they both alter the same resource and if someone wants to be able to go lifecycle ignore changes the create and update needs to be seperate. So can we please split the create and update? |
This comment was marked as off-topic.
This comment was marked as off-topic.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @neil-yechenwei - LGTM 🦋
This functionality has been released in v3.7.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 pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active contributions. |
To resolve the issue #15348, it has to implement Virtual Network Gateway Nat Rule first. Once this PR is merged, I assume it has to submit another PR to implement
egressNatRules
andingressNatRules
of Virtual Network Gateway Connection (azurerm_virtual_network_gateway_connection).--- PASS: TestAccVirtualNetworkGatewayNatRule_basic (2589.57s)
--- PASS: TestAccVirtualNetworkGatewayNatRule_updatePortRange (2697.90s)
--- PASS: TestAccVirtualNetworkGatewayNatRule_complete (2774.72s)
--- PASS: TestAccVirtualNetworkGatewayNatRule_requiresImport (2803.29s)
--- PASS: TestAccVirtualNetworkGatewayNatRule_update (3078.08s)
API reference:
https://github.com/Azure/azure-rest-api-specs/blob/main/specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/virtualNetworkGateway.json#L2389