Azure / Azure/azure-rest-api-specs
[BUG] "Microsoft.Maintenance/configurationAssignments@2023-04-01" returns `ResourceId` and `MaintenanceConfigurationId` in lowered case
- Dominant language
- TypeSpec
- Stars
- 3.1k
- Forks
- 5.9k
- Avg merge
- 2d 22h
- Merged PRs (30d)
- 444
Description
### API Spec link
https://github.com/Azure/azure-rest-api-specs/blob/4f4f1f7dc11e7446c62621607eb86c237dcb1d38/specification/maintenance/resource-manager/Microsoft.Maintenance/stable/2023-04-01/Maintenance.json#L727
### API Spec version
2023-04-01
### Describe the bug
The `ResourceId` and `MaintenanceConfigurationId` are both returned in lowered case, which shall be as same as input
***input***
resourceID: `/subscriptions/{sub_id}/resourceGroups/test-RG/providers/Microsoft.HybridCompute/machines/vm1`
MaintenanceConfigurationId:`/subscriptions/{sub_id}/resourceGroups/test-RG/providers/Microsoft.Maintenance/maintenanceConfigurations/TEST`
***response***
resourceID:`/subscriptions/{sub_id}/resourcegroups/test-rg/providers/microsoft.hybridcompute/machines/vm1`
MaintenanceConfigurationId:`/subscriptions/{sub_id}/resourcegroups/test-rg/providers/microsoft.maintenance/maintenanceconfigurations/test`
### Expected behavior
the returned value shall be as same as input
### Actual behavior
the returned values are lower-cased.
### Reproduction Steps
call `ConfigurationAssignments_Get` with an assigment resource
### Environment
_No response_
Contributor guide
Research direction
Start by reading specification/maintenance/resource-manager/Microsoft.Maintenance/stable/2023-04-01/Maintenance.json at line 727 and inspect the ConfigurationAssignments_Get response. Done means the specification accounts for ResourceId and MaintenanceConfigurationId being returned with the same casing as their inputs.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- openapi
- Domain
- api
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100