Set-​Azure​Rm​Batch​Application

Updates settings for the specified application.

Syntax

Set-AzureRmBatchApplication
   [-AccountName] <String>
   [-ResourceGroupName] <String>
   [-ApplicationId] <String>
   [[-DisplayName] <String>]
   [[-DefaultVersion] <String>]
   [[-AllowUpdates] <Boolean>]
   [<CommonParameters>]

Description

The Set-AzureRmBatchApplication cmdlet modifies settings for the specified Azure Batch application.

Examples

Example 1: Update an application in a Batch account

PS C:\>Set-AzureRmBatchApplication -AccountName "ContosoBatch" -ResourceGroupName "ContosoBatchGroup" -ApplicationId "Litware" -AllowUpdates $False

This command changes whether the Llitware application in the ContosoBatch account allows updates. The command does not change the default version or display name of the application.

Required Parameters

-AccountName

Specifies the name of the Batch account for which this cmdlet modifies an application.

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
-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

-AllowUpdates

Specifies whether packages within the application can be overwritten using the same version string.

Type:Boolean
Position:5
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-DefaultVersion

Specifies which package to use if a client requests the application but does not specify a version.

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

Specifies the display name for the application.

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