Git Product home page Git Product logo

batch-python-paas-cloud-service-pool's Introduction

services platforms author
batch
python
msonecode

How to create Azure Batch PaaS Cloud service by Python

Introduction

This sample provides a get-started Azure Batch sample written in Python. Cloud Service Configuration is used for computing nodes in Batch pool.


Prerequisites

Python Tools for Visual Studio

Install Python tools for Visual Studio.

http://aka.ms/ptvs

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.

https://docs.microsoft.com/en-us/azure/storage/storage-create-storage-account#create-a-storage-account




Build the Sample

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 = ''




Running the Sample

Execute python_tutorial_client.py and the upload file state. Then, create batch pool so that job and task will output in console.

Execute  output

batch-python-paas-cloud-service-pool's People

Contributors

aliceqin12 avatar vaanpan avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.