Which resources require workspace key to connect to Log Analytics workspaces ?

Julian D'Cruze 25 Reputation points
2023-05-01T19:47:44.5766667+00:00

Hello, I was just wondering which resources require the use of a workspace key to connect to a log analytics workspace? currently I know that VMs, containers and DevOps can use such a connection. However I was wondering if anyone knew of a concrete list of all resources that would require the workspace key to make that connection.

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,658 questions
0 comments No comments
{count} vote

Accepted answer
  1. AnuragSingh-MSFT 21,551 Reputation points Moderator
    2023-05-02T13:39:01.3066667+00:00

    @Julian D'Cruze , By "workspace key", do you mean the "Primary/Secondary Key" as available in Agents section of Log Analytics workspace's resource menu as shown below?

    User's image

    The keys available here serve as authentication for any resource sending information to LA workspace. It could be from VM (by installing agent) OR through API as mentioned here - Send log data to Log Analytics with the HTTP Data Collector API.

    Generally, all the resources in Azure send their Monitoring logs and metrics to this workspace. However, because they are part of Azure this authentication part is taken care of by Azure platform, hence you do not have to explicitly use these keys.

    For any resource fully owned by you (you application, VMs etc.) or resources which might not be part of Azure platform but would utilize API to send data, they need these keys to be able to authenticate as mentioned here - Send log data to Azure Monitor by using the HTTP Data Collector API (preview). There is no concrete list available now, because this will keep varying depending on the use case.

    Can you please share the reason for your search of such a list which might use this key?

    If your question was about something else, please share additional context/screenshots (as required) to help us understand this issue better.

    Hope this helps. Please let me know if you have any questions.

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