Join David Isbitski for an in-depth discussion in this video Creating a new Azure Mobile Service instance, part of Learning Azure Mobile Services.
Now that we have a working Azure account, it's time to actually build a mobile service. We're going to go back in to the Azure portal, and from the command bar at the bottom we're going to select new, compute, and mobile service. Just like all of the services within Azure, the creation of a new mobile service is intended to be very quick and very easy. We simply need to add a URL, so I'm going to say balloons. In this course we are going to be using a balloons game example so that we have a real gaming example to go ahead and attach a mobile service tool.
So this URL will be at balloons.azure-mobile.net. I'm going to select West US as the region And we're going to keep the free 20 megabyte SQL database. You can also create a new SQL database instant if you'd like. We'll just keep the defaults, hit next. We're going to use the defaults for the database. So it's going to be called balloons underscore db. We can configure advanced settings if we want, so if I hit this.
We're going to be taking to a new screen. I'll say new SQL server. Lets add a login name, hit next, and you'll see these are some of the settings that you can set when you're using advanced settings. I'm just going to keep the defaults here. Azure is now going to create the mobile service for us. In just a little bit our service will be up and running, and available at a URL you'll see listed here. Like all of the other services available in the Azure portal, you can also search using the search symbol magnifying glass here.
And if you have a lot of different services to find what you're looking for And you'll be able to sort through any of these columns. Our service has now been created and you'll notice status is set to ready and you'll also see the addition of a sequel database over here if I click on it of balloons_db. It's set to the web free edition With a max size of 20 megabytes. It's important to point out that both locations are in the same region data center, so they're both set for West US.
If I click back over on Mobile Services, I can now hit this URL, and you'll see that this service is now live on the internet, and accepting requests. In fact, I'm going to refresh the page a couple of times here so that we generate some traffic. Let's go back into the Azure portal. Click on the name of the service, and then dashboard This is where we're going to have the general overview, just like our other Azure Services when it comes to metrics.
So here you can see I have API calls and data out. I can look at relative, absolute, 24 hours, 6 hours or the full week, and I can also refresh. If I scroll down, you'll see in the free tier, what my current limits are. If you remember when we talked about the different pricing plans, the free tier limits you to 100 devices, and you can see here, I've got a little over 16,000 API calls.
I'm also limited to 165 megabytes. Remember, even though I'm in a free trial mode, I can upgrade at any time if I find that I need more power inside of my service.
- Setting up Visual Studio, Node.js, and the Azure Mobile Services SDK
- Creating a new Azure Mobile Service instance
- Connecting an app to a new service
- Creating and managing storage tables
- Setting up Facebook authorization
- Storing app data in the cloud
- Sending out push notifications
- Setting up an API service
- Adding custom logging