Language

TraceContainerResource.CreateOrUpdate Method

Definition

Creates or replaces the trace container for an Azure Monitor Workspace. Modeled as a long-running operation (200 + 201); the service may complete synchronously by returning a terminal provisioningState, or track progress via Azure-AsyncOperation.

  • Request Path. : /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Monitor/accounts/{azureMonitorWorkspaceName}/traceContainers/default.
  • Operation Id. : TraceContainers_CreateOrUpdate.
  • Default Api Version. : 2026-09-03-preview.
  • Resource. : TraceContainerResource.
public virtual Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Monitor.Workspaces.TraceContainerResource> CreateOrUpdate(Azure.WaitUntil waitUntil, Azure.ResourceManager.Monitor.Workspaces.TraceContainerData data, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdate : Azure.WaitUntil * Azure.ResourceManager.Monitor.Workspaces.TraceContainerData * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Monitor.Workspaces.TraceContainerResource>
override this.CreateOrUpdate : Azure.WaitUntil * Azure.ResourceManager.Monitor.Workspaces.TraceContainerData * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Monitor.Workspaces.TraceContainerResource>
Public Overridable Function CreateOrUpdate (waitUntil As WaitUntil, data As TraceContainerData, Optional cancellationToken As CancellationToken = Nothing) As ArmOperation(Of TraceContainerResource)

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
TraceContainerData

Resource create parameters.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

data is null.

Applies to