Skip to content

Commit ec8f1a7

Browse files
authored
Merge pull request #206482 from guywi-ms/Add-visualize-connector-limitation
Updated Logic App tutorials with visualize connector limitation
2 parents 03e8d9a + 6bc3ea0 commit ec8f1a7

File tree

4 files changed

+102
-87
lines changed

4 files changed

+102
-87
lines changed

articles/azure-monitor/app/automate-with-logic-apps.md

Lines changed: 44 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -2,64 +2,69 @@
22
title: Automate Azure Application Insights processes by using Logic Apps
33
description: Learn how you can quickly automate repeatable processes by adding the Application Insights connector to your logic app.
44
ms.topic: conceptual
5-
ms.date: 03/11/2019
5+
ms.date: 07/31/2022
6+
author: guywild
7+
ms.author: guywild
8+
ms.reviewer: yossi-y
69
---
710

811
# Automate Application Insights processes by using Logic Apps
912

1013
Do you find yourself repeatedly running the same queries on your telemetry data to check whether your service is functioning properly? Are you looking to automate these queries for finding trends and anomalies and then build your own workflows around them? The Azure Application Insights connector for Logic Apps is the right tool for this purpose.
1114

1215
> [!NOTE]
13-
> The Azure Application Insights connector has been replaced with the [Azure Monitor connector](../logs/logicapp-flow-connector.md) that is integrated with Azure Active Directory instead of requiring an API key and also allows you to retrieve data from a Log Analytics workspace.
16+
> The Azure Application Insights connector has been replaced by the [Azure Monitor connector](../logs/logicapp-flow-connector.md), which is integrated with Azure Active Directory instead of requiring an API key and also allows you to retrieve data from a Log Analytics workspace.
1417
1518
With this integration, you can automate numerous processes without writing a single line of code. You can create a logic app with the Application Insights connector to quickly automate any Application Insights process.
1619

17-
You can add additional actions as well. The Logic Apps feature of Azure App Service makes hundreds of actions available. For example, by using a logic app, you can automatically send an email notification or create a bug in Azure DevOps. You can also use one of the many available [templates](../../logic-apps/logic-apps-create-logic-apps-from-templates.md) to help speed up the process of creating your logic app.
20+
You can also add other actions. The Logic Apps feature of Azure App Service makes hundreds of actions available. For example, by using a logic app, you can automatically send an email notification or create a bug in Azure DevOps. You can also use one of the many available [templates](../../logic-apps/logic-apps-create-logic-apps-from-templates.md) to help speed up the process of creating your logic app.
1821

1922
## Create a logic app for Application Insights
2023

2124
In this tutorial, you learn how to create a logic app that uses the Analytics autocluster algorithm to group attributes in the data for a web application. The flow automatically sends the results by email, just one example of how you can use Application Insights Analytics and Logic Apps together.
2225

