skip to Main Content

I am using APIM v2 tier, when i first created the instance I got the default api gateway and when i import an api it takes that default uri in the servers url section like following:

"servers": [{
        "url": "https://test-apim.azure-api.net/staging/data-product/base"
    }],

Then i have created a custom domain with the name apis.mydomain.de , then i deleted that custom domain(apis.mydomain.de) but unfortunately now whenever i create a new api i got the server url like this:

"servers": [{
        "url": "https://apis.mydomain.de/staging/data-product/base"
     }],

and when I got to settings to verify the Base URL I actually find it pointing to the default gateway(which is correct); but when i open the developer portal or open the api specification as json i found it pointing on the deleted custom domain

I tried to change the server url diectly on the json specification, when i save it appears saved but all my changes got discarded and remains with the wrong server url.

here i attach a screenshot of the custom domain blade
enter image description here

A solution or an explanation for this would really help.

2

Answers


  1. Chosen as BEST ANSWER

    So, after opening a ticket to Microsoft support, it appreared to be an issue from their side happening in the v2 tiers.


  2. To access the default gateway after deleting the custom domain, verify the following-

    1. Make sure, the APIM instance is in Online state post deletion.
    2. Developer plan or higher comes with Default SSL binding option but not standard plan. If the custom domain deleted successfully then by default it will point to the default gateway.
    3. Publish the Developer portal site after making the changes in the APIM instance.
    4. Try to create a new API and check the base URL for the same.
    5. You can also validate the gateway URL and Developer Portal in Overview blade.

    enter image description here

    If you are still getting the deleted custom domain endpoints then I would suggest you to create a fresh instance.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search