From 4a1dea648e411aab907cb8b939ec0e8902ff30f2 Mon Sep 17 00:00:00 2001 From: Kim Zachariassen Date: Sun, 13 Mar 2022 16:03:20 +0100 Subject: [PATCH] useRemoteGatewaysAdded --- .../bicep/modules/virtualNetworkPeer/README.md | 1 + .../virtualNetworkPeer/virtualNetworkPeer.bicep | 13 +++++++++++-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/infra-as-code/bicep/modules/virtualNetworkPeer/README.md b/infra-as-code/bicep/modules/virtualNetworkPeer/README.md index 47ec19691..6cc4b7356 100644 --- a/infra-as-code/bicep/modules/virtualNetworkPeer/README.md +++ b/infra-as-code/bicep/modules/virtualNetworkPeer/README.md @@ -23,6 +23,7 @@ The module requires the following inputs: | parAllowVirtualNetworkAccess | bool | true | Switch to enable virtual Network Access | None | true | | parAllowForwardedTraffic | bool | true | Switch to enable Forwarded Traffic | None | true | | parAllowGatewayTransit | bool | false | Switch to enable Gateway Transit | None | false | + | parUseRemoteGateways | bool | false | Switch to enable Remote Gateway | None | false | | parTelemetryOptOut | bool | false | Set Parameter to true to Opt-out of deployment telemetry | None | false | ## Outputs diff --git a/infra-as-code/bicep/modules/virtualNetworkPeer/virtualNetworkPeer.bicep b/infra-as-code/bicep/modules/virtualNetworkPeer/virtualNetworkPeer.bicep index 208f7cc24..db036fd29 100644 --- a/infra-as-code/bicep/modules/virtualNetworkPeer/virtualNetworkPeer.bicep +++ b/infra-as-code/bicep/modules/virtualNetworkPeer/virtualNetworkPeer.bicep @@ -3,8 +3,13 @@ SUMMARY: Module create network peer from one virtual network to another DESCRIPTION: The following components will be required parameters in this deployment parResourceGroupLocation parResourceGroupName -AUTHOR/S: aultt -VERSION: 1.0.0 +AUTHOR/S: aultt, KiZach +VERSION: 1.1.0 + +# Release notes 03/13/2022 - V1.1: + - Added support for useRemoteGateways property. + - Change is required to support a correct Hub/Spoke network peering with gateway support from spoke. + Without the change Spoke netwotk will not be able to be peered and user VPN/ER from the Hub network. */ @description('Virtual Network ID of Virtual Network destination. No default') @@ -25,6 +30,9 @@ param parAllowForwardedTraffic bool = true @description('Switch to enable/disable forwarded Traffic for the Network Peer. Default = false') param parAllowGatewayTransit bool = false +@description('Switch to enable/disable remote Gateway for the Network Peer. Default = false') +param parUseRemoteGateways bool = false + @description('Set Parameter to true to Opt-out of deployment telemetry') param parTelemetryOptOut bool = false @@ -37,6 +45,7 @@ resource resVirtualNetworkPeer 'Microsoft.Network/virtualNetworks/virtualNetwork allowVirtualNetworkAccess: parAllowVirtualNetworkAccess allowForwardedTraffic: parAllowForwardedTraffic allowGatewayTransit: parAllowGatewayTransit + useRemoteGateways: parUseRemoteGateways remoteVirtualNetwork: { id: parDestinationVirtualNetworkID }