Skip to content

Get-AzPrivateEndpointConnection result does not contain detail in PrivateEndpoint property #29477

@lsuarez5280

Description

@lsuarez5280

Description

The PrivateEndpoint property of the PSPrivateEndpointConnection result from the Get-AzPrivateEndpointConnection cmdlet contains no detail. This bug is first observed in Az.Network v5.7.0.

Issue script & Debug output

PS> $conn = Get-AzPrivateEndpointConnection -PrivateLinkResourceId '/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg-lsleustest/providers/Microsoft.ApiManagement/service/lsleustestapim'
PS> $conn

ProvisioningState Name            PrivateEndpoint
----------------- ----            ---------------
Succeeded         lsleutestapimpe 

PS> $conn.PrivateEndpoint                                                                                                                              
                                                       
ResourceGroupName Name Location ProvisioningState Subnet
----------------- ---- -------- ----------------- ------

Environment data

Name                           Value
----                           -----
PSVersion                      7.6.1
PSEdition                      Core
GitCommitId                    7.6.1
OS                             Microsoft Windows 10.0.26100
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.4
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

Module versions

ModuleType Version    PreRelease Name
---------- -------    ---------- ----
Script     5.3.4                 Az.Accounts
Script     7.26.0                Az.Network

Error output

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugThis issue requires a change to an existing behavior in the product in order to be resolved.customer-reported

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions