New-AzBatchApplicationPackage
Creates an application package in a Batch account.
Note
This is the previous version of our documentation. Please consult the most recent version for up-to-date information.
Syntax
New-AzBatchApplicationPackage
[-AccountName] <String>
[-ResourceGroupName] <String>
[-ApplicationName] <String>
[-ApplicationVersion] <String>
[-Format] <String>
-FilePath <String>
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
New-AzBatchApplicationPackage
[-AccountName] <String>
[-ResourceGroupName] <String>
[-ApplicationName] <String>
[-ApplicationVersion] <String>
[-Format] <String>
[-ActivateOnly]
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Description
The New-AzBatchApplicationPackage cmdlet creates an application package in an Azure Batch account.
Examples
Example 1: Install an application package into a Batch account
PS C:\>New-AzBatchApplicationPackage -AccountName "ContosoBatch" -ResourceGroupName "ContosoBatchGroup" -ApplicationName "Litware" -ApplicationVersion "1.0" -FilePath "litware.1.0.zip" -Format "zip"
This command creates and activates version 1.0 of the Litware application, and uploads the contents of litware.1.0.zip as the application package content.
Parameters
Specifies the name of the Batch account to which this cmdlet adds an application package.
| Type: | String |
| Position: | 0 |
| Default value: | None |
| Accept pipeline input: | True |
| Accept wildcard characters: | False |
Indicates that this cmdlet activates an application package that has already been uploaded.
| Type: | SwitchParameter |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | True |
| Accept wildcard characters: | False |
Specifies the name of the application.
| Type: | String |
| Aliases: | ApplicationId |
| Position: | 2 |
| Default value: | None |
| Accept pipeline input: | True |
| Accept wildcard characters: | False |
Specifies the version of the application.
| Type: | String |
| Position: | 3 |
| Default value: | None |
| Accept pipeline input: | True |
| Accept wildcard characters: | False |
The credentials, account, tenant, and subscription used for communication with azure.
| Type: | IAzureContextContainer |
| Aliases: | AzContext, AzureRmContext, AzureCredential |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
Specifies the file to be uploaded as the application package binary file.
| Type: | String |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | True |
| Accept wildcard characters: | False |
Specifies the format of the application package binary file.
| Type: | String |
| Position: | 4 |
| Default value: | None |
| Accept pipeline input: | True |
| Accept wildcard characters: | False |
Specifies the name of the resource group that contains the Batch account.
| Type: | String |
| Position: | 1 |
| Default value: | None |
| Accept pipeline input: | True |
| Accept wildcard characters: | False |