In this post, we will look at how to add Azure API Management (APIM) to an Azure App Service. We will follow on from our previous post where we created an Azure App Service.
There are a couple of ways to create an APIM.
First, browse out to your App Service. We will use the one we created earlier using ASP.NET Core. Under API, select API Management:
Click Create New:
Alternatively, you can go to API Management Services and Create New:
Provide a name, e.g. CRMAPIM:
Select the APIM once it is created:
We will add an OpenAPI, which we created in our previous post.
We will need the URL of our App Service swagger.json. To get this, browse out to the app service and add /v1/swagger.json:
Now. add the URL to the OpenAPI specification field. The other fields default. Click Create:
Select the API. We see our operations:
Under Settings, note we can keep or remove the subscription:
Now go to your App Service and click Browse:
Copy the URL of the app service that opens:
Then back in APIM select the App Service and paste the URL in the Web Service URL field:
Go to the Test tab and click Send.
We get a response back: