Delen via


ApplicationPackageOperationsExtensions.CreateAsync Methode

Definitie

Hiermee maakt u een toepassingspakketrecord. De record bevat een storageUrl waarnaar het pakket moet worden geüpload. Zodra het is geüpload, ApplicationPackage moet worden geactiveerd met voordat ApplicationPackageActive het kan worden gebruikt. Als het automatische opslagaccount is geconfigureerd voor het gebruik van opslagsleutels, bevat de geretourneerde URL een SAS.

public static System.Threading.Tasks.Task<Microsoft.Azure.Management.Batch.Models.ApplicationPackage> CreateAsync (this Microsoft.Azure.Management.Batch.IApplicationPackageOperations operations, string resourceGroupName, string accountName, string applicationName, string versionName, System.Threading.CancellationToken cancellationToken = default);
static member CreateAsync : Microsoft.Azure.Management.Batch.IApplicationPackageOperations * string * string * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.Batch.Models.ApplicationPackage>
<Extension()>
Public Function CreateAsync (operations As IApplicationPackageOperations, resourceGroupName As String, accountName As String, applicationName As String, versionName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ApplicationPackage)

Parameters

operations
IApplicationPackageOperations

De bewerkingsgroep voor deze extensiemethode.

resourceGroupName
String

De naam van de resourcegroep die het Batch-account bevat.

accountName
String

De naam van het Batch-account.

applicationName
String

De naam van de toepassing. Dit moet uniek zijn binnen het account.

versionName
String

De versie van de toepassing.

cancellationToken
CancellationToken

Het annuleringstoken.

Retouren

Van toepassing op