AzureRM.Batch

4.0.0

Microsoft Azure PowerShell - Batch service cmdlets for Azure Resource Manager

Minimum PowerShell version

3.0

There is a newer prerelease version of this module available.
See the version list below for details.

Installation Options

Copy and Paste the following command to install this package using PowerShellGet More Info

Install-Module -Name AzureRM.Batch -RequiredVersion 4.0.0

Copy and Paste the following command to install this package using Microsoft.PowerShell.PSResourceGet More Info

Install-PSResource -Name AzureRM.Batch -Version 4.0.0

You can deploy this package directly to Azure Automation. Note that deploying packages with dependencies will deploy all the dependencies to Azure Automation. Learn More

Manually download the .nupkg file to your system's default download location. Note that the file won't be unpacked, and won't include any dependencies. Learn More

Owners

Copyright

Microsoft Corporation. All rights reserved.

Package Details

Author(s)

  • Microsoft Corporation

Tags

Azure ResourceManager ARM Batch

Cmdlets

Remove-AzureRmBatchAccount Get-AzureRmBatchAccount Get-AzureRmBatchAccountKeys New-AzureRmBatchAccount New-AzureRmBatchAccountKey Set-AzureRmBatchAccount New-AzureRmBatchApplicationPackage Get-AzureBatchJobStatistics Remove-AzureRmBatchApplication Remove-AzureRmBatchApplicationPackage Get-AzureRmBatchApplicationPackage Get-AzureRmBatchApplication Set-AzureRmBatchApplication New-AzureRmBatchApplication Get-AzureBatchCertificate Remove-AzureBatchCertificate New-AzureBatchCertificate Stop-AzureBatchCertificateDeletion Disable-AzureBatchComputeNodeScheduling Enable-AzureBatchComputeNodeScheduling Get-AzureBatchRemoteLoginSettings Remove-AzureBatchComputeNode Reset-AzureBatchComputeNode Restart-AzureBatchComputeNode Set-AzureBatchComputeNodeUser Get-AzureBatchNodeFile Get-AzureBatchNodeFileContent Get-AzureBatchRemoteDesktopProtocolFile Remove-AzureBatchNodeFile Disable-AzureBatchJobSchedule Enable-AzureBatchJobSchedule Set-AzureBatchJobSchedule Stop-AzureBatchJobSchedule Disable-AzureBatchJob Enable-AzureBatchJob New-AzureBatchJob Remove-AzureBatchJob Set-AzureBatchJob Stop-AzureBatchJob Get-AzureBatchJob Get-AzureBatchJobPreparationAndReleaseTaskStatus Disable-AzureBatchAutoScale Enable-AzureBatchAutoScale Get-AzureBatchPoolStatistics Get-AzureBatchPoolUsageMetrics Get-AzureBatchPool Get-AzureBatchNodeAgentSku New-AzureBatchPool Remove-AzureBatchPool Set-AzureBatchPool Set-AzureBatchPoolOSVersion Start-AzureBatchPoolResize Stop-AzureBatchPoolResize Test-AzureBatchAutoScale Get-AzureRmBatchLocationQuotas Get-AzureBatchSubtask Get-AzureBatchTask New-AzureBatchTask Remove-AzureBatchTask New-AzureBatchComputeNodeUser Remove-AzureBatchComputeNodeUser Enable-AzureBatchTask Set-AzureBatchTask Stop-AzureBatchTask Get-AzureBatchComputeNode Get-AzureBatchJobSchedule New-AzureBatchJobSchedule Remove-AzureBatchJobSchedule Get-AzureBatchTaskCounts

Dependencies

Release Notes

