File: README.md

package info (click to toggle)
python-azure 20250603%2Bgit-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 851,724 kB
  • sloc: python: 7,362,925; ansic: 804; javascript: 287; makefile: 195; sh: 145; xml: 109
file content (25 lines) | stat: -rw-r--r-- 939 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# 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`