Sunday, September 24, 2023

Azure Web App APIs exposed to APIM

It is true we are living in a modern era where many tasks are automated. But I do not personally backoff from a great portal feature on Azure that can help make your life easy. Today I am going to show you how simplified is creating an APIM API referencing an API App deployed on the Azure Web App.

Finding this feature on an Azure Web App is very easy. You can just navigate through the service options and then can find API Management as a section.

Here you can easily select the API Management instance. Azure automatically picks up the API Management instances available in the tenant.

Then you can select an existing API or the option to Create a new API. 

Last option is about using an Open API specification. If you do not have one, it will be displayed as a warning. 

If you create a .NET Web Api, it will automatically contain a specification. Otherwise you will have to manually include one in the deployment package. 

If you do not have a specification and do not check this on the APIM will create an API with wild card entries to it. But it will create a good matching if an OpenAPI Specification is available. 

This looks a very easy way for a short term setup. But if you are to integrate more rules in the APIs, this might not be the ideal. In such situations it is always better to use either Infra-as-code capabilities for APIM or Swagger deployments.

No comments:

Post a Comment