Where can I find the LAW Primary Key?

Scott Miles 20 Reputation points
2025-12-01T05:49:46.21+00:00

Hello all,

I am trying to send logic app output from a rest API query into a LAW to be ingested into Sentinel.

The send data portion in the logic app requires workspace ID and Primary Key for the target LAW.

I have looked at the agent page:
User's image

I have also looked at the legacy agent management:

User's image

I can't for the life of me find the primary key.

Any help would be appreciated!

Azure Logic Apps
Azure Logic Apps
An Azure service that automates the access and use of data across clouds without writing code.
0 comments No comments
{count} votes

Answer accepted by question author
  1. Siddhesh Desai 650 Reputation points Microsoft External Staff Moderator
    2025-12-01T06:15:57.82+00:00

    Hi Scott Miles

    Thank you for reaching out to Microsoft Q&A

    The Log analytics Primary key was not visible in Portal in Agents section for me as well.

    As a workaround, you can use below Azure CLI command to fetch the Primary Key.

    I have run this command in the Cloud Shell:

    az monitor log-analytics workspace get-shared-keys \
       --resource-group siliconfuncstrg \
       --workspace-name valleylaw01 \
       --query "primarySharedKey"
    

    Output-User's image

    0 comments No comments

0 additional answers

Sort by: Most helpful

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.