Share via


LiveEventsOperationsExtensions.CreateAsync Method

Definition

Create Live Event

public static System.Threading.Tasks.Task<Microsoft.Azure.Management.Media.Models.LiveEvent> CreateAsync (this Microsoft.Azure.Management.Media.ILiveEventsOperations operations, string resourceGroupName, string accountName, string liveEventName, Microsoft.Azure.Management.Media.Models.LiveEvent parameters, bool? autoStart = default, System.Threading.CancellationToken cancellationToken = default);
static member CreateAsync : Microsoft.Azure.Management.Media.ILiveEventsOperations * string * string * string * Microsoft.Azure.Management.Media.Models.LiveEvent * Nullable<bool> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.Media.Models.LiveEvent>
<Extension()>
Public Function CreateAsync (operations As ILiveEventsOperations, resourceGroupName As String, accountName As String, liveEventName As String, parameters As LiveEvent, Optional autoStart As Nullable(Of Boolean) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of LiveEvent)

Parameters

operations
ILiveEventsOperations

The operations group for this extension method.

resourceGroupName
String

The name of the resource group within the Azure subscription.

accountName
String

The Media Services account name.

liveEventName
String

The name of the live event, maximum length is 32.

parameters
LiveEvent

Live event properties needed for creation.

autoStart
Nullable<Boolean>

The flag indicates if the resource should be automatically started on creation.

cancellationToken
CancellationToken

The cancellation token.

Returns

Remarks

Creates a new live event.

Applies to