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

Anonymous
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.


Answer accepted by question author
TP 163.2K Reputation points Volunteer Moderator
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

Was this answer helpful?

7 people found this answer helpful.

0 additional answers

Sort by: Newest

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.