New-​Azure​Rm​Batch​Application​Package

Creates an application package in a Batch account.

Syntax

New-AzureRmBatchApplicationPackage
   [-AccountName] <String>
   [-ResourceGroupName] <String>
   [-ApplicationId] <String>
   [-ApplicationVersion] <String>
   [-Format] <String>
   [-ActivateOnly]
   [<CommonParameters>]
New-AzureRmBatchApplicationPackage
   [-AccountName] <String>
   [-ResourceGroupName] <String>
   [-ApplicationId] <String>
   [-ApplicationVersion] <String>
   [-Format] <String>
   -FilePath <String>
   [<CommonParameters>]

Description

The New-AzureRmBatchApplicationPackage cmdlet creates an application package in an Azure Batch account.

Examples

Example 1: Install an application package into a Batch account

PS C:\>New-AzureRmBatchApplicationPackage -AccountName "ContosoBatch" -ResourceGroupName "ContosoBatchGroup" -ApplicationId "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.

Required Parameters

-AccountName

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 (ByPropertyName)
Accept wildcard characters:False
-ApplicationId

Specifies the ID of the application.

Type:String
Position:2
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-ApplicationVersion

Specifies the version of the application.

Type:String
Position:3
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-FilePath

Specifies the file to be uploaded as the application package binary file.

Type:String
Position:Named
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-Format

Specifies the format of the application package binary file.

Type:String
Position:4
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-ResourceGroupName

Specifies the name of the resource group that contains the Batch account.

Type:String
Position:1
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False

Optional Parameters

-ActivateOnly

Indicates that this cmdlet activates an application package that has already been uploaded.

Type:SwitchParameter
Position:Named
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False