Where is Azure is the primary key and workspace id for a Log Analytics workspaces?

Gerard Tobin 21 Reputation points
2023-01-06T11:57:44.387+00:00

I am trying to use c# API for Log Analytics. I need the Primary Key and Workspace ID in order to connect. Where do I find these in Azure?

Azure Monitor
Azure Monitor
An Azure service that is used to collect, analyze, and act on telemetry data from Azure and on-premises environments.
3,378 questions
{count} votes

Accepted answer
  1. TP 100.2K Reputation points
    2023-01-06T12:03:23.75+00:00

    Hi,

    Open your workspace in the Azure portal, then Agents management, click arrow to expand Log Analytics agent instructions. Similar to below sample:

    276730-log-analytics-workspace-id-and-keys.jpg

    Please Accept Answer if the above was helpful.

    Thanks.

    -TP

    5 people found this answer helpful.

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.