Delen via


CommunicationServiceResourceCollection.CreateOrUpdate Method

Definition

Create a new CommunicationService or update an existing CommunicationService.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Communication/communicationServices/{communicationServiceName}
  • Operation Id: CommunicationServices_CreateOrUpdate
  • Default Api Version: 2023-04-01
  • Resource: CommunicationServiceResource
public virtual Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Communication.CommunicationServiceResource> CreateOrUpdate (Azure.WaitUntil waitUntil, string communicationServiceName, Azure.ResourceManager.Communication.CommunicationServiceResourceData data, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.Communication.CommunicationServiceResourceData * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Communication.CommunicationServiceResource>
override this.CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.Communication.CommunicationServiceResourceData * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Communication.CommunicationServiceResource>
Public Overridable Function CreateOrUpdate (waitUntil As WaitUntil, communicationServiceName As String, data As CommunicationServiceResourceData, Optional cancellationToken As CancellationToken = Nothing) As ArmOperation(Of CommunicationServiceResource)

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.

communicationServiceName
String

The name of the CommunicationService resource.

data
CommunicationServiceResourceData

Parameters for the create or update operation.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

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

communicationServiceName or data is null.

Applies to