Welcome!

Think first. Code later.

Adam Grocholski

Subscribe to Adam Grocholski: eMailAlertsEmail Alerts
Get Adam Grocholski via: homepageHomepage mobileMobile rssRSS facebookFacebook twitterTwitter linkedinLinkedIn


Related Topics: Ubuntu Linux Journal, SEO Journal, Azure Cloud on Ulitzer

Blog Feed Post

Azure CLI Day 36 – mobile script list

bash-azure

In my previous two posts I showed you how to use the Windows Azure cross platform command line tools to:

  1. Create a scheduled job for a Windows Azure Mobile Service (http://thinkfirstcodelater.com/blog/?p=3342)
  2. List the scheduled jobs associated with a Windows Azure Mobile Service (http://thinkfirstcodelater.com/blog/?p=3350)

In this post I’ll start looking at how to modify the script associated with a scheduled job.

Once again, just a reminder that I’m using the command line tools on a MacBook Air with OSX (Mountain Lion) installed, and I’m using Google Chrome as my default browser. However, the experience should be identical on Windows and Linux as well.

Before you can modify a script associated with a scheduled job you’ll probably want to download the default script that is created for the job. However, before you can download the script you need to know where it is. Open an instance of your command line (Terminal, Bash, Command Prompt, etc.) and type the following:

azure mobile script list -h

Screen Shot 2013-10-14 at 7.40.22 PM

The azure mobile script list command is the command to use to list all the scripts associated with a Windows Azure Mobile Service. The results will include scripts for scheduled jobs, custom API’s, as well as any table scripts you may have. At the time of this writing the results will not include any shared scripts. The only parameter you need to provide is the name of the Windows Azure Mobile Service.

Enter the following into your CLI, substituting where appropriate, to list all scripts associated with a Windows Azure Mobile Service:

azure mobile script list ‘[YOUR MOBILE SERVICE NAME]‘

I entered the following:

azure mobile script list ‘zumo-00005′

Screen Shot 2013-10-14 at 7.45.25 PM

In my case the results look the same as running the azure mobile job list command. However, if I had scripts for custom API’s or tables they would appear in the results. What is important to note here is the value in the Script name column of the results. We’ll use this value in the next post to look at different ways we can download the script.

Did you know you can try Windows Azure for free for 30 days? Just go to http://aka.ms/thecloud and sign up.

Read the original blog entry...

More Stories By Adam Grocholski

Hey there! My name is Adam Grocholski, and I'm a Technical Evangelist at Microsoft where I spend time focusing on Windows, Windows Phone, and Windows Azure. I live in the frozen tundra of Minnesota and run thinkfirstcodelater.com. You can also follow me on twitter at @codel8r.