Azure WebApp Extension to Log API Calls


The Moesif Azure Web App Extension is an agent that will log any incoming API requests into your Web App. This extension can be used in lieu of the standard SDK integrations if you are using Azure WebApps.

How to Install

1. Add Moesif Extension

Install the extension within the Azure Portal by selecting your webapp and then the Extensions subpanel.

Azure Portal Add Extension

Click Add button at the top, find the Moesif Extension, and click install.

2. Set Application Id

Goto your Azure Application Settings subpanel. Add a new key/value with the name MOESIF_APPLICATION_ID. You can find your Application Id from Moesif Dashboard -> Top Right Menu -> Extensions Setup -> Azure WebApp Extension

MOESIF_APPLICATION_ID: my_application_id

Azure Portal Add Extension

Configuration options

The extension supports a few additional app settings.

Setting Name Required? Description Example
MOESIF_APPLICATION_ID true Your Application Id from Moesif’s Settings to authorize this app with Moesif my_application_id
MOESIF_DISABLED false Disables Moesif Logging true
MOESIF_SESSION_TOKEN_HEADER false The Header Key you use internally for customer’s access token/session token X-My-Session-Token

These settings can be set as an app setting in your web.config or as an environment variable.

Checkout: for config options where mysite is the Azure sitename found in the Azure Portal.


Leave a Comment