Redigera

Dela via


Remove-AzBatchApplicationPackage

Deletes an application package record and the binary file.

Syntax

Remove-AzBatchApplicationPackage
      [-AccountName] <String>
      [-ResourceGroupName] <String>
      [-ApplicationName] <String>
      [-ApplicationVersion] <String>
      [-DefaultProfile <IAzureContextContainer>]
      [<CommonParameters>]

Description

The Remove-AzBatchApplicationPackage cmdlet deletes an application package record and the binary file from an Azure Batch account.

Examples

Example 1: Delete an application package from a Batch account

Remove-AzBatchApplicationPackage -AccountName "ContosoBatch" -ResourceGroupName "ContosoBatchGroup" -ApplicationName "litware" -ApplicationVersion "1.0"

This command deletes version 1.0 of the Litware application from the ContosoBatchGroup account. The command deletes both the package record and the blob that contain the package binary file.

Parameters

-AccountName

Specifies the name of the Batch account from which this cmdlet deletes an application package.

Type:String
Position:0
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

-ApplicationName

Specifies the name of the application.

Type:String
Aliases:ApplicationId
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:AzContext, AzureRmContext, AzureCredential
Position:Named
Default value:None
Required:False
Accept pipeline input:False
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

Inputs

String

Outputs

Void