How to call a saved Application Insights query from logic app query execution flow

Lance Lyons 86 Reputation points
2023-08-11T14:12:20.5366667+00:00

Hi, how do we execute a saved App insights query from a runbook in a logic app. Today we have to paste a new version of the script in the query execution section of a logic app execution flow.

for some reason application insights or log analytics workspaces was not in the tag area

Azure Logic Apps
Azure Logic Apps
An Azure service that automates the access and use of data across clouds without writing code.
3,551 questions
{count} votes

1 answer

Sort by: Most helpful
  1. MayankBargali-MSFT 70,941 Reputation points Moderator
    2023-08-24T05:53:35.8433333+00:00

    @Lance Lyons Thanks for reaching out. The logic app does have the Azure monitor logs connector and the available actions are listed here. As mentioned here the Azure Monitor Logs connector replaces the Azure Log Analytics connector and the Azure Application Insights connector now.

    As there are only two actions available currently and both have the Query parameter where you specify your query you would like to run. Unfortunately, there is no way to run the saved query using this connector. You need to either update the query in the query parameter of your action or leverage the HTTP action in case if there is any API/endpoint that can perform for your operation.

    Let me know if you have any queries or concerns.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.