RaiTopicCollection.CreateOrUpdateAsync Method

Definition

Create the rai topic associated with the Azure OpenAI account.

  • Request Path. : /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/raitopics/{raiTopicName}.
  • Operation Id. : RaiTopics_CreateOrUpdate.
  • Default Api Version. : 2026-01-15-preview.
public virtual System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.CognitiveServices.RaiTopicResource>> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string raiTopicName, Azure.ResourceManager.CognitiveServices.RaiTopicData data, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.CognitiveServices.RaiTopicData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.CognitiveServices.RaiTopicResource>>
override this.CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.CognitiveServices.RaiTopicData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.CognitiveServices.RaiTopicResource>>
Public Overridable Function CreateOrUpdateAsync (waitUntil As WaitUntil, raiTopicName As String, data As RaiTopicData, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ArmOperation(Of RaiTopicResource))

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.

raiTopicName
String

The name of the Rai Topic associated with the Cognitive Services Account.

data
RaiTopicData

Properties describing the rai topic.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

raiTopicName or data is null.

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

Applies to