services | platforms | author |
---|---|---|
batch |
python |
msonecode |
A get-started Azure Batch sample written in Python, using Cloud Service Configuration for computing nodes in Batch pool.
Python Tools for Visual Studio
Install Python Tools for Visual Studio.
Python SDK
Python Recommend the latest 3.5.2 version
https://www.python.org/downloads/
Azure Storage and Azure Batch Python packages
Install packages with the below commands in cmd.
py -m pip install -U pip
py -m pip install cryptography
py -m pip install azure-batch
py -m pip install azure-storage
Azure Batch account
Once you have an Azure subscription, create an Azure Batch account.
https://docs.microsoft.com/en-us/azure/batch/batch-account-create-portal
Azure Storage account
Create an Azure Storage account.
Prepare the information at below from Azure portal.
A batch account
• The batch account name
• The batch account key
• The batch account URL
A storage account
• The storage account name
• The storage account key
Replace the following properties in file python_tutorial_client.py with your actual values:
_BATCH_ACCOUNT_NAME = ''
_BATCH_ACCOUNT_KEY = ''
_BATCH_ACCOUNT_URL = ''
_STORAGE_ACCOUNT_NAME = ''
_STORAGE_ACCOUNT_KEY = ''
Execute python_tutorial_client.py and see the output displayed as below.