Launching Azure VMs, et al, From Code

Via RBloggers, a post showing how to launch Azure VMs from R as well as retrieving/restarting a previously launched VM.

By the by, you can also launch Azure VMs from Python code.

Packages like this makes it relatively straightforward to write your own provisioners, at least in the sense of starting and stopping VMs.

There are also code wrappers for a wide range of other cloud services and virtualisation engines. For example, docker-py provides similar tooling for starting and stopping Docker containers; for my preferred cloud host, Digital Ocean, it looks like there’s python-digitalocean.  I’ve also used Linode in the path, who provide their own official package: linode_api4-python.

I know all this, of course, though I don’t use this approach much. But it’s a useful set of things to remember you have available in the string’n’glue drawer.

Author: Tony Hirst

I'm a lecturer at The Open University, with an interest in #opendata policy and practice, as well as general web tinkering...

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.