While trying to rename an API via Terraform I noticed that I suddenly can not delete any APIs from API Management. There were no problems before, this just suddenly appeared and has persisted for about 2 days now. I have tried to do the deletion at different times throughout the 2 days and it never works.
I have dev and test APIM environments, both using Developer SKU and are identical in setup (deployed via the same terraform). APIM is in internal mode.
Problem occurs only in test env, dev is working fine. There were 13 APIs in test env when the problem surfaced.
Terraform threw this error:
Error: deleting API “xyz-api-v1” / Revision “” (API Management Service “xxxx-apim-service-test” / Resource Group “xxxx-apim-rg-test”): apimanagement.APIClient#Delete: Failure responding to request: StatusCode=422 — Original Error: autorest/azure: Service returned an error. Status=422 Code=”Timeout” Message=”Call to Management API xxxx-apim-service-test.management.azure-api.net:3443 timed out for the Developer SKU service which will have inherent capacity issues due to it’s scale. Please refer to SLA at https://aka.ms/apimsla and considering upgrading to a SKU Tier with higher SLA.
If I try to delete the API from the portal, then it throws this error:
I can create new APIs from the portal, but then can not delete them.
APIM logs show the same error as terraform. APIM portal is not reporting any problems.
Monitor reports capacity average mostly at 1% with some 3% peaks.