Skip to content

Commit a32371a

Browse files
author
Glenn Gailey
committed
Move setup to the bottom
1 parent 1bc57e7 commit a32371a

File tree

1 file changed

+23
-23
lines changed

1 file changed

+23
-23
lines changed

articles/azure-functions/functions-monitoring.md

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -21,29 +21,6 @@ You can try out Application Insights integration with Function Apps for free. Th
2121

2222
The full list of Application Insights features available to your function app is detailed in [Application Insights for Azure Functions supported features](../azure-monitor/app/azure-functions-supported-features.md).
2323

24-
## Enable Application Insights integration
25-
26-
For a function app to send data to Application Insights, it needs to know the instrumentation key of an Application Insights resource. The key must be in an app setting named **APPINSIGHTS_INSTRUMENTATIONKEY**.
27-
28-
When you create your function app [in the Azure portal](functions-create-first-azure-function.md), from the command line by using [Azure Functions Core Tools](functions-create-first-azure-function-azure-cli.md), or by using [Visual Studio Code](functions-create-first-function-vs-code.md), Application Insights integration is enabled by default. The Application Insights resource has the same name as your function app, and it's created either in the same region or in the nearest region.
29-
30-
### New function app in the portal
31-
32-
To review the Application Insights resource being created, select it to expand the **Application Insights** window. You can change the **New resource name** or choose a different **Location** in an [Azure geography](https://azure.microsoft.com/global-infrastructure/geographies/) where you want to store your data.
33-
34-
![Enable Application Insights while creating a function app](media/functions-monitoring/enable-ai-new-function-app.png)
35-
36-
When you choose **Create**, an Application Insights resource is created with your function app, which has the `APPINSIGHTS_INSTRUMENTATIONKEY` set in application settings. Everything is ready to go.
37-
38-
<a id="manually-connect-an-app-insights-resource"></a>
39-
### Add to an existing function app
40-
41-
When you create a function app using [Visual Studio](functions-create-your-first-function-visual-studio.md), you must create the Application Insights resource. You can then add the instrumentation key from that resource as an application setting in your function app.
42-
43-
[!INCLUDE [functions-connect-new-app-insights.md](../../includes/functions-connect-new-app-insights.md)]
44-
45-
Early versions of Functions used built-in monitoring, which is no longer recommended. When enabling Application Insights integration for such a function app, you must also [disable built-in logging](#disable-built-in-logging).
46-
4724
## View telemetry in Monitor tab
4825

4926
With [Application Insights integration enabled](#enable-application-insights-integration), you can view telemetry data in the **Monitor** tab.
@@ -565,6 +542,29 @@ You can write custom code to show the dependencies. For examples, see the sample
565542

566543
![Application map](./media/functions-monitoring/app-map.png)
567544

545+
## Enable Application Insights integration
546+
547+
For a function app to send data to Application Insights, it needs to know the instrumentation key of an Application Insights resource. The key must be in an app setting named **APPINSIGHTS_INSTRUMENTATIONKEY**.
548+
549+
When you create your function app [in the Azure portal](functions-create-first-azure-function.md), from the command line by using [Azure Functions Core Tools](functions-create-first-azure-function-azure-cli.md), or by using [Visual Studio Code](functions-create-first-function-vs-code.md), Application Insights integration is enabled by default. The Application Insights resource has the same name as your function app, and it's created either in the same region or in the nearest region.
550+
551+
### New function app in the portal
552+
553+
To review the Application Insights resource being created, select it to expand the **Application Insights** window. You can change the **New resource name** or choose a different **Location** in an [Azure geography](https://azure.microsoft.com/global-infrastructure/geographies/) where you want to store your data.
554+
555+
![Enable Application Insights while creating a function app](media/functions-monitoring/enable-ai-new-function-app.png)
556+
557+
When you choose **Create**, an Application Insights resource is created with your function app, which has the `APPINSIGHTS_INSTRUMENTATIONKEY` set in application settings. Everything is ready to go.
558+
559+
<a id="manually-connect-an-app-insights-resource"></a>
560+
### Add to an existing function app
561+
562+
When you create a function app using [Visual Studio](functions-create-your-first-function-visual-studio.md), you must create the Application Insights resource. You can then add the instrumentation key from that resource as an application setting in your function app.
563+
564+
[!INCLUDE [functions-connect-new-app-insights.md](../../includes/functions-connect-new-app-insights.md)]
565+
566+
Early versions of Functions used built-in monitoring, which is no longer recommended. When enabling Application Insights integration for such a function app, you must also [disable built-in logging](#disable-built-in-logging).
567+
568568
## Report issues
569569

570570
To report an issue with Application Insights integration in Functions, or to make a suggestion or request, [create an issue in GitHub](https://github.com/Azure/Azure-Functions/issues/new).

0 commit comments

Comments
 (0)