Freigeben über


ApplicationPackageOperationsExtensions.CreateAsync Methode

Definition

Erstellt einen Anwendungspaketdatensatz. Der Datensatz enthält eine storageUrl, in die das Paket hochgeladen werden soll. Nachdem es hochgeladen wurde, muss mit ApplicationPackageApplicationPackageActive aktiviert werden, bevor es verwendet werden kann. Wenn das Konto für den automatischen Speicher für die Verwendung von Speicherschlüsseln konfiguriert wurde, enthält die zurückgegebene URL eine 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)

Parameter

operations
IApplicationPackageOperations

Die Vorgangsgruppe für diese Erweiterungsmethode.

resourceGroupName
String

Der Name der Ressourcengruppe, die das Batch-Konto enthält.

accountName
String

Der Name des Batch-Kontos.

applicationName
String

Der Namen der Anwendung. Dies muss innerhalb des Kontos eindeutig sein.

versionName
String

Die Version der Anwendung.

cancellationToken
CancellationToken

Das Abbruchtoken.

Gibt zurück

Gilt für: