Azure / terraform-azurerm-caf-enterprise-scale

Azure landing zones Terraform module
https://aka.ms/alz/tf
MIT License
785 stars 510 forks source link

How to change the default virtual hub attribute #1007

Closed praveenambati1233 closed 1 week ago

praveenambati1233 commented 1 week ago

I am trying to change the default value for _hub_routingpreference, by default it is ExpressRoute - https://registry.terraform.io/providers/hashicorp/Azurerm/3.92.0/docs/resources/virtual_hub#hub_routing_preference

Tf Plan

+ resource "azurerm_virtual_hub" "virtual_wan" {
      + address_prefix                         = "*****"
      + default_route_table_id                 = (known after apply)
      + hub_routing_preference                 = "ExpressRoute"
      + id                                     = (known after apply)
      + location                               = "eastus2"
      + name                                   = "******"
      + resource_group_name                    = "*****"
      + sku                                    = "Standard"
      + tags                                   = {
          + "demo_type"  = "poc"
          + "deployedBy" = "****"
        }
      + virtual_router_asn                     = (known after apply)
      + virtual_router_auto_scale_min_capacity = 2
      + virtual_router_ips                     = (known after apply)
      + virtual_wan_id                         = "***********"
    }

There is no code to change in the advance settings. https://github.com/Azure/terraform-azurerm-caf-enterprise-scale/blob/1288f401ad8cf85b3e527729a4dddded58aef2ef/modules/connectivity/locals.tf#L803

praveenambati1233 commented 1 week ago

@matt-FFFFFF can you please assist with this question?

matt-FFFFFF commented 1 week ago

This is now available in the v6 release

praveenambati1233 commented 1 week ago

@matt-FFFFFF It's working perfect! Thank You.