View on GitHub

Simpleazure

Simple Python library for Windows Azure

Download this project as a .zip file Download this project as a tar.gz file

Simplified Windows Azure SDK

Three lines are required to deploy Window Azure Virtual Machine in Python.

from simpleazure.simpleazure import SimpleAzure as saz

azure = saz()
azure.get_config()
azure.create_vm()

Deploying several Virtual Machines

cluster() function allows to launch multiple virtual machines at once. To start 4 VMs, specify the number as a parameter.

azure = saz()
azure.get_config()
azure.create_cluster(4)

Sample output is

my-cluster-vm-0-87412
{'request_id': '88c94c00288d42acaf877783f09c4558'}
my-cluster-vm-1-61293
{'request_id': 'abfd563c2c4f4926872b6b1dba27a93b'}
my-cluster-vm-2-96085
{'request_id': '29b55f6cb5e94cfdbf244a7c848c854d'}
my-cluster-vm-3-46927
{'request_id': 'b1a3446ebafe47a295df4c9d1b7d743c'}