Azure / Azure/azure-cli

az network private-endpoint-connection list fails to return Key Vault name attribute for private endpoint

Open
#28,256 6 comments 2 reactions 1 assignee Claimed by @necusjz View on GitHub
act-quality-productivity-squad Auto-Assign customer-reported Network question Service Attention
Dominant language
Python
Stars
4.6k
Forks
3.5k
Avg merge
3d 2h
Merged PRs (30d)
60

Description

### Describe the bug

The `name` attribute is not returned in the JSON payload much like it is with Storage Accounts or other Azure resources.

azure-cli version `2.56.0`

The JSON payload looks like the following:

```JSON
[
{
"id": "/subscriptions/mySubscriptionID/resourceGroups/myResourceGroupName/providers/Microsoft.KeyVault/vaults/myKeyVaultName/privateEndpointConnections/myKeyVaultPrivateEndpointName",
"properties": {
"privateEndpoint": {
"id": "/subscriptions/mySubscriptionID/resourceGroups/myResourceGroupName/providers/Microsoft.Network/privateEndpoints/myKeyVaultPrivateEndpointName",
"resourceGroup": "myResourceGroupName"
},
"privateLinkServiceConnectionState": {
"actionsRequired": "None",
"status": "Approved"
},
"provisioningState": "Succeeded"
},
"resourceGroup": "myResourceGroupName"
}
]
```

### Related command

az network private-endpoint-connection list -g "ResourceGroupName" -n "KeyVaultName" --type Microsoft.KeyVault/vaults

### Errors

There is no error returned, but the `name` attribute is not returned in the JSON payload much like it is with Storage Accounts or other Azure resources.

### Issue script & Debug output

N/A

### Expected behavior

The JSON should return the `name` attributes of all private endpoints for that queried resource.

### Environment Summary

az --version
azure-cli 2.56.0

core 2.56.0
telemetry 1.1.0

Dependencies:
msal 1.24.0b2
azure-mgmt-resource 23.1.0b2

### Additional context

:confused:

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.