Office 365 – Azure Active Directory – Registering/Creating new Azure App – detailed steps

Hi All,

Today one more interesting topic to discuss 🙂

In this article we will discuss the detailed steps for creating / registering new app from Azure Active Directory

Background: Recently got a chance to use Graph API for getting Office 365 Group Admins. We have use case to check whether our Office 365 group has more than two owners or not. We have console application and using CSOM to get the group owners. To use the GRAPH APIs, authentication and authorization mechanism is bit different. We need to use the Azure AD.

So, to access Microsoft GRPAH APIs we need to create the new Azure App and need to give the permissions to respective APIs to access the respective data. Here, in our case to access O365 groups we have following high level steps:

  1. Register / Create new Azure App from “Azure Active Directory” center
  2. Get the APPID and Client Secret Key
  3. Give the permission to access o365 Group owners to our newly created app to access GRAPH APIs
  4. Generate the authentication token in our program
  5. Use authentication token to use the GRAPH APIs

In this article we will go in details for two points – Register / Create new Azure App from “Azure Active Directory” center and generating new client secret key. We will have detailed steps as below.

Steps to Register / Create Azure App:

  1. Login to O365 Admin site –
    https://admin.microsoft.com/AdminPortal/Home#/homepage
  2. Go to the “Azure Active Directory” center as shown in below snap

Figure 1: Office 365 – Admin Center

3. We will be redirected to “Azure Active Directory admin center” as

Figure 2: Azure Active Directory admin center

4. Click on “Azure Active Directory” option from left side as

Figure 3:Azure Active Directory admin center – Azure Active Directory >> App registrations

5. Click on “App registrations” from left side as mentioned in above figure3 , “App registration” dashboard will appear as

Figure 4: Azure Active Directory admin center – “+ New application registration” option

6. Click on “+ New application registration” link from the top as shown in above figure.

New app registration screen will appear as shown in below screen as

Figure 5:Azure Active Directory admin center: Creating App

Enter following details:

Name – KnowledgeJunctionAzureApp

Application type – Web app / API

Sign-on URLhttp://knowledgejunction.com

7. Click on “Create” button at bottom on the page.

Make sure that we have success message appeared and we are on following screen:

Figure 6:Azure Active Directory admin center-Registered app

From here important point to note is Application ID as shown in above figure. We will also get the APPID from the URL as well – https://aad.portal.azure.com/#blade/Microsoft_AAD_IAM/ApplicationBlade/appId/3bd4d474-78ac-41f2-81cf-f6ffe3436f5e/objectId/1f24a919-e959-45a5-ae85-de8f2db253c1

Also, we will require client secret key, we will generate new client secret key as follows:

1. From above figure 6, click on “Settings” icon, Settings pane will open as shown in below figure

Figure 7:Azure Active Directory admin center – Azure App >> Settings icon

2. On “Settings” pane there is “Keys” option as shown in above figure 8. Click on “Keys” and Keys pane will open as

Figure 8: Azure Active Directory admin center – Azure App >> Settings >> Keys >> Generating Client Secret Key

3. Give the name under “DESCRIPTION” column and select “EXPIRES” option as “Never expires” as shown in above figure 8. Click on “Save” option on the top.

Figure 9: Azure Active Directory admin center – Azure App >> Settings >> Keys >> New Client Secret Key generated

Once new client secret key is generated, please copy it. See the warning in top brown bar. Once we left this pane, we don’t have any option to get this key. We need to create new again.

Thanks for reading 🙂

Keep reading, share your thoughts, experiences. Feel free to contact us to discuss more. If you have any suggestion / feedback / doubt, you are most welcome.

Stay tuned on Knowledge-Junction, will come up with more such articles

Prasham Sabadra

LIFE IS VERY BEAUTIFUL :) ENJOY THE WHOLE JOURNEY :) Founder of Knowledge Junction and live-beautiful-life.com, Author, Learner, Passionate Techie, avid reader. Certified Professional Workshop Facilitator / Public Speaker. Scrum Foundation Professional certificated. Motivational, Behavioral , Technical speaker. Speaks in various events including SharePoint Saturdays, Boot camps, Collages / Schools, local chapter. Can reach me for Microsoft 365, Azure, DevOps, SharePoint, Teams, Power Platform, JavaScript.

You may also like...

9 Responses

  1. Rahim Mohd says:

    Hello Prasham..thank you so much for sharing this article. I was doing a POC by reffering your article and like to bring to your kind attention a small correction to Admin Center reference in starting of the article.

    I.e. “Steps to Register / Create Azure App:

    Login to SharePoint Admin site – https://-admin.sharepoint.com here in my case – https://knowledgejunction-admin.sharepoint.com

    This should be “Login to Microsoft Office365 Admin Center” using URL below:
    https://admin.microsoft.com/AdminPortal/Home#/homepage

    Please review once.

    Thank you once again Prasham, for sharing this knowlegde and motivating all of us..please continue.

  2. Thanks Abdul. This is very good catch 🙂

    Updated the article. Please have a look once

  1. December 25, 2018

    […] Office 365 – Azure Active Directory – Registering/Creating new Azure App – detailed steps […]

  2. December 26, 2018

    […] series, here is the list, please have a look once. Office 365 – Microsoft Graph and Graph ExplorerOffice 365 – Azure Active Directory – Registering/Creating new Azure App – detailed stepsOffice 365 – Microsoft Graph beginning – Part 1Office 365 – Microsoft Graph – Part 2 – […]

  3. December 27, 2018

    […] 365 – Microsoft Graph and Graph ExplorerOffice 365 – Azure Active Directory – Registering/Creating new Azure App – detailed stepsOffice 365 – Microsoft Graph beginning – Part 1Office 365 – Microsoft Graph – Part 2 – […]

  4. January 12, 2019

    […] 365 – Microsoft Graph and Graph ExplorerOffice 365 – Azure Active Directory – Registering/Creating new Azure App – detailed stepsOffice 365 – Microsoft Graph beginning – Part 1Office 365 – Microsoft Graph – Part 2 – […]

  5. December 11, 2021

    […] How to register / create new App and Client Secret please have a look once our article – Office 365 – Azure Active Directory – Registering/Creating new Azure App – detailed steps […]

  6. December 16, 2021

    […] For step by step details please have a look once – https://knowledge-junction.com/2018/12/20/office-365-azure-active-directory-registering-creating-ne… […]

  7. September 9, 2022

    […] Office 365 – Azure Active Directory – Registering/Creating new Azure App – detailed steps […]

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Discover more from Microsoft 365

Subscribe now to keep reading and get access to the full archive.

Continue reading