Azure / Azure/azure-powershell
Get-AzPrivateEndpointConnection result does not contain detail in PrivateEndpoint property
- Dominant language
- C#
- Stars
- 4.8k
- Forks
- 4.3k
- Avg merge
- 2d 17h
- Merged PRs (30d)
- 51
Description
### Description
The [PrivateEndpoint property](https://learn.microsoft.com/en-us/dotnet/api/microsoft.azure.commands.network.models.psprivateendpointconnection.privateendpoint?view=az-ps-latest#microsoft-azure-commands-network-models-psprivateendpointconnection-privateendpoint) of the [PSPrivateEndpointConnection](https://learn.microsoft.com/en-us/dotnet/api/microsoft.azure.commands.network.models.psprivateendpointconnection?view=az-ps-latest) result from the [Get-AzPrivateEndpointConnection](https://learn.microsoft.com/en-us/powershell/module/az.network/get-azprivateendpointconnection?view=azps-15.5.0) cmdlet contains no detail. This bug is first observed in Az.Network v5.7.0.
### Issue script & Debug output
```PowerShell
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
```PowerShell
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
```PowerShell
ModuleType Version PreRelease Name
---------- ------- ---------- ----
Script 5.3.4 Az.Accounts
Script 7.26.0 Az.Network
```
### Error output
```PowerShell
```
Contributor guide
Assessment
This issue has not been assessed yet.