DiagnosticSettingsOperations.CreateOrUpdateAsync Method

Definition

Creates or updates diagnostic settings for the specified resource.

public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Insights.Models.DiagnosticSettingsResource>> CreateOrUpdateAsync (string resourceUri, string name, Azure.ResourceManager.Insights.Models.DiagnosticSettingsResource parameters, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdateAsync : string * string * Azure.ResourceManager.Insights.Models.DiagnosticSettingsResource * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Insights.Models.DiagnosticSettingsResource>>
override this.CreateOrUpdateAsync : string * string * Azure.ResourceManager.Insights.Models.DiagnosticSettingsResource * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Insights.Models.DiagnosticSettingsResource>>
Public Overridable Function CreateOrUpdateAsync (resourceUri As String, name As String, parameters As DiagnosticSettingsResource, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of DiagnosticSettingsResource))

Parameters

resourceUri
System.String

The identifier of the resource.

name
System.String

The name of the diagnostic setting.

parameters
DiagnosticSettingsResource

Parameters supplied to the operation.

cancellationToken
System.Threading.CancellationToken

The cancellation token to use.

Returns

System.Threading.Tasks.Task<Response<DiagnosticSettingsResource>>

Applies to