Orchestrator's Exchange Admin configuration for on-premises Exchange produces Azure error

Christopher Champlin 1 Reputation point
2024-08-06T19:49:21.57+00:00

We are in a hybrid, Azure AD Connect integrated environment, where local AD syncs to Azure. This configuration requires that new Exchange mailboxes be initiated on-premises, created as Remote Mailboxes.

In SCO 2022, the Exchange Admin activities ceased working where they were working fine in SCO 2019.

Now, the attempt to use the Exchange Powershell activity produces an error like it's trying to connect with Azure, instead of local AD. There is no "Azure AD application" for an on-prem SCO runbook server to connect to on-prem AD, or on-prem Exchange. Has anyone seen this, and/or know what will fix it?

(Additional note, for activities that connect to Exchange Online work fine, once the mailboxes are created. It's just the Integration Pack failing to work with on-prem.)


The configuration for this activity must specify a valid Azure AD application (client) ID.

Exception: InvalidActivityException

Target site: ExchangeGatewayFactory.ValidateConfigurationForExchangeOnline

Stack trace:

at SystemCenter.IntegrationPack.ExchangeAdmin.Domain.ExchangeGatewayFactory.ValidateConfigurationForExchangeOnline(ExchangeConfiguration configuration)

at SystemCenter.IntegrationPack.ExchangeAdmin.Activity.RunPowerShellCommandActivity.Execute(IActivityRequest request, IActivityResponse response)

System Center Orchestrator
System Center Orchestrator
A family of System Center products that provide an automation platform for orchestrating and integrating both Microsoft and non-Microsoft IT tools.
229 questions
Exchange Server Management
Exchange Server Management
Exchange Server: A family of Microsoft client/server messaging and collaboration software.Management: The act or process of organizing, handling, directing or controlling something.
7,641 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. XinGuo-MSFT 18,311 Reputation points
    2024-08-07T07:18:59.7833333+00:00

    Hi,

    The error message you’re encountering, InvalidActivityException, indicates that the Exchange Admin Integration Pack is trying to validate the configuration for Exchange Online instead of your on-premises Exchange environment. This is likely due to a misconfiguration or a bug in the integration pack.

    Here are some steps to help resolve this issue:

    1. Verify Configuration: Double-check the configuration settings for the Exchange Admin Integration Pack. Ensure that it is explicitly set to connect to your on-premises Exchange server and not to Azure AD or Exchange Online.
    2. Update Integration Pack: Look for any updates or patches for the Exchange Admin Integration Pack. Sometimes, updates can fix bugs or compatibility issues.
    3. PowerShell Modules: Ensure that the correct PowerShell modules for on-premises Exchange are installed and up to date on the Orchestrator server. This includes verifying that the necessary modules and permissions are in place.
    4. Service Account Permissions: Confirm that the service account used by SCO has the necessary permissions to create and manage mailboxes in the on-premises Exchange environment. This might involve adjusting roles and permissions in both AD and Exchange.
    5. Hybrid Configuration Wizard: Make sure the Hybrid Configuration Wizard (HCW) has been run and configured correctly. This tool helps to set up and manage hybrid deployments between on-premises Exchange and Exchange Online.
    6. Logs and Diagnostics: Review the logs and diagnostic information from both SCO and Exchange. This can provide more detailed error messages and clues about where the configuration might be going wrong.
    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.