Skip to main content

Configure the Exchange Online App Service

As a final prerequisite step, apply the configuration settings listed in the table below to the Exchange Online app service.

Application Setting NameDescription
VaultUrlSpecifies the URL to the Azure Vault where the Private Key Certificate resides.
SPCertificateNameSpecifies the name of the Private Key Certificate in the Azure Vault, i.e., EXOAuth
SPAppIDSpecifies the Application (client) ID of the service principal associated with the above certificate, i.e., 3a441884-4b7a-42e2-bb2b-ef5ce8378002
EXOrganizationSpecifies the .onmicrosoft.com domain for the exchange organization, i.e., mycontractors.onmicrosoft.com
WEBSITE_LOAD_USER_PROFILEThe value of this setting must be set to 1.

Configure the app service

  1. Navigate to the Exchange Online App Service you created earlier.
  2. On the navbar for the App Service, under Settings, click Configuration.
  3. Under Application settings, click New application setting.
  4. In the Add/Edit application setting pane, do the following to add the first setting:
    • Name – Enter VaultUrl.
    • Value – Enter the URL to the Azure key vault where the private key certificate resides.
    • Click OK.
  5. Repeat step 4 above for each of the following settings:
    • SPCertificateName – Set the value to the name of the private key certificate in the Azure key vault
    • SPAppID – Set the value to the Application (client) ID of the service principal associated with the above certificate
    • EXOrganization – Set the value to the .onmicrosoft.com domain for the exchange organization
    • WEBSITE_LOAD_USER_PROFILE – Set the value to 1
  6. After adding the new settings, click Save.
  7. Click Continue to save the changes.