Checking if the Pre-requisites for Modern Authentication are Fulfilled

For this, do the following:

  1. Login to the eG agent host.

  2. Open the PowerShell ISE in elevated mode.

  3. Follow the File -> Open menu sequence to open the O365CheckCBAPrerequisites.ps1 script in the <EG_AGENT_INSTALL_DIR>\lib directory.

  4. Press the F5 key on the keyboard to run the open script.

  5. Figure 1 will then appear.

    Figure 1 : Checking whether pre-requisites for monitoring Office 365 using Modern Authentication are fulfilled

  6. In Figure 1, first specify the Tenant Name for which certificate-based authentication has been enabled. Make sure you configure the Tenant Name here with the value of the tenant name parameter of the eG tests.

  7. If the eG agent connects to Office 365 via a proxy server, then configure the details of that server in the Proxy Details section.

  8. Then, in the AAD App Name text box, specify the name of the Microsoft Graph app that was created on Azure Active Directory for monitoring purposes.

  9. Next, in the CBA App Name text box, specify the name of the app that was created for enabling certificate-based authentication for the target tenant.

  10. If you want to check if a specified user has been assigned the valid Office 365 license as required, specify the name of that user against Licensed User Name.

  11. Then, from the To Check section, select the check boxes that indicate the pre-requisites that you want this script to check.

  12. Finally, click the OK button.

  13. Once the script runs, it will automatically create a Check_CBA_O365Prerequisites.log file in the <EG_AGENT_INSTALL_DIR>\agent\O365. The status/progress of each of the pre-requisites will be logged in this log file. You can use this log file to troubleshoot the failure of any of the pre-requisites.