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:
- Go to your Log Analytics Workspace in the Azure portal.
- 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".
- Click on "Agents configuration" or "Advanced settings".
- 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