Closed OmnipotentOwl closed 7 months ago
@OmnipotentOwl Thanks for the feedback. Started looking.
Hi @OmnipotentOwl, I can see the changes in your forked repo. Do you want to create a pull request? Have you tested these changes?
Let me see if I can bring the changes from that branch into a PR. The branch is actively used in production deployments so its fully working for the areas being used (vWAN, VPN Site-to-Site Gateways, Azure Firewalls, Firewall Policies, VPN Sites, VPN Site-to-Site Connections, Virtual Network Peering, Routing intents). My current design fits the module into a larger module for building out an Azure Platform Landing Zone and uses some of the other avm modules as well.
This issue is fixed and code changes have been pushed to the main.
Summary
When attempting to provision virtual hub connections to virtual networks the following exception occurs because the types used are inconsistent between the results given by the boolean evaluation.
Reproduction
Create a hub connection without specifying the routing block.
Remediation
Below I have proposed a solution that fixes the issue with the routing block. Reviewing the azurerm provider internals it looks like the routing block can be specified once, and the propagated_route_table block can be specified once, but the static_vnet_route block doesn't indicate that it has a restriction from the provider side on how many times it can be specified.