# Azure Batch Python Samples

Code samples showing interaction with the Azure Batch Service using the Azure Batch Python SDK.

## Prerequisites

* Python 3.6 or later is required to use this package
* You will need an [Azure subscription](https://azure.microsoft.com/free/) to run these samples.

## Setup

1. Install the Azure Batch client library for Python [pip](https://pypi.org/project/azure-batch/):

```bash
pip install azure-batch
```

2. Clone or download this sample repository.
3. Open the sample folder in Visual Studio Code or an IDE of your choice.

## Running the samples

1. Open a termianl window and `cd` into the directory that the samples are saved in.
2. Edit the `samples.cfg` file to include the correct credentials to access the Azure service and run the samples. The sample programs are set up to read this file automatically.
3. Follow the usage directions in the file, e.g. `python batch_samples_hello_world.py`
