Diagnostic Setting Provision
A 3-step recipe with Azure Monitor. We can help you get access.
Recipe · 3 steps
Diagnostic Setting Provision
with Azure Monitor · Observability Management
List, create or update, and confirm a diagnostic setting on a resource.
- List the diagnostic settings already configured on the resource so the caller can confirm whether the named setting already exists.
- Create or update the diagnostic setting to route the resource's platform metrics and logs to the supplied Log Analytics workspace.
- Read the diagnostic setting back to confirm the destination workspace and enabled categories were persisted.
What you'll need to have ready
- resourceUri: The identifier of the resource to configure diagnostics for.
- name: The name of the diagnostic setting.
- workspaceId: The full resource ID of the Log Analytics workspace to send diagnostics to.
- metricCategory: The diagnostic metric category to enable (e.g. AllMetrics).
- logCategoryGroup: The diagnostic log category group to enable (e.g. allLogs).
For your developer
Arazzo workflow microsoft-azure-monitor:provision-diagnostic-setting, 3 operations: DiagnosticSettings_List → DiagnosticSettings_CreateOrUpdate → DiagnosticSettings_Get. Specs on APIs.io.