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 39 – mobile job update


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

In this post I’ll show you how to use these tools to update a scheduled job associated with a Windows Azure Mobile Service.

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

Open an instance of your command line (Terminal, Bash, Command Prompt, etc.) and type the following:

azure mobile job update -h

Screen Shot 2013-10-22 at 6.16.20 PM

The azure mobile job update command is the command to use to update a scheduled job. As you can see, many of the parameters are similar to the parameters of the azure mobile job create command that I walked through in a previous post (http://thinkfirstcodelater.com/blog/?p=3342). In fact, the only difference is the -a or –status option. This options allows you to enable or disable a scheduled job. Since the job we initially created is currently disabled we’ll use this option to enable it.

Type the following into your CLI of choice, substituting where appropriate:

azure mobile job update -a enabled ‘[YOUR MOBILE SERVCE NAME]‘ ‘[YOUR JOB NAME]‘

In my case I entered the following:

azure mobile job update -a enabled ‘zumo-00005′ ‘myFirstJob’

Screen Shot 2013-10-22 at 6.26.04 PM

Once the command completes, you can verify the job has been enabled by using the azure mobile job list command by entering the following, substituting where necessary:

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

I entered the following:

azure mobile job list ‘zumo-00005′

Screen Shot 2013-10-22 at 6.29.26 PM

You can also verify by going to the Windows Azure Management Portal, and viewing the scheduled jobs for your Windows Azure Mobile Service.

Screen Shot 2013-10-22 at 6.30.15 PM

That’s it for now. In my next post I’ll wrap up working with scheduled jobs by showing you how to delete a job associated with a Windows Azure Mobile Service.

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.