polling after CreateOrUpdate: polling failed

When updating an Azure APIM API using Pulumi (pulumi up) we started seeing this obscure error.

First thing to do is get more info via debug:
pulumi up –debug
(if you’re running this in a shell, make sure you’ve increased the buffer for the window (in…


This content originally appeared on DEV Community and was authored by Wallism

When updating an Azure APIM API using Pulumi (pulumi up) we started seeing this obscure error.

First thing to do is get more info via debug:
pulumi up --debug
(if you're running this in a shell, make sure you've increased the buffer for the window (in options) because there's alot of extra logs!)

Searching through that output we can see the PUT that tries to update the Open API (swagger), followed by a few GET polls to the same API. The value of note is the provisioningState, the first couple of calls were:

"provisioningState": "InProgress"

followed by a final:

"provisioningState": "Failed"

But no real info on what the issue actually is. To get that info we need to go into the APIM and manually try to update the Open API.

In the Azure portal, navigate to APIs in the APIM, each API name has an ellipse next to it, click the ellipse for the API that is having the issue, then select "Import", then OpenAPI and select the json file that has your OpenAPI from your machine:

apim openapi upload file

Click Import, then after a short amount of time you should see an error, ours came up like this:

polling failed actual error

From there should have enough info to resolve whatever the error is!


This content originally appeared on DEV Community and was authored by Wallism


Print Share Comment Cite Upload Translate Updates
APA

Wallism | Sciencx (2024-07-22T22:48:07+00:00) polling after CreateOrUpdate: polling failed. Retrieved from https://www.scien.cx/2024/07/22/polling-after-createorupdate-polling-failed/

MLA
" » polling after CreateOrUpdate: polling failed." Wallism | Sciencx - Monday July 22, 2024, https://www.scien.cx/2024/07/22/polling-after-createorupdate-polling-failed/
HARVARD
Wallism | Sciencx Monday July 22, 2024 » polling after CreateOrUpdate: polling failed., viewed ,<https://www.scien.cx/2024/07/22/polling-after-createorupdate-polling-failed/>
VANCOUVER
Wallism | Sciencx - » polling after CreateOrUpdate: polling failed. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2024/07/22/polling-after-createorupdate-polling-failed/
CHICAGO
" » polling after CreateOrUpdate: polling failed." Wallism | Sciencx - Accessed . https://www.scien.cx/2024/07/22/polling-after-createorupdate-polling-failed/
IEEE
" » polling after CreateOrUpdate: polling failed." Wallism | Sciencx [Online]. Available: https://www.scien.cx/2024/07/22/polling-after-createorupdate-polling-failed/. [Accessed: ]
rf:citation
» polling after CreateOrUpdate: polling failed | Wallism | Sciencx | https://www.scien.cx/2024/07/22/polling-after-createorupdate-polling-failed/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.