ApplicationPackageOperationsExtensions.ActivateAsync 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.
Activates the specified application package. This should be done after the
ApplicationPackage
was created and uploaded. This needs to be done before
an ApplicationPackage
can be used on Pools or Tasks.
public static System.Threading.Tasks.Task<Microsoft.Azure.Management.Batch.Models.ApplicationPackage> ActivateAsync (this Microsoft.Azure.Management.Batch.IApplicationPackageOperations operations, string resourceGroupName, string accountName, string applicationName, string versionName, string format, System.Threading.CancellationToken cancellationToken = default);
static member ActivateAsync : Microsoft.Azure.Management.Batch.IApplicationPackageOperations * string * string * string * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.Batch.Models.ApplicationPackage>
<Extension()>
Public Function ActivateAsync (operations As IApplicationPackageOperations, resourceGroupName As String, accountName As String, applicationName As String, versionName As String, format 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.
- format
- String
The format of the application package binary file.
- cancellationToken
- CancellationToken
The cancellation token.
Returns
Applies to
Azure SDK for .NET