Share via


DurableTaskHubCollection.CreateOrUpdate Method

Definition

Create or Update a Task Hub

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DurableTask/schedulers/{schedulerName}/taskHubs/{taskHubName}
  • Operation Id: TaskHub_CreateOrUpdate
  • Default Api Version: 2025-04-01-preview
  • Resource: DurableTaskHubResource
public virtual Azure.ResourceManager.ArmOperation<Azure.ResourceManager.DurableTask.DurableTaskHubResource> CreateOrUpdate(Azure.WaitUntil waitUntil, string taskHubName, Azure.ResourceManager.DurableTask.DurableTaskHubData data, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.DurableTask.DurableTaskHubData * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.DurableTask.DurableTaskHubResource>
override this.CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.DurableTask.DurableTaskHubData * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.DurableTask.DurableTaskHubResource>
Public Overridable Function CreateOrUpdate (waitUntil As WaitUntil, taskHubName As String, data As DurableTaskHubData, Optional cancellationToken As CancellationToken = Nothing) As ArmOperation(Of DurableTaskHubResource)

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.

taskHubName
String

The name of the TaskHub.

data
DurableTaskHubData

Resource create parameters.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

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

taskHubName or data is null.

Applies to