CognitiveServicesWorkbenchCollection.CreateOrUpdate Method

Definition

Creates or updates a workbench associated with the project.

  • Request Path. : /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/projects/{projectName}/workbenches/{workbenchName}.
  • Operation Id. : Workbenches_CreateOrUpdate.
  • Default Api Version. : 2026-03-15-preview.
public virtual Azure.ResourceManager.ArmOperation<Azure.ResourceManager.CognitiveServices.CognitiveServicesWorkbenchResource> CreateOrUpdate(Azure.WaitUntil waitUntil, string workbenchName, Azure.ResourceManager.CognitiveServices.CognitiveServicesWorkbenchData data, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.CognitiveServices.CognitiveServicesWorkbenchData * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.CognitiveServices.CognitiveServicesWorkbenchResource>
override this.CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.CognitiveServices.CognitiveServicesWorkbenchData * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.CognitiveServices.CognitiveServicesWorkbenchResource>
Public Overridable Function CreateOrUpdate (waitUntil As WaitUntil, workbenchName As String, data As CognitiveServicesWorkbenchData, Optional cancellationToken As CancellationToken = Nothing) As ArmOperation(Of CognitiveServicesWorkbenchResource)

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.

workbenchName
String

The name of the workbench associated with the project.

data
CognitiveServicesWorkbenchData

The workbench properties.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

workbenchName or data is null.

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

Applies to