2326
### Step 1: Create a logic app
2427
1. Sign in to the [Azure portal](https://portal.azure.com).
25-
1. Click **Create a resource**, select **Web + Mobile**, and then select **Logic App**.
28+
1. Select **Create a resource** > **Web + Mobile** > **Logic App**.
2629

27-
![New logic app window](./media/automate-with-logic-apps/1createlogicapp.png)
30+
![Screenshot that shows the New logic app window.](./media/automate-with-logic-apps/1createlogicapp.png)
2831

2932
### Step 2: Create a trigger for your logic app
30-
1. In the **Logic App Designer** window, under **Start with a common trigger**, select **Recurrence**.
33+
1. In the **Logic Apps Designer** window, under **Start with a common trigger**, select **Recurrence**.
3134

32-
![Logic App Designer window](./media/automate-with-logic-apps/2logicappdesigner.png)
35+
![Screenshot that shows the Logic App Designer window.](./media/automate-with-logic-apps/2logicappdesigner.png)
3336

3437
1. In the **Interval** box, type **1** and then,**Frequency** box, select **Day**.
3538

36-
![Logic App Designer "Recurrence" window](./media/automate-with-logic-apps/3recurrence.png)
39+
![Screenshot that shows the Logic Apps Designer "Recurrence" window.](./media/automate-with-logic-apps/3recurrence.png)
3740

3841
### Step 3: Add an Application Insights action
39-
1. Click **New step**.
42+
1. Select **New step**.
4043

4144
1. In the **Choose an action** search box, type **Azure Application Insights**.
4245

43-
1. Under **Actions**, click **Azure Application Insights - Visualize Analytics query**.
46+
1. Under **Actions**, select **Azure Application Insights - Visualize Analytics query**.
4447

45-
![Logic App Designer "Choose an action" window](./media/automate-with-logic-apps/4visualize.png)
48+
![Screenshot that shows the Logic App Designer "Choose an action" window.](./media/automate-with-logic-apps/4visualize.png)
4649

4750
### Step 4: Connect to an Application Insights resource
4851

49-
To complete this step, you need an application ID and an API key for your resource. You can retrieve them from the Azure portal, as shown in the following diagram:
52+
To complete this step, you need an application ID and an API key for your resource:
5053

51-
![Screenshot shows the API Access page in the Azure portal with the Create API key button selected.](./media/automate-with-logic-apps/5apiaccess.png)
54+
1. Select **API access** > **Create API key**:
5255

53-
![Application ID in the Azure portal](./media/automate-with-logic-apps/6apikey.png)
56+
![Screenshot shows the API Access page in the Azure portal with the Create API key button selected.](./media/automate-with-logic-apps/5apiaccess.png)
57+
58+
![Screenshot that shows the Application ID in the Azure portal.](./media/automate-with-logic-apps/6apikey.png)
5459

55-
Provide a name for your connection, the application ID, and the API key.
60+
1. Provide a name for your connection, the application ID, and the API key.
5661

57-
![Logic App Designer flow connection window](./media/automate-with-logic-apps/7connection.png)
62+
![Screenshot that shows the Logic App Designer flow connection window.](./media/automate-with-logic-apps/7connection.png)
5863

5964
### Step 5: Specify the Analytics query and chart type
6065
In the following example, the query selects the failed requests within the last day and correlates them with exceptions that occurred as part of the operation. Analytics correlates the failed requests, based on the operation_Id identifier. The query then segments the results by using the autocluster algorithm.
6166

62-
When you create your own queries, verify that they are working properly in Analytics before you add it to your flow.
67+
When you create your own queries, verify that they're working properly in Analytics before you add it to your flow.
6368

6469
1. In the **Query** box, add the following Analytics query:
6570

@@ -76,59 +81,61 @@ When you create your own queries, verify that they are working properly in Analy
7681
7782
1. In the **Chart Type** box, select **Html Table**.
7883
79-
![Analytics query configuration window](./media/automate-with-logic-apps/8query.png)
84+
![Screenshot that shows the Analytics query configuration window.](./media/automate-with-logic-apps/8query.png)
8085
8186
### Step 6: Configure the logic app to send email
8287
83-
1. Click **New step**.
88+
1. Select **New step**.
8489
8590
1. In the search box, type **Office 365 Outlook**.
8691
87-
1. Click **Office 365 Outlook - Send an email**.
92+
1. Select **Office 365 Outlook - Send an email**.
8893
89-
![Office 365 Outlook selection](./media/automate-with-logic-apps/9sendemail.png)
94+
![Screenshot that shows the Send an email button on the Office 365 Outlook screen.](./media/automate-with-logic-apps/9sendemail.png)
9095
91-
1. In the **Send an email** window, do the following:
96+
1. In the **Send an email** window:
9297
9398
a. Type the email address of the recipient.
9499
95100
b. Type a subject for the email.
96101
97-
c. Click anywhere in the **Body** box and then, on the dynamic content menu that opens at the right, select **Body**.
102+
c. Select anywhere in the **Body** box and then, on the dynamic content menu that opens at the right, select **Body**.
98103
99-
d. Click the **Add new parameter** drop down and select Attachments and Is HTML.
104+
d. Select the **Add new parameter** dropdown and select Attachments and Is HTML.
100105
101-
![Screenshot shows the Send an email window with the Body box highlighted and the Dynamic content menu with Body highlighted on the right side.](./media/automate-with-logic-apps/10emailbody.png)
106+
![Screenshot that shows the Send an email window with the Body box highlighted and the Dynamic content menu with Body highlighted on the right side.](./media/automate-with-logic-apps/10emailbody.png)
102107
103-
![Office 365 Outlook configuration](./media/automate-with-logic-apps/11emailparameter.png)
108+
![Screenshot that shows the Add new parameter dropdown in the Send an email window with the Attachments and Is HTML checkboxes selected](./media/automate-with-logic-apps/11emailparameter.png)
104109
105-
1. On the dynamic content menu, do the following:
110+
1. On the dynamic content menu:
106111
107112
a. Select **Attachment Name**.
108113
109114
b. Select **Attachment Content**.
110115
111116
c. In the **Is HTML** box, select **Yes**.
112117
113-
![Office 365 email configuration screen](./media/automate-with-logic-apps/12emailattachment.png)
118+
![Screenshot that shows the Office 365 email configuration screen.](./media/automate-with-logic-apps/12emailattachment.png)
114119
115120
### Step 7: Save and test your logic app
116-
* Click **Save** to save your changes.
117-
118-
You can wait for the trigger to run the logic app, or you can run the logic app immediately by selecting **Run**.
119121
120-
![Logic app creation screen](./media/automate-with-logic-apps/13save.png)
122+
1. Select **Save** to save your changes.
121123
122-
When your logic app runs, the recipients you specified in the email list will receive an email that looks like the following:
123-
124-
![Logic app email message](./media/automate-with-logic-apps/flow9.png)
124+
You can wait for the trigger to run the logic app, or you can run the logic app immediately by selecting **Run**.
125+
126+
![Screenshot that shows the Save button on the Logic Apps Designer screen](./media/automate-with-logic-apps/13save.png)
127+
128+
When your logic app runs, the recipients you specified in the email list will receive an email that looks like this:
129+
130+
![Image showing email message generated by logic app with query result set](./media/automate-with-logic-apps/email-generated-by-logic-app-generated-email.png)
125131
132+
> [!NOTE]
133+
> The log app generates an email with a JPG file that depicts the query result set. If your query doesn't return results, the logic app won't create a JPG file.
134+
126135
## Next steps
127136
128137
- Learn more about creating [Analytics queries](../logs/get-started-queries.md).
129138
- Learn more about [Logic Apps](../../logic-apps/logic-apps-overview.md).
130139
131140
132141
133-
<!--Link references-->
134-
169 KB
Loading
Binary file not shown.

0 commit comments

Comments
 (0)