Share via


SupportTicketCommunicationCollection.CreateOrUpdateAsync Method

Definition

Adds a new customer communication to an Azure support ticket.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Support/supportTickets/{supportTicketName}/communications/{communicationName}
  • Operation Id: Communications_Create
  • Default Api Version: 2024-04-01
  • Resource: SupportTicketCommunicationResource
public virtual System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Support.SupportTicketCommunicationResource>> CreateOrUpdateAsync (Azure.WaitUntil waitUntil, string communicationName, Azure.ResourceManager.Support.SupportTicketCommunicationData data, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.Support.SupportTicketCommunicationData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Support.SupportTicketCommunicationResource>>
override this.CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.Support.SupportTicketCommunicationData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Support.SupportTicketCommunicationResource>>
Public Overridable Function CreateOrUpdateAsync (waitUntil As WaitUntil, communicationName As String, data As SupportTicketCommunicationData, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ArmOperation(Of SupportTicketCommunicationResource))

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.

communicationName
String

Communication name.

data
SupportTicketCommunicationData

Communication object.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

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

communicationName or data is null.

Applies to