refactor: Add gateway udt and add allowed values
Overview/Summary
Create UDT for virtual network gateway parameters and add allowed values. In particular, with the consolidation and migration of the SKUS to default to availability zones per https://learn.microsoft.com/en-us/azure/vpn-gateway/gateway-sku-consolidation
Related Issues/Work Items
Fixes AB#37804
This PR fixes/adds/changes/removes
- Adds UDT with allowed values
- Fix sample bicep module
Breaking Changes
Notice: Breaking Changes in Bicep Module Configuration
As part of the migration to user-defined types (UDTs) for properties within the parVpnGatewayConfig and parExpressRouteGatewayConfig parameters, the following breaking changes have been introduced:
1. Supported SKUs Limited to Availability Zones
The list of supported SKUs for VPN and ExpressRoute gateways now only includes those with availability zones. This change aligns with the consolidation and migration updates outlined in the official Azure documentation. For more details, refer to the Gateway SKU Consolidation and Migration Guide.
2. Property Name Alignment for parVpnGatewayConfig
The generation property in parVpnGatewayConfig has been renamed to vpnGatewayGeneration to align with the schema property name already used for parExpressRouteGatewayConfig.
3. Case Sensitivity of bgpSettings
The bgpsettings property is now case-sensitive and must be written as bgpSettings.
Subproperty Changes:
- The
asnandpeerweightsubproperties withinbgpSettingsnow require integer values instead of strings, ensuring consistency with the resource schema.
Please update your configurations accordingly to avoid deployment errors.
Testing Evidence
Replace this with any testing evidence to show that your Pull Request works/fixes as described and planned (include screenshots, if appropriate).
As part of this Pull Request I have
- [x] Read the Contribution Guide and ensured this PR is compliant with the guide
- [x] Ensured the resource API versions in
.bicepfile/s I am adding/editing are using the latest API version possible - [x] Checked for duplicate Pull Requests
- [x] Associated it with relevant GitHub Issues
- [x] (ALZ Bicep Core Team Only) Associated it with relevant ADO Items
- [x] Ensured my code/branch is up-to-date with the latest changes in the
mainbranch - [x] Performed testing and provided evidence.
- [x] Updated one or more of the following tests (if required)
- [x] Updated relevant and associated documentation (e.g. Contribution Guide, Module READMEs, Wiki Docs etc.)
- [x] If relevant, created or updated Code Tours here
/azp run validateazcloud
Azure Pipelines successfully started running 1 pipeline(s).
/azp run validateazcloud
Azure Pipelines successfully started running 1 pipeline(s).
/azp run validateazcloud
Azure Pipelines successfully started running 1 pipeline(s).
/azp run validateazcloud
Azure Pipelines successfully started running 1 pipeline(s).
/azp run validateazcloud
Azure Pipelines successfully started running 1 pipeline(s).