Unable to delete resources

Nathan Hofstee 105 Reputation points
2024-06-19T12:52:26.34+00:00

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?

issue1

issue2

Azure API Management
Azure API Management
An Azure service that provides a hybrid, multi-cloud management platform for APIs.
1,908 questions
{count} votes

11 answers

Sort by: Most helpful
  1. Szczepankowski Maciej (CI/PLS5) 35 Reputation points
    2024-06-20T05:55:52.6333333+00:00

    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

    0 comments No comments

  2. 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.

    0 comments No comments

  3. 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.


  4. 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]
      }
    
    0 comments No comments

  5. 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

    0 comments No comments