Skip to content

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

@blackc0at-3cloud

Description

@blackc0at-3cloud

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:

[
  {
    "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

😕

Metadata

Metadata

Assignees

Labels

Auto-AssignAuto assign by botNetworkaz network vnet/lb/nic/dns/etc...Service AttentionThis issue is responsible by Azure service team.act-quality-productivity-squadcustomer-reportedIssues that are reported by GitHub users external to the Azure organization.questionThe issue doesn't require a change to the product in order to be resolved. Most issues start as that

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions