AzureRM REST API bug - HTTP response code for DELETE method of /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/projects/{projectName}
#132
Unanswered
shigeyf
asked this question in
Product Feedback and Ideas
Replies: 1 comment
-
@shigeyf would this be a good Potential Workaround Suggestions
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Technical Feedback
AzureRM REST API Spec for Azure AI Services (CognitiveServices) seems to have an inconsistency against the real implementation.
The "DELETE" method for AI Foundry Project resources (
Microsoft.CognitiveServices/accounts/{accountName}/projects/{projectName}
) actually returns HTTP status code 200 as response.But the spec says, "Returns HTTP status code 202 or 204". Please see the spec doc as below:
https://github.com/Azure/azure-rest-api-specs/blob/main/specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2025-06-01/cognitiveservices.json#L3865
Desired Outcome
The REST API Spec files should be consistent with the AzureRM REST API implementation.
This is because the REST API Spec files are used for many implementation of 1P/3P Azure SDKs.
The inconsistency of response codes causes the problem.
Current Workaround
No workaround without the suggested fix above.
Beta Was this translation helpful? Give feedback.
All reactions