In order to use OAuth with Azure AD, you need to first register you application in Azure Portal. You could do it in Azure Management Portal (Classic/Old what ever you want to call it), but I recommend using the new Continue reading Create new Azure AD Application→