ALZ-Bicep icon indicating copy to clipboard operation
ALZ-Bicep copied to clipboard

refactor: Add gateway udt and add allowed values

Open oZakari opened this issue 1 year ago • 2 comments

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

  1. Adds UDT with allowed values
  2. 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 asn and peerweight subproperties within bgpSettings now 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

oZakari avatar Jan 23 '25 23:01 oZakari

/azp run validateazcloud

oZakari avatar Jan 24 '25 03:01 oZakari

Azure Pipelines successfully started running 1 pipeline(s).

azure-pipelines[bot] avatar Jan 24 '25 03:01 azure-pipelines[bot]

/azp run validateazcloud

oZakari avatar Oct 08 '25 19:10 oZakari

Azure Pipelines successfully started running 1 pipeline(s).

azure-pipelines[bot] avatar Oct 08 '25 19:10 azure-pipelines[bot]

/azp run validateazcloud

oZakari avatar Oct 08 '25 19:10 oZakari

Azure Pipelines successfully started running 1 pipeline(s).

azure-pipelines[bot] avatar Oct 08 '25 19:10 azure-pipelines[bot]

/azp run validateazcloud

oZakari avatar Oct 13 '25 03:10 oZakari

Azure Pipelines successfully started running 1 pipeline(s).

azure-pipelines[bot] avatar Oct 13 '25 03:10 azure-pipelines[bot]

/azp run validateazcloud

oZakari avatar Oct 13 '25 04:10 oZakari

Azure Pipelines successfully started running 1 pipeline(s).

azure-pipelines[bot] avatar Oct 13 '25 04:10 azure-pipelines[bot]