Skip to content

Commit 6ae5088

Browse files
authored
Update Azure Monitor Log stream setup instructions
As per [this discussion](https://developercommunity.visualstudio.com/t/Audit-streaming-for-Azure-monitor-is-br/11001356#T-ND11003431) in the Developer community
1 parent bd88276 commit 6ae5088

File tree

1 file changed

+16
-9
lines changed

1 file changed

+16
-9
lines changed

docs/organizations/audit/auditing-streaming.md

Lines changed: 16 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -108,16 +108,23 @@ Once you have your Event Grid stream configured, you can set up subscriptions on
108108
### Set up an Azure Monitor Log stream
109109

110110
1. Create a [Log Analytics workspace](/azure/azure-monitor/learn/quick-create-workspace).
111-
2. Open the workspace and select **Agents**.
112-
3. Select **Log Analytics agent instructions** to view the workspace ID and primary key.
113-
4. Make note of the workspace ID and primary key.
114-
115-
:::image type="content" source="media/auditing-streaming/azure-monitor-log-keys.png" alt-text="Make note of workspace ID and primary key":::
116-
117-
6. Set up your Azure Monitor log stream by proceeding through the same initial steps to create a stream.
118-
7. For target options, select **Azure Monitor Logs**.
111+
2. Open the workspace and select **Overview**.
112+
3. Make note of the workspace ID, Resource group, and Workspace name.
113+
4. Get the shared key in one of the following ways:
114+
- using PowerShell and the Az.OperationalInsights module
115+
```PowerShell
116+
Get-AzOperationalInsightsWorkspaceSharedKey -ResourceGroupName <Resource group> -Name <Workspace name>
117+
```
118+
- Using az cli
119+
```Azure CLI
120+
az monitor log-analytics workspace create -g <Resource group> -n <Workspace name>
121+
```
122+
- Using the [Get Shared Keys API](https://learn.microsoft.com/en-us/rest/api/loganalytics/shared-keys/get-shared-keys)
123+
124+
5. Set up your Azure Monitor log stream by proceeding through the same initial steps to create a stream.
125+
6. For target options, select **Azure Monitor Logs**.
119126

120-
8. Enter the workspace ID and primary key, and then select **Set up**. The primary key is stored securely within Azure DevOps and never displayed again in the UI. Rotate the key regularly, which you can do by getting a new key from Azure Monitor Log and editing the stream.
127+
7. Enter the workspace ID and primary key, and then select **Set up**. The primary key is stored securely within Azure DevOps and never displayed again in the UI. Rotate the key regularly, which you can do by getting a new key from Azure Monitor Log and editing the stream.
121128

122129
:::image type="content" source="media/auditing-streaming/create-stream-azure-monitor-logs.png" alt-text="Enter workspace ID and primary key and then select Set up.":::
123130

0 commit comments

Comments
 (0)