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,901 questions
{count} votes

11 answers

Sort by: Most helpful
  1. JananiRamesh-MSFT 23,251 Reputation points
    2024-06-19T13:28:01.8533333+00:00

    @Nathan Hofstee Thanks for reaching out. There is an ongoing issue at service end where DELETE requests with api-version 2023-03-01-preview to APIM are returning 400 Bad Request with error message 'Invalid payload format. Contract should have 'properties' specified'.

    Sorry for the inconvenience caused by this issue. Our product team is actively investigating and we don't have any ETA/workaround for this. once we have any updates, I will update you here.

    do let me know incase of further queries, I would be happy to assist you.

    8 people found this answer helpful.

  2. Don van Meel | Twyzer 20 Reputation points
    2024-06-19T17:50:16.8966667+00:00

    We also had this problem in region West-europe. I have managed to delete an Api from Api Management.

    Workaround

    Go to Resources.azure.com

    Select Read/write (Default Read Only).

    2024-06-19 18_42_40-Readwrite

    Browse to your Resource Group.

    Find the Microsoft.ApiManagment provider.

    Select you api in the apis section.

    2024-06-19 18_38_27-Apim

    On the right side select the tab Actions (Post,Delete)

    2024-06-19 18_51_44-Delete

    Delete the api with the button Delete. Your api will be deleted. You can see the delete call to the api in the textbox near the button. It uses https://management.azure.com apiversion 01-01-2018 to delete the api.

    4 people found this answer helpful.

  3. Dirkx 1, Frank 5 Reputation points
    2024-06-19T14:20:41.1966667+00:00

    We experience the same issues when deleting an API, so keep us also informed.

    1 person found this answer helpful.
    0 comments No comments

  4. Herre Kuijpers 5 Reputation points
    2024-06-20T08:23:51.36+00:00

    For a client we're experiencing the same problem. Trying to remove an API from a Product results in: "Invalid payload format. Contract should have 'properties' specified."

    This problem occurred only after moving to the new API Managment stv2.1 instance.

    The problem is quite easy to reproduce: via the portal, in API Management create a new Product. Then assign the new product to the Echo API. Then go to the product details and try to remove the Echo api from the product. It will result in this error above.

    Still not clear how to resolve this issue.

    1 person found this answer helpful.

  5. Alain Sarkisian 0 Reputation points
    2024-06-19T16:24:20.2933333+00:00

    Hello,

    I am facing the same issue by creating a new APIM with Terraform, deployments of the APIM ends in failure:

    Api: "echo-api"): unexpected status 400 with error: ValidationError: Invalid payload format. Contract should have 'properties' specified.