Name of a deleted azure api management service is already in use when trying to create a new api management service

Sybren 0 Reputation points
2025-11-19T11:08:31.9466667+00:00

Context

Important note: all resource names used in my question are examples

I am moving api management service "apimA" from tenant A, subscription A to tenant B subscription B.

apimA has been deleted several months ago (july this year), I am now trying to create the api management service with the same name (apimA) in subscription B.

Issue

When trying to create the api management service with name apimA I get the following error: Specified service name is already in use

What I have checked

  1. I have tried to check the soft-deleted status of apimA in subscription A, I could not recover it which suggests its "hard" deleted
  2. I ran the az storage account check-name command on tenant A and tenant B, the name apimA is available for use on tenant A, the name is not available for use in tenant B. This suggests the name is still reserved for tenant A and nobody else is using it.
  3. I deleted subscription A since I do not use it anymore, I also hoped it would clear any leftover soft-deleted resources from this subscription
  4. Unfortunately this meant that when I found this API: https://learn.microsoft.com/en-us/rest/api/apimanagement/deleted-services/purge?view=rest-apimanagement-2024-05-01&tabs=HTTP I can not try this anymore without subscription A

The api management name appears to stay reserved for tenant A despite the resources being deleted and the retention period having passed.

Question

Why is the name still locked to tenant A and how do I unlock it?

  • Is it possible that the api management is stuck in a pending deletion state?
  • Is there some other proces in azure that prevents the name from being released?
  • Can this resource somehow be purged so that the name becomes available again?

Thanks in advance!

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

1 answer

Sort by: Most helpful
  1. Rakesh Mishra 3,790 Reputation points Microsoft External Staff Moderator
    2025-11-28T13:44:44.03+00:00

    Hi @Sybren , thank you confirming over Private message that issue is resolved with the help of internal team in Microsoft technical support. With the details provided they were able to release the APIM name, and you would have been able to create APIM in new subscription.

    Please do let us know If you have any other questions in the "comments" and I would be happy to help you.

    User's image

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.