OperationalInsightsTableCollection.CreateOrUpdate Method

Definition

Update or Create a Log Analytics workspace table.

  • Request Path. : /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/tables/{tableName}.
  • Operation Id. : Tables_CreateOrUpdate.
  • Default Api Version. : 2025-07-01.
public virtual Azure.ResourceManager.ArmOperation<Azure.ResourceManager.OperationalInsights.OperationalInsightsTableResource> CreateOrUpdate(Azure.WaitUntil waitUntil, string tableName, Azure.ResourceManager.OperationalInsights.OperationalInsightsTableData data, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.OperationalInsights.OperationalInsightsTableData * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.OperationalInsights.OperationalInsightsTableResource>
override this.CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.OperationalInsights.OperationalInsightsTableData * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.OperationalInsights.OperationalInsightsTableResource>
Public Overridable Function CreateOrUpdate (waitUntil As WaitUntil, tableName As String, data As OperationalInsightsTableData, Optional cancellationToken As CancellationToken = Nothing) As ArmOperation(Of OperationalInsightsTableResource)

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.

tableName
String

The name of the table.

data
OperationalInsightsTableData

The parameters required to update table properties.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

tableName or data is null.

tableName is an empty string, and was expected to be non-empty.

Applies to