If you have an Office 365 account, you have Azure Active Directory. When logging into Azure, you will need to make sure that you decide to use your administrative administrator account (and sign up for a free trial if you haven't already). In the Azure portal, click "Active Directory" and you will see that you already have a directory.
Now for the MVC web application, check out the Azure Active Directory Samples on GitHub . Also, don't forget to take a look at several different scenarios that are documented on MSDN . In particular, I would recommend looking at WebApp-GraphAPI-DotNet , which is an MVC application that authenticates with OpenID Connect with Azure AD, and use this to query the AAD Graph API for details.
(Edit: Updated links to new material.)
source share