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
`Set-AzDiagnosticSetting` is not available in the current version of the PowerShell module. I updated the steps based on the current version of the module.
Please review and approve.
Copy file name to clipboardExpand all lines: articles/azure-monitor/essentials/diagnostic-settings.md
+12-4Lines changed: 12 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -192,15 +192,23 @@ After a few moments, the new setting appears in your list of settings for this r
192
192
193
193
# [PowerShell](#tab/powershell)
194
194
195
-
Use the [Set-AzDiagnosticSetting](/powershell/module/az.monitor/set-azdiagnosticsetting) cmdlet to create a diagnostic setting with [Azure PowerShell](../powershell-samples.md). See the documentation for this cmdlet for descriptions of its parameters.
195
+
Use the [New-AzDiagnosticSetting](/powershell/module/az.monitor/new-azdiagnosticsetting?view=azps-9.1.0) cmdlet to create a diagnostic setting with [Azure PowerShell](../powershell-samples.md). See the documentation for this cmdlet for descriptions of its parameters.
196
196
197
197
> [!IMPORTANT]
198
198
> You can't use this method for an activity log. Instead, use [Create diagnostic setting in Azure Monitor by using an Azure Resource Manager template](./resource-manager-diagnostic-settings.md) to create a Resource Manager template and deploy it with PowerShell.
199
199
200
-
The following example PowerShell cmdlet creates a diagnostic setting by using all three destinations.
200
+
The following example PowerShell cmdlet creates a diagnostic setting for all logs and metrics for a key vault by using Log Analytics Workspace.
0 commit comments