Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

useRemoteGatewaysAdded property added to virtualNetworkPeer module #188

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions infra-as-code/bicep/modules/virtualNetworkPeer/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand All @@ -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

Expand All @@ -37,6 +45,7 @@ resource resVirtualNetworkPeer 'Microsoft.Network/virtualNetworks/virtualNetwork
allowVirtualNetworkAccess: parAllowVirtualNetworkAccess
allowForwardedTraffic: parAllowForwardedTraffic
allowGatewayTransit: parAllowGatewayTransit
useRemoteGateways: parUseRemoteGateways
remoteVirtualNetwork: {
id: parDestinationVirtualNetworkID
}
Expand Down