question

zohaib-uddin-khan avatar image
0 Votes"
zohaib-uddin-khan asked MayankBargali-MSFT answered

Azure API Management - Create - is already in use. Please select a different name.

Hi Team,

Thanks for reading my post.

I'm trying to create a new Azure API Management through Portal. But, it always give me an exception that 'Name is already in use. Please select a different name'.

Since, I'm unable to find this name in my current subscription so I execute the Deleted Service API but its empty

{"value":[]}

Can anyone please suggest what shall I do? Thanks.


azure-api-management
· 5
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@zohaib-uddin-khan Can you confirm what name you are using while creating the APIM resource.

0 Votes 0 ·

@MayankBargali-MSFT Thanks for the quick reply. I'm trying to create the APIM with the name as 'CMS-APIM-Prod' under my subscription. Let me know if you need more information. Thanks.

0 Votes 0 ·

@zohaib-uddin-khan Can you confirm if you have multiple subscriptions as the request is coming from different subscription ID's and that is the reason you see the empty response. I will suggest you to execute the Deleted Service API on the same subscription where you have initially created the service.

Note: Please don't share your PI information (subscription ID) etc. here.

0 Votes 0 ·
Show more comments

1 Answer

MayankBargali-MSFT avatar image
1 Vote"
MayankBargali-MSFT answered

@zohaib-uddin-khan The APIM name is unique across the azure. As the name is already taken you will not able to use the same name. The Delete Service API will only return the result if there are any soft delete services available on your subscription. You can fine more details on soft delete document.

Initially the assumption was that you were not able to create the APIM instance with the same name on your existing subscription where you have delete it and the Delete Service API returns the empty response.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.