Inspiration

It happens. You don’t have a computer with you in handy. You probably don’t have an iPad either. Sometimes, you may not even have internet connection. for example, you are on an over-crowded hackathon wifi :( All you got is your phone, which may not even be a smartphone…but you really need to manage your azure virtual machine ASAP! What do you do?

The answer: use SMS-Azure to control your azure virtual machine with SMS!

What it does

screenshot

How I built it

  1. Set up a twilio account
  2. Get azure credentials for authrization
  3. Use Twilio Programmable SMS to forward incoming message to server running on Microsoft Azure
  4. Use nodejs script on azure server to interpret and respond to incoming command

Challenges I ran into

At first, I tried to use Java. However, I found it far from the best way to do this. Then, I came to node.js, which is a technology I'm completely new to. I had to started from the very beginning. It took me hours to figure out how to make a HTTP request, then more hours to understand what authentication means with OAuth2.

Accomplishments that I'm proud of

It finally works, yeah! I no longer need to do the tedious process of

  1. go to portal.azure.com
  2. log in
  3. go to the resource group
  4. select the vm
  5. choose 'start, stop, ...'
  6. ... NO MORE!! Now I just SMS!

What I learned

basics of node.js, basics of HTTP requests, Azure API, Authentication with OAuth2.

What's next for AzureViaSMS

make it available for everyone to use easily (that is, fix hard-coded stuff)

Built With

Share this project:

Updates