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.
1,919 questions
No comments
{count} votes

Accepted answer
  1. TP 16,516 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


0 additional answers

Sort by: Newest