Azure Mobile Services prompts you for a username and password


So you’ve built and deployed your first Azure Mobile Service. Awesome! then you get prompted for a username and password and you can’t use your new mobile service! The good news is that this is by design and being that it is by design, there is an appropriate and easy way to deal with it. The reason for it is security pure and simple and the information needed to get past it is available to you.

To start with, you have a mobile service in Azure that looks like the following:

image

Figure 1: Mobile Service Dashboard

Clicking the highlighted link takes you to this page:

image

Figure 2: Mobile Service entry page

Clicking the Try it out button brings you to the username/password dialog. Looking back at the mobile services dashboard you’ll see the Manage Keys button at the bottom of the screen as shown in Figure 3.

image

Figure 3: Manage Keys

Click the button and then copy either the primary or secondary key. Now, click the Try me button and when the username/password dialog is displayed, paste the key into the password field (leave the username field blank) and click OK. And voila you get to the service as shown in Figure 4.

image

Figure 4: The working mobile service


Comments (3)

  1. Greg says:

    Thanks for this! Really helpful.

    Yet again another thing that MS expects you to find on your own using Google!

  2. Bilal says:

    wow. I thought I was doing something wrong.  Thank you for this information.

  3. Ashish says:

    hi thnaks for help

    just to add one thing for post operation you need to use the master key

Skip to main content