We have the same issue in Terraform when trying to recreate APIs and also with the API Management API for deleting the API Management Subscription keys. We also noticed that the issue was not in place when using the latest api-version=2023-09-01-preview
Unable to delete resources
When I try to delete a resource such as an API or subscription from my APIM instance, I receive error messages such as:
API Management
Could not delete operation Create resource. Please try again later. Correlation ID: 010ee6a0-1559-436f-8ba5-f9104704cd83 Timestamp: 2024-06-19T12:47:00.618Z
Failed to delete subscription
Invalid payload format. Contract should have 'properties' specified. Correlation ID: b11bc2d3-475b-4c7a-b982-e6c33288d3aa
I receive the error messages in multiple Azure regions, and in different Azure subscriptions.
Does someone have an idea what might be the issue?
11 answers
Sort by: Most helpful
-
Szczepankowski Maciej (CI/PLS5) 35 Reputation points
2024-06-20T05:55:52.6333333+00:00 -
Tony Petrov 0 Reputation points
2024-06-20T14:01:46.9933333+00:00 Do we have an SR for this issue? so we do not create multiples for it.
-
Cody Memmen 0 Reputation points
2024-06-20T14:08:17.14+00:00 We are seeing this same issue in Central US, but were able to use the Managment API to work around it for the moment.
-
Bichel, Yauhen 0 Reputation points
2024-06-20T15:08:54.5066667+00:00 The temp solution for adding lifecycle like here https://github.com/hashicorp/terraform-provider-azurerm/issues/23399 is working for us
lifecycle { ignore_changes = [api_id] }
-
Marek Grzenkowicz 0 Reputation points
2024-06-21T18:08:16.8966667+00:00 I am getting a different error today when trying to provision APIM with Terraform:
ValidationError: One or more fields contain incorrect values
Region: West Europe