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

Gerard Tobin 21 Reputation points

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

Accepted answer
  1. TP 17,036 Reputation points


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


    Please Accept Answer if the above was helpful.



0 additional answers

Sort by: Most helpful