Open
Description
Description
The property 'PeeredRemoteAddressSpace' is not filled when running the command Get-AzVirtualNetworkPeering -VirtualNetworkName $VirtualNetworkName -ResourceGroupName $ResourceGroupName.
This issue happens in Az.Network version 7.16.0, 7.15.1, 7.15.0, and 7.13.0. The issue didn't happen in Az.Network version 7.10.0 and 7.14.0. The versions not mentioned here weren't tested.
Issue script & Debug output
$virtualNetworkPeeringAll = Get-AzVirtualNetworkPeering -VirtualNetworkName $VirtualNetworkName -ResourceGroupName $ResourceGroupName
$virtualNetworkPeeringAll | format-List
Environment data
$PSVersionTable
Name Value
---- -----
PSVersion 7.5.0
PSEdition Core
GitCommitId 7.5.0
OS Microsoft Windows 10.0.20348
Platform Win32NT
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0
Module versions
Get-Module Az*
ModuleType Version PreRelease Name ExportedCommands
---------- ------- ---------- ---- ----------------
Script 4.1.0 Az.Accounts {Add-AzEnvironment, Clear-AzConfig, Clear-AzContext, Clear-AzDefault…}
Script 7.16.0 Az.Network {Add-AzApplicationGatewayAuthenticationCertificate, Add-AzApplicationGatewayBackendAddressPool, Add-AzApplicationGatewayBackendHttpSetting, Add-Az…
Error output
...
EnableOnlyIPv6Peering :
RemoteSubnetNames : {}
LocalSubnetNames : {}
RemoteGateways :
PeeredRemoteAddressSpace :
RemoteVirtualNetworkAddressSpace : Microsoft.Azure.Commands.Network.Models.PSAddressSpace
....