CmdID / az / az monitor / az monitor diagnostic-settings
az monitor diagnostic-settings update
Update diagnostic settings for the specified resource. Azure CLI reference
11 options Its page in the Azure CLI reference
Options
--event-hub-ruleThe resource Id for the event hub authorization rule.--event-hubThe name of the event hub.--log-analytics-destination-type, --log-ana-dtypeA string indicating whether the export to Log Analytics should use the default destination type, i.e. AzureDiagnostics, or use a destination type constructed as follows: <normalized service identity>_<normalized category name>.--logsThe list of logs settings.--marketplace-partner-idThe full ARM resource ID of the Marketplace resource to which you would like to send Diagnostic Logs.--metricsThe list of metric settings.--name, -nThe name of the diagnostic setting.--resourceName or ID of the target resource.--service-bus-rule-idThe service bus rule Id of the diagnostic setting.--storage-account-idThe resource ID of the storage account to which you would like to send Diagnostic Logs.--workspace-idThe full ARM resource ID of the Log Analytics workspace to which you would like to send Diagnostic Logs.