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 20 – mobile create with new database

bash-azure

In my previous post (http://thinkfirstcodelater.com/blog/?p=3192) I showed you how to get a list of locations where you can deploy Windows Azure Mobile Services using the Windows Azure cross platform command line tools. In this post I’ll show you how to use the command line tools to create a new Windows Azure mobil service.

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.

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

azure mobile create -h

Screen Shot 2013-09-17 at 9.31.17 AM

As you can see, this is the command we’ll use to create a new Windows Azure mobile service. There are a number of options available to us, but for this exercise we’ll only need to specify the following:

  • -l, –location. The location where we’ll deploy our Windows Azure mobile service.
  • servicename. The name of our Windows Azure mobile service.
  • sqlAdminUsername. The SQL admin username for our SQL server and database.
  • sqlAdminPassword. The SQL admin password for our SQL server and database.

Next, enter the following into your CLI, substituting where appropriate:

azure mobile create -l “[YOUR LOCATION]” “[YOUR SERVICE NAME]” “[YOUR SQL ADMIN USERNAME]” “[YOUR SQL ADMIN PASSWORD]“

In my case I entered:

azure mobile create -l “West US” “zumo101″ “adam” “[MY SQL ADMIN PASSWORD]“

Screen Shot 2013-09-17 at 9.39.37 AM

Trivia: Zumo was the code name of Windows Azure mobile services. It comes from aZUre MObile.

You can now go to the MOBILE SERVICES portion of the Windows Azure management portal to see your provisioned service.

Screen Shot 2013-09-17 at 9.42.50 AM

You can also go to the SQL DATABASES portion of the Windows Azure management portal to see the database that was created as part of the mobile service provisioning process.

Screen Shot 2013-09-17 at 9.44.32 AM

That’s it. You just created your first Windows Azure mobile service. One of the great benefits of Windows Azure mobile services is that you can use one database for multiple mobile services. In my next post I’ll show you how to create a mobile service that uses an existing database.

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.