OzB
OzB

Reputation: 2221

ASP.NET MVC Windows Azure organization authentication

I'm trying to configure the organization authentication in an ASP.NET MVC project in Visual Studio 2013 RC. After filling the data in the create project dialog, like Microsoft instructed in their tutorials, I'm getting an error which says that the configure failed. I've tried to do so as well in Visual Studio 2012 using the identity addon.

Maybe it's related to Windows Azure AD?

Here is the error that I'm getting: Describe image

Hopes that someone knows how to fix that issue. Thanks for any help and suggestion!

Upvotes: 4

Views: 2046

Answers (3)

Michael Ludwig
Michael Ludwig

Reputation: 197

In follow up to OzB:

Once you've setup the user in AAD as per OzB's account, note that you must also then go to "Settings" in Azure and add that account as an administrator of the Azure subscription, otherwise you can't upload the website itself.

Upvotes: 0

OzB
OzB

Reputation: 2221

This question is old, but today I found a workaround that I'd like to share.

It seems like we can't use Microsoft Account when we're using WAAD.

So:

  1. Create a WAAD.
  2. Add an administrator
    • Choose local directory account, not Microsoft Account.
    • Grant this account Global Administrator permissions.
  3. Open Visual Studio and create a new web based project.
  4. Choose in authentication the "Organization Accounts".
  5. Specify your WAAD URL (e.g. "[email protected]").
  6. When you're required to insert your user and password, use the local account username and password. for example ("[email protected]").

This will allow you to pass the error.

Edit: Microsoft published a post that referred to this problem and show the solution (the one I described above). http://www.cloudidentity.com/blog/2013/12/11/setting-up-an-asp-net-project-with-organizational-authentication-requires-an-organizational-account/

Upvotes: 1

Bhavesh Chauhan
Bhavesh Chauhan

Reputation: 1048

I would check for two things:

  • The account used to login to Windows Azure while has Global Admin role in AAD
  • App ID URI specified in the project creation dialog is valid. Valid App ID URI for domain mydomain.onmicrosoft.com has format https://mydomain.onmicrosoft.com/uniqueUri. Note that you can leave this field blank and the tool will automatically pick the correct App ID URI for you.

If these two things don't help, I would encourage you to run DebugView (http://technet.microsoft.com/en-us/sysinternals/bb896647.aspx) in the background while trying to create a similar project and you can see the actual error message in the trace in DebugView.

Upvotes: 0

Related Questions