How to send data from logic app to log analytics workspace using "Send data" connector

Najam ul Saqib 440 Reputation points
2025-07-24T09:46:57.64+00:00

I am unable to figure out from where to find workspace key in the "Send Data" logic app connector, all the solutions online refer to the old agents explanation that no longer works in new interface.

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

Accepted answer
  1. Akpesiri Ogbebor 2,700 Reputation points
    2025-07-30T15:37:20.5566667+00:00

    Hello Najam ul Saqib,

    Thanks for reaching out to MS Q&A. I can help you with fixing your issues.

    Most documentation or older blog posts often refer to the Log Analytics Workspace "Workspace Key" (also known as the Primary Key) in the context of legacy agent-based solutions like the MMA or OMS agents. However, the "Send Data" action in Azure Logic Apps, especially when using the HTTP Data Collector API, still relies on that workspace key, even though the UI has changed.

    Here's how to find the Workspace Key in the new Azure portal interface:

    1. Go to your Log Analytics Workspace in the Azure portal.
    2. In the left-hand menu, scroll down to "Agents configuration" under the "Settings" section. • Alternatively, in some newer interfaces, this may now be under "Workspace summary" > "Advanced settings".
    3. Click on "Agents configuration" or "Advanced settings".
    4. Under the "Workspace keys" tab: • You’ll find two keys: Primary key and Secondary key. • You can use either one (typically the Primary key) in your Logic App for authentication.

    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Siri

    0 comments No comments

0 additional answers

Sort by: Most helpful

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.