DiagnosticSettingsOperations.CreateOrUpdate Method

Definition

Creates or updates diagnostic settings for the specified resource.

public virtual Azure.Response<Azure.ResourceManager.Insights.Models.DiagnosticSettingsResource> CreateOrUpdate (string resourceUri, string name, Azure.ResourceManager.Insights.Models.DiagnosticSettingsResource parameters, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdate : string * string * Azure.ResourceManager.Insights.Models.DiagnosticSettingsResource * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.Insights.Models.DiagnosticSettingsResource>
override this.CreateOrUpdate : string * string * Azure.ResourceManager.Insights.Models.DiagnosticSettingsResource * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.Insights.Models.DiagnosticSettingsResource>
Public Overridable Function CreateOrUpdate (resourceUri As String, name As String, parameters As DiagnosticSettingsResource, Optional cancellationToken As CancellationToken = Nothing) As 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

Response<DiagnosticSettingsResource>

Applies to