You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/api-management/api-management-howto-app-insights.md
+7-6Lines changed: 7 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -51,7 +51,7 @@ The following are high level steps for this scenario.
51
51
You can create a connection between Application Insights and your API Management using the Azure portal, the REST API, or related Azure tools. API Management configures a *logger* resource for the connection.
52
52
53
53
> [!IMPORTANT]
54
-
> Currently, in the portal, API Management only supports connections to Application Insights using an Application Insights instrumentation key. For enhanced security, we recommend using an Application Insights connection string with an API Management managed identity. To configure a connection string with a managed identity, use the [REST API](#create-a-connection-using-the-rest-api-bicep-or-arm-template) or related tools as shown in a later section of this article. [Learn more](../azure-monitor/app/sdk-connection-string.md) about Application Insights connection strings.
54
+
> Currently, in the portal, API Management only supports connections to Application Insights using an Application Insights instrumentation key. For enhanced security, we recommend using an Application Insights connection string with an API Management managed identity. To configure managed identity and connection string credentials, use the [REST API](#create-a-connection-using-the-rest-api-bicep-or-arm-template) or related tools as shown in a later section of this article. [Learn more](../azure-monitor/app/sdk-connection-string.md) about Application Insights connection strings.
55
55
>
56
56
57
57
> [!NOTE]
@@ -67,7 +67,7 @@ The following are high level steps for this scenario.
67
67
Follow these steps to use the Azure portal to create a connection between Application Insights and API Management.
68
68
69
69
> [!NOTE]
70
-
> Where possible, Microsoft recommends using a connection string with a managed identity for enhanced security. To configure a connection string with a managed identity, use the [REST API](#create-a-connection-using-the-rest-api-bicep-or-arm-template) or related tools as shown in a later section of this article.
70
+
> Where possible, Microsoft recommends using managed identity and connection string credentials for enhanced security. To configure these credentials, use the [REST API](#create-a-connection-using-the-rest-api-bicep-or-arm-template) or related tools as shown in a later section of this article.
71
71
72
72
73
73
1. Navigate to your **Azure API Management service instance** in the **Azure portal**.
@@ -91,15 +91,16 @@ Follow these steps to use the Azure portal to create a connection between Applic
91
91
92
92
## Create a connection using the REST API, Bicep, or ARM template
93
93
94
-
Follow these steps to use the REST API, Bicep, or ARM template to create an Application Insights logger for your API Management instance. You can configure a logger that uses a system-assigned or user-assigned managed identity with a connection string (recommended), or a logger that uses only a connection string.
94
+
Follow these steps to use the REST API, Bicep, or ARM template to create an Application Insights logger for your API Management instance. You can configure a logger that uses managed identity with connection string credentials (recommended), or a logger that uses only a connection string.
95
95
96
-
97
-
### Logger with system-assigned managed identity and connection string credentials
96
+
### Logger with managed identity and connection string credentials (recommended)
98
97
99
98
See the [prerequisites](#prerequisites) for using an API Management managed identity.
100
99
101
100
The Application Insights connection string appears in the **Overview** section of your Application Insights resource.
102
101
102
+
### System-assigned managed identity and connection string
103
+
103
104
#### [REST API](#tab/rest)
104
105
105
106
Use the API Management [Logger - Create or Update](/rest/api/apimanagement/current-preview/logger/create-or-update) REST API with the following request body.
@@ -158,7 +159,7 @@ Include a JSON snippet similar to the following in your Azure Resource Manager t
158
159
}
159
160
```
160
161
---
161
-
### Logger with user-assigned managed identity and connection string credentials
162
+
### User-assigned managed identity and connection string
162
163
163
164
See the [prerequisites](#prerequisites) for using an API Management managed identity.
0 commit comments