az network private-endpoint-connection list fails to return Key Vault name attribute for private endpoint
- 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
Assessment
This issue has not been assessed yet.