Azure / azure-rest-api-specs

The source for REST API specifications for Microsoft Azure.
MIT License
2.63k stars 5.08k forks source link

Security.ServerVulnerabilityAssessment API failed to delete the Server Vulnerability Assessment #12308

Open neil-yechenwei opened 3 years ago

neil-yechenwei commented 3 years ago

After tested, API failed to delete the Server Vulnerability Assessment and threw below error message. After confirmed with service team, seems it's a bug. Hopes it could be fixed by service team asap since we're blocked on this issue.

DELETE https://management.azure.com/subscriptions/xx-xx-xx-xx/resourceGroups/xxxxxx/providers/Microsoft.Compute/virtualMachines/xxxxx/providers/Microsoft.Security/serverVulnerabilityAssessments/default

Error message:
security.ServerVulnerabilityAssessmentClient#Delete: Failure responding to request: StatusCode=202 -- Original Error: autorest/azure: error response cannot be parsed: "" error: EOF
ghost commented 3 years ago

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @chlahav.

Issue Details
After tested, API failed to delete the Server Vulnerability Assessment and threw below error message. After confirmed with service team, seems it's a bug. Hopes it could be fixed by service team asap since we're blocked on this issue. ``` DELETE https://management.azure.com/subscriptions/xx-xx-xx-xx/resourceGroups/xxxxxx/providers/Microsoft.Compute/virtualMachines/xxxxx/providers/Microsoft.Security/serverVulnerabilityAssessments/default Error message: security.ServerVulnerabilityAssessmentClient#Delete: Failure responding to request: StatusCode=202 -- Original Error: autorest/azure: error response cannot be parsed: "" error: EOF ```
Author: neil-yechenwei
Assignees: PhoenixHe-msft
Labels: `Security`, `Service Attention`, `needs-triage`
Milestone: -
ArcturusZhang commented 3 years ago

This is a swagger bug - this API appears to be an async operation (otherwise it would not return 202 as response code), but it is not marked as long-running-operation in the swagger which results in an SDK with issues.