In my previous post (http://thinkfirstcodelater.com/blog/?p=3387) I showed you how to use the Windows Azure Cross Platform command line tools to update a scheduled job associated with a Windows Azure Mobile Services. In this post I’ll show you how to use the tools to delete a scheduled job.
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 delete -h
As you can see the azure mobile job delete command is the command to use to delete a job associated with a Windows Azure Mobile Service. You simply need to provide the name of the mobile service the job you want to delete is associated with as well as the name of the job itself.
To proceed with deleting a scheduled job, enter the following into your CLI, substituting where appropriate:
azure mobile job delete ‘[YOUR MOBILE SERVICE NAME]‘ ‘[YOUR JOB NAME]‘
I entered the following:
azure mobile job delete ‘zumo-00005′ ‘myFirstJob’
Once the command completes, you can use the azure mobile job list command to verify the job has been deleted by entering the following, making the necessary substitutions:
azure mobile job list ‘[YOUR MOBILE SERVICE NAME]‘
I used the following:
azure mobile job list ‘zumo-00005′
That’s it for working with Windows Azure Mobile Services scheduled jobs from the command line. In my next post I’ll show you how to use the cross platform command line tools to scale your Windows Azure Mobile Services.
Did you know you can try Windows Azure for free for 30 days? Just go to http://aka.ms/thecloud and sign up.