azure-powershell icon indicating copy to clipboard operation
azure-powershell copied to clipboard

-UseRemoteGateways in Add-AzureRmVirtualNetworkPeering does not enable Remote Gateway Peering

Open ld0614 opened this issue 10 years ago • 4 comments

Cmdlet(s)

Add-AzureRmVirtualNetworkPeering

PowerShell Version

Instructions: to get PowerShell version, type $PSVersionTable and look for the value associated with PSVersion 5.0.10586.494

Module Version

2.0.1

OS Version

Instructions: to get OS version, type $PSversionTable and look for value associated with BuildVersion 10.0.10586.494

Description

When attempting to create a peered connection which communicates across a VPN the switch UseRemoteGateways does not work. This stops multiple regions from communicating without using User Defined Routing on a Network Virtual Appliance.

Debug Output

Instructions: to get Debug Output, set $DebugPreference="Continue" and then execute the cmdlet or script causing the issue

Looking at the HTTP request it does not appear that the request to use Remote Gateways is sent: "properties": { "allowVirtualNetworkAccess": true, "allowForwardedTraffic": false, "allowGatewayTransit": false, "remoteVirtualNetwork": {

The response from the request is: "allowVirtualNetworkAccess": true, "allowForwardedTraffic": false, "allowGatewayTransit": false, "useRemoteGateways": false, "remoteAddressSpace": { "addressPrefixes": [ "10.0.0.0/16" ]

Script/Steps for Reproduction

Vnet1 and Vnet2 in Region 1 Vnet3 in Region 2 Create Route Based VPN between Vnet1 and Vnet 3 Server on Vnet1 communicated with Vnet3 Create Peer between Vnet1 and Vnet2 Switches on Vnet1: -AlloowGatewayTransit Switches on Vnet2: -UseRemoteGateways Server on Vnet2 communicated with Vnet1 but not Vnet3

ld0614 avatar Aug 22 '16 16:08 ld0614

@DeepakRajendranMsft Hey Deepak, would you mind taking a look at this issue?

cormacpayne avatar Aug 23 '16 17:08 cormacpayne

@chandrasekarsrinivasan Can you take a look at this issue?

maddieclayton avatar Jul 21 '18 00:07 maddieclayton

Assigning to Amol. @Am018

chandrasekarsrinivasan avatar Nov 27 '18 19:11 chandrasekarsrinivasan

This is over two years old issue. I don't think the issue exists anymore. I am closing the issue. Please reopen if you think it requires investigation.

Am018 avatar Dec 07 '18 19:12 Am018