How to find Azure Log Analytics Keys

When using Azure Log Analytics, whether its adding agents to the workspace, or accessing the REST API, you need two things to perform these tasks. The Customer ID, often called the Workspace ID and the Shared Key which is also referred to as a primary key. When you aren’t used to working in Log Analytics, different names for these can be confusing. This is how you can find Azure Log Analytics Keys in the Azure Portal and the OMS Workspace.

Azure Portal

When using the Azure portal ( you can find the keys you need under Log Analytics -> your Work Space name -> Advanced Settings

find azure log analytics workspace key azure log analytics workspace key

Operations Management Suite Workspace

If you are still using the old OMS Workspace, click the gear in the top right. Then select connected sources, Windows Servers. Your keys will be in the third pane.

azure log analytics workspace

Are you still using the old the workspace? You might want to consider moving to, as I imagine the workspace will go away.

That is how you find those keys. Remember when reading any documentation for Azure Log Analytics, CustomerID = Workspace ID and Shared Key = Primary Key.

Hi, I’m Billy York.  I work in Cloud and Datacenter, specializing in monitoring and automation. Here you’ll find posts about System Center Operations Manager, Powershell, Hyper-V, Azure Automation, Azure Log Analytics and other Microsoft related technologies.

2 thoughts on “How to find Azure Log Analytics Keys

Leave a Comment