Open In App

How to Set up Azure API Management?

Last Updated : 24 Oct, 2023
Improve
Improve
Like Article
Like
Save
Share
Report

Azure API Management is a totally controlled organization provided by Microsoft that allows you to create, put up, and manage APIs (Application Programming Interfaces) in your packages. It gives a scalable and regular manner to reveal your APIs to out of doors builders, partners, and customers, and allows you to govern get proper of entry to, show utilization, and have a look at rules in your APIs.

Steps To Set up Azure API Management

Follow the steps mentioned below to set up azure API management.

Step 1: Sign in to the Azure Portal

  • Go to the Azure portal (https://portal.Azure.Com/).
  • Sign in together along with your Azure account credentials.To know how to create Azure Virtual machines refer to What are Azure Virtual Machines?.
Azure Portal

 

Step 2: Create an API Management Instance

  • In the Azure portal, click on the “Create a resource” button.
  • Search for “API Management” inside the are seeking for bar and pick “API Management” from the search results.
  • Click on “Create” to start the advent procedure.

 Create an API Management Instance

 

 Create an API Management Instance

 

Step 3: Configure API Management Instance

  1. During the API Management instance advent technique, configure the following settings:
    1. Subscription: Choose your subscription.
    2. Resource institution: Choose an present day aid group or create a new one.
    3. Region: Choose the location in that you want your API Management example to be placed.
    4. Name: Provide a totally specific call for your API Management example. This may be a part of the URL in your API endpoints.
    5. Organization call: Provide the call of your organization.
    6. Administrator email: Provide an e-mail cope with for the administrator of the API Management example.
    7. Pricing tier: Choose the pricing tier that meets your requirements.
  2. Click on “Create” to create your API Management instance.
create your API Management instance.

 

Step 4: Create or Import APIs

  1. Log in to the Azure portal and navigate to the “API Management” blade.
  2. Select “APIs” from the left-hand menu.
  3. Click at the “Add API” button to begin growing a brand new API.
  4. Choose the choice that suits your desires. If you want to create an API from scratch, select “Blank API”. If you want to import an current API from Azure Functions,  Azure Logic Apps, or different assets, pick “API App”.
  5. Follow the on-display instructions to configure the API settings, inclusive of the URL, backend service, authentication, and guidelines.
  6. Once you’ve got finished configuring the API settings, click at the “Create” button to create the API.
  7. Your API will now appear in the listing of APIs within the Azure portal. You can edit its settings, upload operations, and control its lifecycle from this web page.

Create APIs

 

Import APIs

 

Step 5: Configure API Policies

  1. In the “API Management” blade, click on “APIs” within the left-hand menu.
  2. Click on the call of the API you need to configure regulations for.
  3. Click on “Policies” within the left-hand menu.
  4. Use the policy editor to configure pointers at one among a kind scopes, collectively with international, API, or operation diploma. Policies will assist you to personalize the behaviour of your APIs, which includes consisting of authentication, authorization, charge proscribing, caching, and logging.
Configure API Policies

 

Step 6:Configure API Products

  1. In the “API Management” blade, click on on on “Products” within the left-hand menu.
  2. Click on “Add” to create a latest product or pick out an current product.
  3. Configure the product settings, together with call, subscription, terms, and competencies.
  4. Click on “Create” to create the product.
  5. In the “APIs” tab of the product, companion the APIs which you want to consist of within the product.

Configure API Products

 

Configure API Products

 

Step 7: Publish APIs

  1. In the “API Management” blade, click on on on “APIs” inside the left-hand menu.
  2. Click at the name of the API you want to publish.
  3. Click on “Publish” within the left-hand menu.
  4. Choose the preferred publishing technique, collectively with “Internal”, “External”, or “Partner”.
  5. Follow the on-show commands to configure the publishing settings, collectively with authorization, protection, and utilization quotas.
  6. Click on “Create” to put up the API.
Publish APIs

 

Step 8: Monitor and Manage APIs

  1. Logging: You can configure logging settings to seize API usage and mistakes, set log retention recommendations, and export logs to garage alternatives for in addition assessment.
  2. Analytics: You can view and observe utilization analytics on your APIs, which encompass API calls, mistakes, latency, and reaction instances. You also can  configure indicators, installation custom dashboards, and export analytics information for in addition assessment.
  3. Developer Portal: The developer portal is a customizable portal that allows builders to find out, research, and take a look at your APIs. You can personalize its look, content, and behavior to suit your agency’s wishes.
  4. Manage APIs: You can manipulate severa additives of your APIs, consisting of versioning, lifecycle, safety, and get right of entry to control. You can also  configure  notifications, import/export APIs, and manipulate API certificates and domain names.
Monitor and Manage APIs

 

These skills in Azure API Management allow you to show and manipulate your APIs efficaciously, making sure their availability, performance, and safety, and presenting a continuing experience for builders who use your APIs.

FAQs On Azure API Management

1. What is Azure API Management?

Azure API management is fully managed by the Azure and it will helps you to publish, secure, monitor, and analyze your API’s.

2. What is the difference between Azure Gateway and API Management?

Azure Gateway will acts as an load balancer which will distribute the load across the virtual machines and API management is fully managed by the Azure and it will helps you to publish, secure, monitor, and analyze your API’s


Like Article
Suggest improvement
Share your thoughts in the comments

Similar Reads