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

Property 'PeeredRemoteAddressSpace' not filled in Az.Network current released versions

Open miaoyinchan opened this issue 8 months ago • 3 comments

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
....

miaoyinchan avatar Apr 16 '25 09:04 miaoyinchan

Hi, do you have any updates?

miaoyinchan avatar Apr 24 '25 12:04 miaoyinchan

is dit bug fixed?

miaoyinchan avatar May 07 '25 12:05 miaoyinchan

Property PeeredRemoteAddressSpace doesn't exist in de API endpoint of MS, it should be RemoteAddressSpace.

miaoyinchan avatar Dec 08 '25 09:12 miaoyinchan