Share via


DiagnosticSettingResource.Update Method

Definition

Creates or updates diagnostic settings for the specified resource.

  • Request Path: /{resourceUri}/providers/Microsoft.Insights/diagnosticSettings/{name}
  • Operation Id: DiagnosticSettings_CreateOrUpdate
  • Default Api Version: 2021-05-01-preview
  • Resource: DiagnosticSettingResource
public virtual Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Monitor.DiagnosticSettingResource> Update (Azure.WaitUntil waitUntil, Azure.ResourceManager.Monitor.DiagnosticSettingData data, System.Threading.CancellationToken cancellationToken = default);
abstract member Update : Azure.WaitUntil * Azure.ResourceManager.Monitor.DiagnosticSettingData * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Monitor.DiagnosticSettingResource>
override this.Update : Azure.WaitUntil * Azure.ResourceManager.Monitor.DiagnosticSettingData * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Monitor.DiagnosticSettingResource>
Public Overridable Function Update (waitUntil As WaitUntil, data As DiagnosticSettingData, Optional cancellationToken As CancellationToken = Nothing) As ArmOperation(Of DiagnosticSettingResource)

Parameters

waitUntil
WaitUntil

Completed if the method should wait to return until the long-running operation has completed on the service; Started if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples.

data
DiagnosticSettingData

Parameters supplied to the operation.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

data is null.

Applies to