Azure / Azure/azure-rest-api-specs

Bug: Cognitive Services lists incorrect Private Endpoint Connection Name

Open
#16,702 0 comments 0 reactions 0 assignees View on GitHub
Cognitive Services customer-reported question Service Attention
Dominant language
TypeSpec
Stars
3.1k
Forks
5.9k
Avg merge
2d 22h
Merged PRs (30d)
444

Description

When listing the private endpoint connections for a Cognitive Services resource, the returned name is incorrectly including the Cognitive Services Account name.

# Sample Request

```
GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/privateEndpointConnections?api-version=2021-04-30
```

# Expected Result
```json
{
"value": [
{
"id": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/privateEndpointConnections/{privateEndpointConnectionName}",
"name": "{privateEndpointConnectionName}",
"type": "Microsoft.CognitiveServices/accounts/privateEndpointConnections",
"properties": {
"privateEndpoint": {
"id": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/privateEndpoints/{privateEndpointName}"
},
"privateLinkServiceConnectionState": {
"status": "Approved",
"description": "Auto-Approved",
"actionsRequired": "None"
}
}
}
]
}
```

# Actual Result

```json
{
"value": [
{
"id": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/privateEndpointConnections/{privateEndpointConnectionName}",
"name": "{accountName}/{privateEndpointConnectionName}", <-- Problem is here
"type": "Microsoft.CognitiveServices/accounts/privateEndpointConnections",
"properties": {
"privateEndpoint": {
"id": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/privateEndpoints/{privateEndpointName}"
},
"privateLinkServiceConnectionState": {
"status": "Approved",
"description": "Auto-Approved",
"actionsRequired": "None"
}
}
}
]
}
```

Contributor guide

Open the contributing guide

Research direction

Start at the Cognitive Services private endpoint connections response for api-version=2021-04-30, using the sample request and expected result as the contract. Verify that each returned name contains only the private endpoint connection name, while the resource ID and other properties remain unchanged.

Written by the indexing model from the issue text.

Assessment

Tech stack
openapi
Domain
api
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
50/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.