Troubleshoot - Azure Api App

1 minute read | By Prashanth Madi

An API app is an App Service web app with additional features that enhance the experience of developing, deploying, publishing, consuming, managing, and monetizing RESTful web APIs.

For More information Please refer : https://azure.microsoft.com/en-us/documentation/articles/app-service-api-apps-why-best-platform/

This Blog would provide Troubleshoot techniques in API APP.

1)     If you change your API definition file, than you have to manually restart gateway to reflect new API definition changes in portal. Below is a procedure for it

  • Click on resource group in api app, It would open up a new blade


 

  • Click on your gateway and restart

  • I have added new operation using above procedure as in below image.

 

2)     Use Swagger Editor to check if issue is with API App definition file or Azure API Service.
Azure portal doesn’t provide enough info to troubleshoot Api app issue other than below error which has a link for un-related content. Even kudu logs won’t help you with this issue as it’s not an application specific.

Error: Cannot get the API definition. it may require additional configuration or authentication on the API app.

Sample api-defination url : https://microsoft-apiapp1b423cc9b3f6433692737d88d9d40511.azurewebsites.net/v1/api-docs

Swagger editor Link: http://editor.swagger.io/#/

  • Open swagger editor link in browser and use import url option under file nav. I have provided my api-defination url above, if you wanna play around.

  • If your definition file is not well-formed, you would see errors as in right column of below image.