Azure / Azure/azure-rest-api-specs
`iothub@2022-04-30-preview`: `IotHubResource_CreateOrUpdate` succeeded but `IotHubResource_Get` returned with 404
- Dominant language
- TypeSpec
- Stars
- 3.1k
- Forks
- 5.9k
- Avg merge
- 2d 22h
- Merged PRs (30d)
- 444
Description
When calling `IotHubResource_CreateOrUpdate` to update `disableLocalAuth` for an existing IotHub, it returned with
```
{"status":"Succeeded"}
```
but then a call on `IotHubResource_Get` with the same IotHub was returned with
```
{"error":{"code":"ResourceNotFound","message":"The Resource 'Microsoft.Devices/IotHubs/acctestIoTHub-231225062135493926' under resource group 'acctestRG-iothub-231225062135493926' was not found. For more details please go to https://aka.ms/ARMResourceNotFoundFix"}}
```
The update request Id: 6e753721-de0d-44c4-866b-2719ca08a28a
The get request Id: 1dcd4f28-feae-44ba-bedb-ea0c7804e1b0
Contributor guide
Research direction
Start by reviewing the Azure IoT Hub 2022-04-30-preview CreateOrUpdate and Get operations, using the supplied update and get request IDs to investigate the reported sequence. Done means determining why a successful update is followed by ResourceNotFound and addressing the discrepancy in the API specification; no file or test is named in the issue.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- azure
- Domain
- api
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100