As a pre-requisite we need to register a new app in Azure AD, note down some properties, and generate a Client Secret.
- Register an app in Azure Active Directory.
- Note its Application (client) ID
- Note the Directory (tenant) ID
- Generate a New Client Secret.