Api Management: Unable to activate API service at this time

tridy 5 Reputation points
2024-06-03T22:34:44.05+00:00

We had an APIM instance created with Standard SKU, but then we had to delete it (since there is no way of upgrading it) and create a new one with Standard V2 SKU this time. Since it was initially a soft delete, I had to delete it hard first and that looked like it worked.

After that, trying to create an instance (multiple times) with the same name as a deleted one would constantly fail with the following:

Conflict: { "status": "Failed", "error": { "code": "ActivationFailed", "message": "Unable to activate API service at this time. This could be temporary issue in the region. Please check https://aka.ms/azurestatus for any issues. If the issue persists after retry, please open a support case for your API management service using the Azure portal.Please provide correlationId 477f7b20-8703-4b3d-bdd4-add19f248ab0 and TimeStamp 6/3/2024 10:04:28 PM." } }

It did work to create an instance with a different/new name, but I wanted the old name.

Does anyone know what the problem could be?

I tried PowerShell, Cli, Azure Portal way to delete the API Management instance, and every time after the deletion, the query with az apim show it would correctly say that:

(ResourceNotFound) The Resource 'Microsoft.ApiManagement/service/XXXX' under resource group 'XXXX' was not found.

However, creating it with the same name still did not work.

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

1 answer

Sort by: Most helpful
  1. SwathiDhanwada-MSFT 18,551 Reputation points
    2024-06-04T05:40:35.33+00:00

    @tridy Thanks for reaching out. Kindly note that recovery and other operations on a soft-deleted instance are enabled through REST API version 2020-06-01-preview or later, or the Azure SDK for .NET, Go, or Python.

    I would suggest you delete the API management instance using this REST API and then try recreating new instance with same name.

    References: