ApplicationPackageOperationsExtensions.CreateAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Creates an application package record. The record contains a storageUrl
where the package should be uploaded to. Once it is uploaded the
ApplicationPackage
needs to be activated using ApplicationPackageActive
before it can be used. If the auto storage account was configured to use
storage keys, the URL returned will contain a 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
The operations group for this extension method.
- resourceGroupName
- String
The name of the resource group that contains the Batch account.
- accountName
- String
The name of the Batch account.
- applicationName
- String
The name of the application. This must be unique within the account.
- versionName
- String
The version of the application.
- cancellationToken
- CancellationToken
The cancellation token.
Returns
Applies to
Azure SDK for .NET