New-AzureRmBatchApplicationPackage
Creates an application package in a Batch account.
Warning
The AzureRM PowerShell module has been officially deprecated as of February 29, 2024. Users are advised to migrate from AzureRM to the Az PowerShell module to ensure continued support and updates.
Although the AzureRM module may still function, it's no longer maintained or supported, placing any continued use at the user's discretion and risk. Please refer to our migration resources for guidance on transitioning to the Az module.
Syntax
New-AzureRmBatchApplicationPackage
[-AccountName] <String>
[-ResourceGroupName] <String>
[-ApplicationId] <String>
[-ApplicationVersion] <String>
[-Format] <String>
-FilePath <String>
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
New-AzureRmBatchApplicationPackage
[-AccountName] <String>
[-ResourceGroupName] <String>
[-ApplicationId] <String>
[-ApplicationVersion] <String>
[-Format] <String>
[-ActivateOnly]
[-DefaultProfile <IAzureContextContainer>]
[<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.
Parameters
-AccountName
Specifies the name of the Batch account to which this cmdlet adds an application package.
Type: | String |
Position: | 0 |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-ActivateOnly
Indicates that this cmdlet activates an application package that has already been uploaded.
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-ApplicationId
Specifies the ID of the application.
Type: | String |
Position: | 2 |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-ApplicationVersion
Specifies the version of the application.
Type: | String |
Position: | 3 |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-DefaultProfile
The credentials, account, tenant, and subscription used for communication with azure.
Type: | IAzureContextContainer |
Aliases: | AzureRmContext, AzureCredential |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-FilePath
Specifies the file to be uploaded as the application package binary file.
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-Format
Specifies the format of the application package binary file.
Type: | String |
Position: | 4 |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-ResourceGroupName
Specifies the name of the resource group that contains the Batch account.
Type: | String |
Position: | 1 |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |