File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
articles/azure-monitor/essentials Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -97,9 +97,9 @@ $metric = @()
97
97
$log = @()
98
98
$metric += New-AzDiagnosticSettingMetricSettingsObject -Enabled $true -Category AllMetrics
99
99
# For all available logs, use:
100
- $log = New-AzDiagnosticSettingLogSettingsObject -Enabled $true -CategoryGroup allLogs
100
+ $log + = New-AzDiagnosticSettingLogSettingsObject -Enabled $true -CategoryGroup allLogs
101
101
# or, for audit logs, use:
102
- $log = New-AzDiagnosticSettingLogSettingsObject -Enabled $true -CategoryGroup audit
102
+ $log + = New-AzDiagnosticSettingLogSettingsObject -Enabled $true -CategoryGroup audit
103
103
New-AzDiagnosticSetting -Name 'KeyVault-Diagnostics' -ResourceId $KV.ResourceId -WorkspaceId $Law.ResourceId -Log $log -Metric $metric -Verbose
104
104
```
105
105
You can’t perform that action at this time.
0 commit comments