Azure / Azure/azure-rest-api-specs

The id of "userAssignedIdentities" with resource group name in lowercase returned by IotHubResource_Get API

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

Description

The id of "userAssignedIdentities" with resource group name in lowercase returned by [IotHubResource_Get API ](https://github.com/Azure/azure-rest-api-specs/blob/52f9379c7709eb53f15b875b7de9b1abfa17f298/specification/iothub/resource-manager/Microsoft.Devices/stable/2021-07-02/iothub.json#L83) :

Repro steps:
1. Create a IotHub resource(the type of identity is "UserAssigned")
The resource group name in `userAssignedIdentities` is `resourceGroups` in the following request body:
```{
"identity":{
"type":"UserAssigned",
"userAssignedIdentities":{
"/subscriptions/XXX/resourceGroups/elenaTest/providers/Microsoft.ManagedIdentity/userAssignedIdentities/userAssignedIdentityTest":{
}
},
```

2. Call [IotHubResource_Get API ](https://github.com/Azure/azure-rest-api-specs/blob/52f9379c7709eb53f15b875b7de9b1abfa17f298/specification/iothub/resource-manager/Microsoft.Devices/stable/2021-07-02/iothub.json#L83) .\
The resource group name in `userAssignedIdentities` is `resourcegroups` in the following response body:
```
"identity": {
"type": "UserAssigned",
"userAssignedIdentities": {
"/subscriptions/XXX/resourcegroups/elenaTest/providers/Microsoft.ManagedIdentity/userAssignedIdentities/userAssignedIdentityTest": {
"clientId": "XXX",
"principalId": "XXX"
}
}
}
}
```

Expected:
The resource group name in `userAssignedIdentities` is `resourceGroups`

Actual:
The resource group name in `userAssignedIdentities` is `resourcegroups`

Contributor guide

Open the contributing guide

Research direction

Start with specification/iothub/resource-manager/Microsoft.Devices/stable/2021-07-02/iothub.json at the IotHubResource_Get definition and compare the documented identity key with the reported response. Reproduce the request if possible; done means the returned userAssignedIdentities resource-group segment retains the expected casing.

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
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.