Skip to content

Commit d7fc685

Browse files
Merge pull request microsoft#241 from microsoft/exp-changes
feat: Updated deployment guide for reusing log analytics workspace
2 parents c59e33a + bd8cf00 commit d7fc685

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

documentation/DeploymentGuide.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,15 @@ For **production deployments**, the repository also provides [`main.waf-aligned.
4747

4848
> [!TIP]
4949
> Always review and adjust parameter values (such as region, capacity, security settings and log analytics workspace configuration) to match your organization’s requirements before deploying. For production, ensure you have sufficient quota and follow the principle of least privilege for all identities and role assignments.
50-
> If you want to reuse the existing log analytics workspace update the existingWorkspaceResourceId under the logAnalyticsWorkspaceConfiguration in the bicepparm file with the Log analytics workspace id.
50+
51+
> To reuse an existing Log Analytics workspace, update the existingWorkspaceResourceId field under the logAnalyticsWorkspaceConfiguration parameter in the bicepparam file with the resource ID of your existing workspace.
52+
For example:
53+
```
54+
param logAnalyticsWorkspaceConfiguration = {
55+
dataRetentionInDays: 30
56+
existingWorkspaceResourceId: '/subscriptions/<subscription-id>/resourceGroups/<resource-group>/providers/Microsoft.OperationalInsights/workspaces/<workspace-name>'
57+
}
58+
```
5159

5260
> [!IMPORTANT]
5361
> The WAF-aligned configuration is under active development. More Azure Well-Architected recommendations will be added in future updates.

infra/main.waf-aligned.bicepparam

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,7 @@ param virtualMachineConfiguration = {
77
adminUsername: 'adminuser'
88
adminPassword: 'P@ssw0rd1234'
99
}
10+
11+
param logAnalyticsWorkspaceConfiguration = {
12+
existingWorkspaceResourceId: ''
13+
}

0 commit comments

Comments
 (0)