Set-AzBatchApplication
Updates settings for the specified application.
Note
This is the previous version of our documentation. Please consult the most recent version for up-to-date information.
Syntax
Set-AzBatchApplication
[-AccountName] <String>
[-ResourceGroupName] <String>
[-ApplicationName] <String>
[[-DisplayName] <String>]
[[-DefaultVersion] <String>]
[[-AllowUpdates] <Boolean>]
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Description
The Set-AzBatchApplication cmdlet modifies settings for the specified Azure Batch application.
Examples
Example 1: Update an application in a Batch account
PS C:\>Set-AzBatchApplication -AccountName "ContosoBatch" -ResourceGroupName "ContosoBatchGroup" -ApplicationName "Litware" -AllowUpdates $False
This command changes whether the Litware application in the ContosoBatch account allows updates. The command does not change the default version or display name of the application.
Example 2
Updates settings for the specified application. (autogenerated)
Set-AzBatchApplication -AccountName 'ContosoBatch' -ApplicationName 'Litware' -DefaultVersion <String> -ResourceGroupName 'ContosoBatchGroup'
Parameters
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 |
| Accept wildcard characters: | False |
Specifies whether packages within the application can be overwritten using the same version string.
| Type: | Nullable<T>[Boolean] |
| Position: | 5 |
| Default value: | None |
| Accept pipeline input: | True |
| Accept wildcard characters: | False |
Specifies the name of the application.
| Type: | String |
| Aliases: | ApplicationId |
| Position: | 2 |
| Default value: | None |
| Accept pipeline input: | True |
| Accept wildcard characters: | False |
The credentials, account, tenant, and subscription used for communication with azure.
| Type: | IAzureContextContainer |
| Aliases: | AzContext, AzureRmContext, AzureCredential |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
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 |
| Accept wildcard characters: | False |
Specifies the display name for the application.
| Type: | String |
| Position: | 3 |
| Default value: | None |
| Accept pipeline input: | True |
| Accept wildcard characters: | False |
Specifies the name of the resource group that contains the Batch account.
| Type: | String |
| Position: | 1 |
| Default value: | None |
| Accept pipeline input: | True |
| Accept wildcard characters: | False |
Inputs
Nullable<T>[[System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]]