You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Merge branch 'DocDB-CreateDiagnosticSettingsThroughARMTemplate' of https://github.com/samahana/azure-docs into cosmos-monitor-resource-logs-arm-template
Copy file name to clipboardExpand all lines: articles/cosmos-db/monitor-resource-logs.md
+194Lines changed: 194 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -184,6 +184,200 @@ Use the [Azure Monitor REST API](/rest/api/monitor/diagnosticsettings/createorup
184
184
}
185
185
```
186
186
187
+
### [ARM Template](#tab/arm-template)
188
+
189
+
Use the [ARM template](https://learn.microsoft.com/en-us/azure/azure-monitor/resource-manager-samples?tabs=powershell) to create a diagnostic setting .
190
+
191
+
> [!NOTE]
192
+
> We recommend setting the **logAnalyticsDestinationType** property to **Dedicated** for enabling resource specific tables.
193
+
194
+
1. Create the following Template file for your ComsosDB resource.
1. Deploy the template by using any [deployment method for Resource Manager templates](https://learn.microsoft.com/en-us/azure/azure-resource-manager/templates/deploy-portal).
0 commit comments