< Back
New-AzureRmBatchApplicationPackage
Post
NAME New-AzureRmBatchApplicationPackage
SYNOPSIS
Creates an application package in a Batch account.
SYNTAX
New-AzureRmBatchApplicationPackage [-AccountName] <String> [-ResourceGroupName] <String> [-ApplicationId] <String> [-ApplicationVersion] <String>
[-Format] <String> [-ActivateOnly] [-DefaultProfile <IAzureContextContainer>] [<CommonParameters>]
New-AzureRmBatchApplicationPackage [-AccountName] <String> [-ResourceGroupName] <String> [-ApplicationId] <String> [-ApplicationVersion] <String>
[-Format] <String> [-DefaultProfile <IAzureContextContainer>] -FilePath <String> [<CommonParameters>]
DESCRIPTION
The New-AzureRmBatchApplicationPackage cmdlet creates an application package in an Azure Batch account.
PARAMETERS
-AccountName <String>
Specifies the name of the Batch account to which this cmdlet adds an application package.
Required? true
Position? 0
Default value None
Accept pipeline input? True (ByPropertyName)
Accept wildcard characters? false
-ActivateOnly [<SwitchParameter>]
Indicates that this cmdlet activates an application package that has already been uploaded.
Required? false
Position? named
Default value False
Accept pipeline input? True (ByPropertyName)
Accept wildcard characters? false
-ApplicationId <String>
Specifies the ID of the application.
Required? true
Position? 2
Default value None
Accept pipeline input? True (ByPropertyName)
Accept wildcard characters? false
-ApplicationVersion <String>
Specifies the version of the application.
Required? true
Position? 3
Default value None
Accept pipeline input? True (ByPropertyName)
Accept wildcard characters? false
-DefaultProfile <IAzureContextContainer>
The credentials, account, tenant, and subscription used for communication with azure.
Required? false
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-FilePath <String>
Specifies the file to be uploaded as the application package binary file.
Required? true
Position? named
Default value None
Accept pipeline input? True (ByPropertyName)
Accept wildcard characters? false
-Format <String>
Specifies the format of the application package binary file.
Required? true
Position? 4
Default value None
Accept pipeline input? True (ByPropertyName)
Accept wildcard characters? false
-ResourceGroupName <String>
Specifies the name of the resource group that contains the Batch account.
Required? true
Position? 1
Default value None
Accept pipeline input? True (ByPropertyName)
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
None
This cmdlet does not accept any input.
OUTPUTS
Microsoft.Azure.Commands.Batch.Models.PSApplicationPackage
NOTES
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.
RELATED LINKS
Online Version: https://docs.microsoft.com/en-us/powers ... ionpackage
Get-AzureRmBatchApplicationPackage
Get-AzureRmBatchApplicationPackage
New-AzureRmBatchApplicationPackage
Remove-AzureRmBatchApplicationPackage
Remove-AzureRmBatchApplicationPackage
Set-AzureRmBatchApplication
SYNOPSIS
Creates an application package in a Batch account.
SYNTAX
New-AzureRmBatchApplicationPackage [-AccountName] <String> [-ResourceGroupName] <String> [-ApplicationId] <String> [-ApplicationVersion] <String>
[-Format] <String> [-ActivateOnly] [-DefaultProfile <IAzureContextContainer>] [<CommonParameters>]
New-AzureRmBatchApplicationPackage [-AccountName] <String> [-ResourceGroupName] <String> [-ApplicationId] <String> [-ApplicationVersion] <String>
[-Format] <String> [-DefaultProfile <IAzureContextContainer>] -FilePath <String> [<CommonParameters>]
DESCRIPTION
The New-AzureRmBatchApplicationPackage cmdlet creates an application package in an Azure Batch account.
PARAMETERS
-AccountName <String>
Specifies the name of the Batch account to which this cmdlet adds an application package.
Required? true
Position? 0
Default value None
Accept pipeline input? True (ByPropertyName)
Accept wildcard characters? false
-ActivateOnly [<SwitchParameter>]
Indicates that this cmdlet activates an application package that has already been uploaded.
Required? false
Position? named
Default value False
Accept pipeline input? True (ByPropertyName)
Accept wildcard characters? false
-ApplicationId <String>
Specifies the ID of the application.
Required? true
Position? 2
Default value None
Accept pipeline input? True (ByPropertyName)
Accept wildcard characters? false
-ApplicationVersion <String>
Specifies the version of the application.
Required? true
Position? 3
Default value None
Accept pipeline input? True (ByPropertyName)
Accept wildcard characters? false
-DefaultProfile <IAzureContextContainer>
The credentials, account, tenant, and subscription used for communication with azure.
Required? false
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-FilePath <String>
Specifies the file to be uploaded as the application package binary file.
Required? true
Position? named
Default value None
Accept pipeline input? True (ByPropertyName)
Accept wildcard characters? false
-Format <String>
Specifies the format of the application package binary file.
Required? true
Position? 4
Default value None
Accept pipeline input? True (ByPropertyName)
Accept wildcard characters? false
-ResourceGroupName <String>
Specifies the name of the resource group that contains the Batch account.
Required? true
Position? 1
Default value None
Accept pipeline input? True (ByPropertyName)
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
None
This cmdlet does not accept any input.
OUTPUTS
Microsoft.Azure.Commands.Batch.Models.PSApplicationPackage
NOTES
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.
RELATED LINKS
Online Version: https://docs.microsoft.com/en-us/powers ... ionpackage
Get-AzureRmBatchApplicationPackage
Get-AzureRmBatchApplicationPackage
New-AzureRmBatchApplicationPackage
Remove-AzureRmBatchApplicationPackage
Remove-AzureRmBatchApplicationPackage
Set-AzureRmBatchApplication