Azure / Azure/azure-rest-api-specs

`Microsoft.MachineLearningServices` associated resource IDs in workspace are not preserving proper casing

Open
#8,323 8 comments 0 reactions 0 assignees View on GitHub
ADO Machine Learning ML-Workspace Management Service Attention
Dominant language
TypeSpec
Stars
3.1k
Forks
5.9k
Avg merge
3d 2h
Merged PRs (30d)
424

Description

REST API URL:
```
PUT /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-resources/providers/Microsoft.MachineLearningServices/workspaces/test-Workspace?api-version=2019-11-01 HTTP/1.1
```
Body:
```
{
"identity": {
"type": "SystemAssigned"
},
"location": "westus",
"properties": {
"keyVault": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-resources/providers/Microsoft.KeyVault/vaults/testVault",
"applicationInsights": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-resources/providers/microsoft.insights/components/test-AppInsights",
"storageAccount": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-resources/providers/Microsoft.Storage/storageAccounts/teststorageaccount"
},
"sku": {
"name": "Basic"
},
"tags": {}
}
```
After the creation complete, perform a GET request:
```
GET /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-resources/providers/Microsoft.MachineLearningServices/workspaces/test-Workspace?api-version=2019-11-01 HTTP/1.1
```
Response:
```
{
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-resources/providers/Microsoft.MachineLearningServices/workspaces/test-Workspace",
"name": "test-workspace",
"type": "Microsoft.MachineLearningServices/workspaces",
"location": "westus",
"tags": {},
"etag": null,
"properties": {
"friendlyName": "",
"description": "",
"creationTime": "2020-02-06T06:54:56.5115492+00:00",
"storageAccount": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test-resources/providers/microsoft.storage/storageaccounts/teststorageaccount",
"containerRegistry": null,
"keyVault": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test-resources/providers/microsoft.keyvault/vaults/testvault",
"applicationInsights": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test-resources/providers/microsoft.insights/components/test-appinsights",
"hbiWorkspace": false,
"tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47",
"workspaceId": "d4cfc4fe-1cd7-4881-bc8a-83ca8aaff7cb",
"subscriptionState": null,
"subscriptionStatusChangeTimeStampUtc": null,
"discoveryUrl": "https://westus.experiments.azureml.net/discovery"
},
"identity": {
"type": "SystemAssigned",
"principalId": "539eb439-c316-49af-85af-e462e2ed0b90",
"tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47"
},
"sku": {
"name": "Basic",
"tier": "Basic"
}
}
```
The IDs in the response lost all their casing, for instance:
* `resourceGroups` -> `resourcegroup`
* `testVault` -> `testvault`
* `test-AppInsights` -> `test-appinsights`

Contributor guide

Open the contributing guide

Research direction

Start with the REST API PUT and GET request/response examples in this issue and compare the submitted associated resource IDs with the returned values. Determine where the casing is specified or transformed, then consider the issue complete when the response preserves the original casing for resourceGroups, vaults, storageAccounts, and applicationInsights.

Written by the indexing model from the issue text.

Assessment

Tech stack
openapi
Domain
api
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.