polling after CreateOrUpdate: polling failed

wallism

Wallism

Posted on July 22, 2024

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 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!

💖 💪 🙅 🚩
wallism
Wallism

Posted on July 22, 2024

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related

What was your win this week?
weeklyretro What was your win this week?

November 29, 2024

Where GitOps Meets ClickOps
devops Where GitOps Meets ClickOps

November 29, 2024

How to Use KitOps with MLflow
beginners How to Use KitOps with MLflow

November 29, 2024

Modern C++ for LeetCode 🧑‍💻🚀
leetcode Modern C++ for LeetCode 🧑‍💻🚀

November 29, 2024