Procedure for Migrating API App used in production to API Management Service

David 0 Reputation points
2025-06-17T17:38:53.3166667+00:00

We have an existing API App that has been public and used in production for several years. We are now seeing some abuse of the API and need to move it under API Management Service to enable rate limiting features. We are currently accessing the API via the xxx.azurewebsites.us domain and would like to keep that setup if possible.

Can someone please share the procedure for this setup migration to minimize disruption of API services?

We do not currently have any API Management Services created. The API App is an ASP app running under a "Azure Government Pay-As-You-Go" model currently.

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
8,930 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Shree Hima Bindu Maganti 4,775 Reputation points Microsoft External Staff Moderator
    2025-06-17T18:41:43.6733333+00:00

    Hi @David
    To migrate your existing API App to Azure API Management Service,
    Create an API Management Instance:

    • In the Azure portal, search for API Management and select Create.
    • Fill in the required information such as subscription, resource group, region, resource name, organization name, and administrator email.
    • Choose the appropriate pricing tier based on your needs.

    Integrate Your API App with API Management:

    • Once the API Management instance is created, add your existing API App to it.
    • In the API Management instance, navigate to the APIs section and select Add API.
    • Choose the option to import from an existing app and provide the necessary details to link your API App.

    Configure Rate Limiting and Other Policies

    • After adding your API, configure policies such as rate limiting, throttling, and security settings to protect your API from abuse.
    • Set up these policies in the Design section of your API Management instance.

    Update DNS Settings:

    • If you want to keep using the existing domain (xxx.azurewebsites.us), configure a custom domain in your API Management instance.
    • This involves setting up a CNAME record in your DNS settings that points to your API Management instance.

    Test the API:

    • Before fully switching over, test the API through the API Management interface to ensure that all functionalities work as expected.

    Switch Traffic to API Management:

    • Once you have confirmed that everything is functioning correctly, start directing traffic to your API Management instance.

    Monitor and Optimize:

    0 comments No comments

Your answer

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