Azure / Azure/azure-rest-api-specs
[appconfiguration] ConfigurationStores_List should return case sensitive ID for user defined segments
- Dominant language
- TypeSpec
- Stars
- 3.1k
- Forks
- 5.9k
- Avg merge
- 3d 2h
- Merged PRs (30d)
- 424
Description
The ID returned by [ConfigurationStores_List](https://github.com/Azure/azure-rest-api-specs/blob/6c6b16dc98d720304633b76c8e82c282ffa9cc08/specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/appconfiguration.json#L18-L24) is the above, the ID returned by [Resources_List](https://github.com/Azure/azure-rest-api-specs/blob/6c6b16dc98d720304633b76c8e82c282ffa9cc08/specification/resources/resource-manager/Microsoft.Resources/stable/2021-04-01/resources.json#L2932-L2938) is the below:
```diff
+ /subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/wt-autoscalingtest/providers/Microsoft.AppConfiguration/configurationStores/appconf1ewtet
- /subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/wt-autoscalingTest/providers/Microsoft.AppConfiguration/configurationStores/APPConf1ewtet
```
The ConfigurationStores_List uses the lower case of Resource Group Name and App Configuration Name while the Resources_List method keeps the case. Should the former one keep the case?
## Request Detail:
### ConfigurationStores_List
GET https://management.azure.com/subscriptions/{{subscriptionId}}/providers/Microsoft.AppConfiguration/configurationStores?api-version=2023-03-01
x-ms-request-id: 54124711-e2e3-4feb-92f5-f62c76f491c8
x-ms-correlation-request-id: 460f158f-449d-493e-8f58-3fea48bda3ba
```json
{
"value": [
{
"type": "Microsoft.AppConfiguration/configurationStores",
"location": "westeurope",
"identity": {
"type": "None"
},
"properties": {
"provisioningState": "Succeeded",
"creationDate": "2023-06-07T08:30:35+00:00",
"endpoint": "https://appconf1ewtet.azconfig.io",
"encryption": {
"keyVaultProperties": null
},
"privateEndpointConnections": null,
"disableLocalAuth": false,
"softDeleteRetentionInDays": 7,
"enablePurgeProtection": false
},
"sku": {
"name": "standard"
},
"systemData": {
"createdBy": "12345678-1234-9876-4563-123456789012",
"createdByType": "Application",
"createdAt": "2023-06-07T08:30:35+00:00",
"lastModifiedBy": "12345678-1234-9876-4563-123456789012",
"lastModifiedByType": "Application",
"lastModifiedAt": "2023-06-07T08:30:36+00:00"
},
"id": "/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/wt-autoscalingtest/providers/Microsoft.AppConfiguration/configurationStores/appconf1ewtet",
"name": "APPConf1ewtet",
"tags": {}
},
...
],
"nextLink": "https://management.azure.com/subscriptions/12345678-1234-9876-4563-123456789012/providers/Microsoft.AppConfiguration/configurationStores?api-version=2023-03-01&$skipToken=testappconf230605111424875813"
}
```
### Resources_List
GET https://management.azure.com/subscriptions/{{subscriptionId}}/resources?api-version=2021-04-01&$filter=resourceType eq 'Microsoft.AppConfiguration/configurationStores'
x-ms-request-id: 1d6dc53b-496e-4bf1-b70e-5b2094a2bf2b
x-ms-correlation-request-id: 1d6dc53b-496e-4bf1-b70e-5b2094a2bf2b
```json
{
"value": [
{
"id": "/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/wt-autoscalingTest/providers/Microsoft.AppConfiguration/configurationStores/APPConf1ewtet",
"name": "APPConf1ewtet",
"type": "Microsoft.AppConfiguration/configurationStores",
"sku": {
"name": "standard"
},
"location": "westeurope",
"identity": {
"type": "None"
},
"tags": {},
"systemData": {
"createdBy": "12345678-1234-9876-4563-123456789012",
"createdByType": "Application",
"createdAt": "2023-06-07T08:30:35Z",
"lastModifiedBy": "12345678-1234-9876-4563-123456789012",
"lastModifiedByType": "Application",
"lastModifiedAt": "2023-06-07T08:30:36Z"
}
},
...
]
}
```
Contributor guide
Research direction
Start with the linked appconfiguration.json definitions for ConfigurationStores_List and the resources.json definition for Resources_List, comparing how each represents resource IDs and names. Determine whether the specification can capture case preservation or whether the discrepancy is service behavior; done when the expected casing and the required specification or service change are clearly established.
Written by the indexing model from the issue text.
Assessment
- Domain
- api, backend-api-design
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100