* NOTE: This is a breaking change release. Please see the migration guide (https://aka.ms/azps-migration-guide) for a full list of breaking changes introduced.
* Added new parameters to `New-AzureRmBatchAccount`.
   - `PoolAllocationMode`: The allocation mode to use for creating pools in the Batch account. To create a Batch account which allocates pool nodes in the user's subscription, set this to `UserSubscription`.
   - `KeyVaultId`: The resource ID of the Azure key vault associated with the Batch account.
   - `KeyVaultUrl`: The URL of the Azure key vault associated with the Batch account.
* Updated parameters to `New-AzureBatchTask`.
   - Removed the `RunElevated` switch. The `UserIdentity` parameter has been added to replace `RunElevated`, and the equivalent behavior can be achieved by constructing a `PSUserIdentity` as shown below:
       - $autoUser = New-Object Microsoft.Azure.Commands.Batch.Models.PSAutoUserSpecification -ArgumentList @("Task", "Admin")
       - $userIdentity = New-Object Microsoft.Azure.Commands.Batch.Models.PSUserIdentity $autoUser
   - Added the `AuthenticationTokenSettings` parameter. This parameter allows you to request the Batch service provide an authentication token to the task when it runs, avoiding the need to pass Batch account keys to the task in order to issue requests to the Batch service.
   - Added the `ContainerSettings` parameter.
       - This parameter allows you to request the Batch service run the task inside a container.
   - Added the `OutputFiles` parameter.
       - This parameter allows you to configure the task to upload files to Azure Storage after it has finished.
* Updated parameters to `New-AzureBatchPool`.
   - Added the `UserAccounts` parameter.
       - This parameter defines user accounts created on each node in the pool.
   - Added `TargetLowPriorityComputeNodes` and renamed `TargetDedicated` to `TargetDedicatedComputeNodes`.
       - A `TargetDedicated` alias was created for the `TargetDedicatedComputeNodes` parameter.
   - Added the `NetworkConfiguration` parameter.
       - This parameter allows you to configure the pools network settings.
* Updated parameters to `New-AzureBatchCertificate`.
   - The `Password` parameter is now a `SecureString`.
* Updated parameters to `New-AzureBatchComputeNodeUser`.
   - The `Password` parameter is now a `SecureString`.
* Updated parameters to `Set-AzureBatchComputeNodeUser`.
   - The `Password` parameter is now a `SecureString`.
* Renamed the `Name` parameter to `Path` on `Get-AzureBatchNodeFile`, `Get-AzureBatchNodeFileContent`, and `Remove-AzureBatchNodeFile`.
   - A `Name` alias was created for the `Path` parameter.
* Changes to objects:
   - Removed the `RunElevated` property on `PSCloudTask`, `PSStartTask`, `PSJobManagerTask`, `PSJobPreparationTask`, and `PSJobReleaseTask`. The `UserIdentity` property has been added to replace `RunElevated`. Equivalent behavior to `RunElevated = $true` can be achieved by constructing a `PSUserIdentity` as shown below:
       - $autoUser = New-Object Microsoft.Azure.Commands.Batch.Models.PSAutoUserSpecification -ArgumentList @("Task", "Admin")
       - $userIdentity = New-Object Microsoft.Azure.Commands.Batch.Models.PSUserIdentity $autoUser
   - Added the `AuthenticationTokenSettings` property to `PSCloudTask` and `PSJobManagerTask`.
   - Added the `OutputFiles` property to `PSCloudTask`, and `PSJobManagerTask`.
   - Added the `ContainerSettings` property to `PSCloudTask`, `PSStartTask`, `PSJobManagerTask`, `PSJobPreparationTask`, and `PSJobReleaseTask`.
   - Added the `AllowLowPriorityNode` property to `PSJobManagerTask`.
   - Renamed the `SchedulingError` property on `PSJobPreparationTaskExecutionInformation`, `PSJobReleaseTaskExecutionInformation`, `PSStartTaskInformation`, `PSSubtaskInformation`, and `PSTaskExecutionInformation` to `FailureInformation`.
       - `FailureInformation` is returned any time there is a task failure. This includes all previous scheduling error cases, as well as nonzero task exit codes, and file upload failures from the new output files feature.
   - Renamed `PSTaskSchedulingError` to `PSTaskFailureInformation`.
   - Added the `ContainerInformation` and `Result` properties to `PSJobPreparationTaskExecutionInformation`, `PSJobReleaseTaskExecutionInformation`, `PSStartTaskInformation`, `PSSubtaskInformation`, and `PSTaskExecutionInformation`.
   - Added the `UserAccounts` property to `PSCloudPool` and `PSPoolSpecification`.
   - Added the `TargetLowPriorityComputeNodes` property to `PSCloudPool` and `PSPoolSpecification`, and renamed `TargetDedicated` to `TargetDedicatedComputeNodes`.
   - Renamed the `Name` property on `PSNodeFile` to `Path`.
   - Added the `EndpointConfiguration` and `IsDedicated` property to `PSComputeNode`.
   - Renamed the `SchedulingError` property on `PSExitConditions` to `PreProcessingError`.
   - Added the `FileUploadError` to `PSExitConditions`.
   - Added the `DependencyAction` property to `PSExitOptions`.
   - Added the `OSDisk`, `ContainerConfiguration`, `DataDisks`, and `LicenseType` properties to `PSVirtualMachineConfiguration`.
   - Added the `VirtualMachineImageId` property to `PSImageReference`. Note that in order to allow deploying nodes using custom VHDs, the `BatchAccountContext` must be using Azure Active Directory authentication.
   - Added the `OnAllTasksComplete` and `OnTaskFailure` properties to `PSJobSpecification`.
   - Added the `EndpointConfiguration` property to `PSNetworkConfiguration`.
   - Renamed `ResizeError` to `ResizeErrors` on `PSCloudPool`, and it is now a collection.
   - `PSMultiInstanceSettings` constructor no longer takes a required `numberOfInstances` parameter, instead it takes a required `coordinationCommandLine` parameter.
* Added support for Azure Active Directory based authentication.
   - To use Azure Active Directory authentication, retrieve a `BatchAccountContext` object using the `Get-AzureRmBatchAccount` cmdlet, and supply this `BatchAccountContext` to the `-BatchContext` parameter of a Batch service cmdlet. Azure Active Directory authentication is mandatory for accounts with `PoolAllocationMode = UserSubscription`.
   - For existing accounts or for new accounts created with `PoolAllocationMode = BatchService`, you may continue to use shared key authentication by retrieving a `BatchAccountContext` object using the `Get-AzureRmBatchAccoutKeys` cmdlet.
* Add support for online help
   - Run Get-Help with the -Online parameter to open the online help in your default Internet browser

FileList

Version History

Version Downloads Last updated
5.0.0-preview 3 10/4/2018
4.1.6 0 3/22/2021
4.1.5 574 8/29/2018
4.1.4 13 8/24/2018
4.1.3 21 8/10/2018
4.1.2 177 7/27/2018
4.1.1 114 6/29/2018
4.1.0 112 5/18/2018
4.0.7 61 5/1/2018
4.0.6 65 4/6/2018
4.0.5 34 3/23/2018
4.0.4 670 1/26/2018
4.0.3 52 12/9/2017
4.0.2 4 12/8/2017
4.0.1 7 11/10/2017
4.0.0 (current version) 7 11/8/2017
3.4.1 5 10/12/2017
3.4.0 6 9/24/2017
3.3.1 7 8/16/2017
3.3.0 6 8/9/2017
3.2.1 7 7/18/2017
3.2.0 6 7/11/2017
3.1.0 339 6/8/2017
3.0.1 26 5/24/2017
3.0.0 9 5/9/2017
2.8.0 16 4/5/2017
2.7.0 2 3/9/2017
2.6.0 5 2/22/2017
2.5.0 6 1/17/2017
2.4.0 7 12/14/2016
2.3.0 6 11/1/2016
2.2.0 4 9/27/2016
2.1.0 13 9/8/2016
2.0.1 10 8/10/2016
2.0.0 5 8/8/2016
1.1.3 6 7/11/2016
1.1.2 8 6/24/2016
1.1.1 6 6/1/2016
1.1.0 8 5/4/2016
1.0.7 97 4/18/2016
1.0.6 8 3/29/2016
1.0.5 6 3/4/2016
1.0.4.4 5 7/8/2017
1.0.4.3 7 3/14/2017
1.0.4.2 18 12/16/2016
1.0.4.1 13 9/8/2016
1.0.4 9 2/3/2016
1.0.3 5 1/12/2016
1.0.2 8 12/16/2015
1.0.1 8 11/9/2015
1.0.0 5 11/5/2015
0.10.0 3 10/8/2015
0.9.10 9 9/25/2015
0.9.9 3 9/24/2015
0.9.8 4 9/23/2015
Show less