New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
IoTHub doesn't handle deletion correctly #2661
Comments
@akumardu can you please take a look or route this to right team |
ping @akumardu :) |
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @rkmanda, @chieftn. Issue Details馃憢 Hey - so we've been working through this PR hashicorp/terraform-provider-azurerm#887 which adds support for IoTHubs to Terraform, via the Azure SDK for Go (v12.5.0-beta, but it appears this is also present in v14 / the latest, so I believe it to be a valid bug). We're encountering a bug when attempting to delete the IoTHub that appears to be a bug in the Swagger; when deleting the IoTHub a long-running operation (LRO) is returned:
.. which initially returns a 200 OK:
.. and subsequently with a 404:
which should be detected by the SDK as a successfully deleted status code, however it continues polling until the timeout is reached in our case, an hour), at which point an error is thrown: Would it be possible to fix the Swagger so the SDK can return successful when deleted? Thanks!
|
馃憢
Hey - so we've been working through this PR hashicorp/terraform-provider-azurerm#887 which adds support for IoTHubs to Terraform, via the Azure SDK for Go (v12.5.0-beta, but it appears this is also present in v14 / the latest, so I believe it to be a valid bug).
We're encountering a bug when attempting to delete the IoTHub that appears to be a bug in the Swagger; when deleting the IoTHub a long-running operation (LRO) is returned:
.. which initially returns a 200 OK:
.. and subsequently with a 404:
which should be detected by the SDK as a successfully deleted status code, however it continues polling until the timeout is reached in our case, an hour), at which point an error is thrown:
Would it be possible to fix the Swagger so the SDK can return successful when deleted?
Thanks!
The text was updated successfully, but these errors were encountered: