azure-batch-cli-extensions 7.0.0
Additional commands for working with Azure Batch service
License: MIT

Microsoft Azure Batch CLI Extensions for Windows, Mac and Linux
===============================================================

This project is a preview build of the Microsoft Azure command-line interface to demonstrate proposed features in Azure Batch.
For further details on the Azure CLI, please check the `official documentation <https://docs.microsoft.com/en-us/cli/azure/install-azure-cli>`_.

The purpose of this project is to allow customers to try out proposed Batch features and provide feedback to help shape the direction of the Batch service.
The features presented here may not be compatible with other Batch client SDKs and tools, nor will they necessarily be adopted into the core Batch service.

As these features are still in preview, they will be updated regularly, and refined based on customer feedback.
Unfortunately this may result in occasional breaking changes, though every effort will be made to keep this to a minimum.

Features
--------

`Input data upload to Batch linked storage accounts <https://github.com/Azure/azure-batch-cli-extensions/blob/master/doc/inputFiles.md#input-file-upload>`_
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

A new command to allow a user to upload a set of files directly into the storage account linked to their Azure Batch account.

`Input data references using linked storage accounts <https://github.com/Azure/azure-batch-cli-extensions/blob/master/doc/inputFiles.md#referencing-input-data>`_
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Input data stored in linked storage under a file group can be simply referenced by a task by using some new ResourceFile properties. 

`Automatic persistence of task output files to a file group <https://github.com/Azure/azure-batch-cli-extensions/blob/master/doc/outputFiles.md>`_
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

When declaring task output files, you can now persist outputs to a named file group, without the need to generate a container SAS URL.

`Download job outputs from directly from storage <https://github.com/Azure/azure-batch-cli-extensions/blob/master/doc/outputFiles.md#output-file-download>`_
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

A new command to allow a user to download job output files from a file group in the storage account linked to their Azure Batch account.

`Pool and job templates with parameterization <https://github.com/Azure/azure-batch-cli-extensions/blob/master/doc/templates.md>`_
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Templates allow pools and jobs to be defined in parameterized json files with a format inspired by ARM templates.

`Task factories for automatic task generation on job submission <https://github.com/Azure/azure-batch-cli-extensions/blob/master/doc/taskFactories.md>`_
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Task factories provide a way for a job and all its tasks to be created in one command instead
of calling `azure batch task create` for each task. There are currently three kinds of task factory:

* `Task Collection <https://github.com/Azure/azure-batch-cli-extensions/blob/master/doc/taskFactories.md#task-collection>`_ - tasks are explicitly defined as a part of the job
* `Parametric Sweep <https://github.com/Azure/azure-batch-cli-extensions/blob/master/doc/taskFactories.md#parametric-sweep>`_ - a set of tasks are created by substituting a range or sequence of values into a template 
* `Per File <https://github.com/Azure/azure-batch-cli-extensions/blob/master/doc/taskFactories.md#task-per-file>`_ - a template task is replicated for each available input file 

`Split job configuration and management with reusable application templates <https://github.com/Azure/azure-batch-cli-extensions/blob/master/doc/application-templates.md>`_
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Application templates provide a way to partition the details of a job into two parts.

All of the details about how the job should be processed are moved into the **application template**, creating a reusable definition that is independent of a particular account. Application templates are parameterized to allow the processing to be customized without requiring modification of the template itself.

`Easy software installation via package managers <https://github.com/Azure/azure-batch-cli-extensions/blob/master/doc/packages.md>`_
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Integration with existing 3rd party package managers to streamline the installation of applications. Currently the following package managers are supported:

* Chocolatey - for Windows
* APT - as used by some Linux distros including Ubuntu, Debian, and Fedora. 
* Yum - a package manager used by some Linux distros including  Red Hat Enterprise Linux, Fedora, CentOS. 


Samples
-------

Samples for all of the preview features can be found in `samples <https://github.com/Azure/azure-batch-cli-extensions/blob/master/samples>`_.

Installation
------------

In order to make use of these features, you must have the Azure CLI installed.
You can find futher instructions in the `official documentation <https://docs.microsoft.com/en-us/cli/azure/install-azure-cli>`_ and in the
`Azure CLI GitHub repository <https://github.com/azure/azure-cli>`_.

This extension package can be installed to supplement the existing Azure CLI Batch commands.
It can be installed using the CLI extension tools:

.. code-block:: bash

    $ az extension add --source [URL to latest release package]


Azure Batch account requirements
--------------------------------

In order to make use of the new features previewed here, you will need an Azure Batch account with a linked storage account.
For more information on this, see `Create an Azure Batch account using the Azure Portal <https://azure.microsoft.com/documentation/articles/batch-account-create-portal>`_.


.. :changelog:

Release History
===============

7.0.0 (2022-09-9)
------------------

* Update SDK dependency to get latest models and defaults

6.0.0 (2020-06-15)
------------------

* Update SDK dependency to get latest models and defaults

5.0.1 (2019-08-20)
------------------

* Support latest CLI versions

5.0.0 (2019-08-20)
------------------

* Update SDK dependency to get latest models and defaults

4.0.0 (2019-06-20)
------------------

* Update SDK dependency to get latest models

3.0.4 (2019-03-21)
------------------

* Update supported version warning to be accurate

3.0.3 (2019-03-06)
------------------

* Update supported version warning to be accurate

3.0.2 (2019-02-26)
------------------

* Fix bug when using extension to create a pool through normal CLI behavior

3.0.1 (2019-02-04)
------------------

* Use new azure-batch-extensions SDK 5.0.0.

2.5.1 (2018-10-04)
------------------

* Pin version of pycparser due to CLI breaking change

2.5.0 (2018-08-29)
------------------

* Use the new azure-batch-extensions SDK.

2.4.1 (2018-07-20)
------------------

* Fix default thread count bug

2.4.0 (2018-07-17)
------------------

* Remove warning message on using correct dependency.

2.3.0 (2018-05-25)
------------------

* Change dependency.
* Validate the input template/json with correct schema.
* Update job create to have on-by-default multi-threading.
* Update error logging for job create.

2.2.0 (2018-04-12)
------------------

* Update supported CLI version.

2.1.0 (2018-01-05)
------------------

* Structure changed for CLI core Knack refactor.

2.0.1 (2017-12-15)
------------------

* Update supported CLI version

2.0.0 (2017-10-10)
------------------

* Restructured to support new CLI extensions framework
* Support for Azure Batch SDK 4.0 and Batch Extensions SDK 1.0


1.0.0 (2017-07-31)
------------------

* Some bug fixes in handling resource files and account URLs.


1.0.0rc4 (2017-07-10)
---------------------

* Better error handling on authentication.


1.0.0rc3 (2017-07-03)
---------------------

* Refactored extensions to separate core logic into a standalone SDK.


1.0.0rc2 (2017-04-25)
---------------------

* Support for Azure CLI 2.0.3.


1.0.0rc1 (2017-03-20)
---------------------

* Initial preview release.