> For the complete documentation index, see [llms.txt](https://docs.scepman.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.scepman.com/azure-configuration/application-insights.md).

# Application Insights

{% hint style="info" %}
We recommend enabling Application Insights to receive a graphical representation of data about your SCEPman instance such as Failed requests, Availability, and Server response time over a given duration.
{% endhint %}

To activate the Application Insights for your App Service, please follow these instructions:

{% stepper %}
{% step %}

### Navigate to your SCEPman App Service

Azure > App Services > your SCEPman App Service (default name `app-scepman-<suffix>`)
{% endstep %}

{% step %}

### Select and Turn on Application Insights

On the lefthand menu, expand Monitoring > Application Insights

<figure><img src="https://2535731700-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LoGejQeUQcw7lqnQ3WX%2Fuploads%2FjkDubNnOsNUawZWG54qX%2Fimage.png?alt=media&amp;token=51482db8-8051-4039-9eea-5494667a5cab" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}

### Create a new Application Insights resource

<figure><img src="https://2535731700-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LoGejQeUQcw7lqnQ3WX%2Fuploads%2FVZVSTYffAHwaItmhAy1j%2Fimage.png?alt=media&amp;token=86903a80-8ce2-4944-be68-911ccab872cb" alt=""><figcaption></figcaption></figure>

#### Configure instrumentation

Under **Instrument your application**, select the **.NET Core (Linux)** or **.NET (Windows)** tab and set:

* **Collection level:** Recommended
* **Profiler:** On (default)
* **Snapshot debugger:** On (default)
* **Show local variables for exceptions:** Off

{% hint style="warning" %}
Keep **Show local variables** off. It delays SCEPman startup and can cause error messages.
{% endhint %}

<figure><img src="https://2535731700-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LoGejQeUQcw7lqnQ3WX%2Fuploads%2FMCAl5cIcXDiLrFSww3GY%2Fimage.png?alt=media&amp;token=5da8e611-eacc-4852-8a8f-c0128bfb9dc2" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}

### Apply settings

You're now set to use Application Insights for SCEPman!
{% endstep %}
{% endstepper %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.scepman.com/azure-configuration/application-insights.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
