Skip to content

Commit e7f2cf8

Browse files
Merge pull request #261460 from v-jbasden/v-jbasden-logs-content-inventory-sheet-line-25
Authoring new guidance on the prerequisites and permissions required to use Resource Manager template samples for Log Analytics workspaces and adding links to related articles
2 parents 02895f9 + afe4b42 commit e7f2cf8

File tree

1 file changed

+19
-3
lines changed

1 file changed

+19
-3
lines changed

articles/azure-monitor/logs/resource-manager-workspace.md

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,18 +10,30 @@ ms.date: 08/08/2023
1010

1111
# Resource Manager template samples for Log Analytics workspaces in Azure Monitor
1212

13-
This article includes sample [Azure Resource Manager templates](../../azure-resource-manager/templates/syntax.md) to create and configure Log Analytics workspaces in Azure Monitor. Each sample includes a template file and a parameters file with sample values to provide to the template.
13+
This article includes sample [Azure Resource Manager templates](../../azure-resource-manager/templates/syntax.md) to create and configure [Log Analytics workspaces](./log-analytics-workspace-overview.md) in Azure Monitor. Each sample includes a template file and a parameters file with sample values to provide to the template.
1414

1515
[!INCLUDE [azure-monitor-samples](../../../includes/azure-monitor-resource-manager-samples.md)]
1616

17+
## Prerequisites
18+
19+
Verify that your Azure subscription allows you to create Log Analytics workspaces in the target region.
20+
21+
## Permissions required
22+
23+
| Action | Permissions required |
24+
|:---|:---|
25+
| Deploy ARM templates. | `Microsoft.Resources/deployments/*` permissions, as provided by the [Log Analytics Contributor built-in role](./manage-access.md#log-analytics-contributor), for example. |
26+
| Create a Log Analytics workspace. | `Microsoft.OperationalInsights/workspaces/write` permissions, as provided by the [Log Analytics Contributor built-in role](./manage-access.md#log-analytics-contributor), for example. |
27+
| Configure data collection for Log Analytics workspace. | `Microsoft.OperationalInsights/workspaces/write` and `Microsoft.OperationalInsights/workspaces/dataSources/write` permissions, as provided by the [Log Analytics Contributor built-in role](./manage-access.md#log-analytics-contributor), for example. |
28+
1729
## Template references
1830

1931
- [Microsoft.OperationalInsights workspaces](/azure/templates/microsoft.operationalinsights/2020-03-01-preview/workspaces)
2032
- [Microsoft.OperationalInsights workspaces/dataSources](/azure/templates/microsoft.operationalinsights/2020-03-01-preview/workspaces/datasources)
2133

2234
## Create a Log Analytics workspace
2335

24-
The following sample creates a new empty Log Analytics workspace. A workspace has unique workspace ID and resource ID. You can reuse the same workspace name when in different resource groups.
36+
The following sample creates a new empty [Log Analytics workspace](./log-analytics-workspace-insights-overview.md). A workspace has unique workspace ID and resource ID. You can reuse the same workspace name when in different [resource groups](../../azure-resource-manager/management/manage-resource-groups-portal.md#what-is-a-resource-group).
2537

2638
### Notes
2739

@@ -933,7 +945,7 @@ The following sample adds collection of [text logs](../agents/data-sources-custo
933945

934946
#### Notes
935947

936-
- The configuration of delimiters and extractions can be complex. For help, you can define a text log using the Azure portal and the retrieve its configuration using [Get-AzOperationalInsightsDataSource](/powershell/module/az.operationalinsights/get-azoperationalinsightsdatasource) with **-Kind** set to **CustomLog**.
948+
- The configuration of delimiters and extractions can be complex. For help, you can [define a text log](../agents/data-sources-custom-logs.md#define-a-custom-log-table) using the Azure portal and retrieve its configuration using [Get-AzOperationalInsightsDataSource](/powershell/module/az.operationalinsights/get-azoperationalinsightsdatasource) with **-Kind** set to **CustomLog**.
937949

938950
#### Template file
939951

@@ -1286,6 +1298,10 @@ resource IISLogDataSource 'Microsoft.OperationalInsights/workspaces/datasources@
12861298
}
12871299
```
12881300

1301+
## Deploy the sample templates
1302+
1303+
See [Deploy the sample templates](../resource-manager-samples.md).
1304+
12891305
## Next steps
12901306

12911307
- [Get other sample templates for Azure Monitor](../resource-manager-samples.md).

0 commit comments

Comments
 (0)