How to get Microsoft.Exchange -ConnectionUri for our tenant in exchange online and where to look it ?

Vinod Survase 4,776 Reputation points
2021-10-21T16:37:32.5+00:00

How to get Microsoft.Exchange -ConnectionUri for our tenant in exchange online and where to look it ?

Exchange Online
Exchange Online
A Microsoft email and calendaring hosted service.
6,178 questions
Exchange | Exchange Server | Management
{count} votes

Accepted answer
  1. Andy David - MVP 157.8K Reputation points MVP Volunteer Moderator
    2021-10-21T17:34:35.12+00:00

    You probably dont need it unless you are in Germany, China or DOD. In that case, choose the correct one:

    -ConnectionUri
    Note: If you use the ExchangeEnvironmentName parameter, you don't need to use the AzureADAuthorizationEndpointUri or ConnectionUri parameters.

    The ConnectionUri parameter specifies the connection endpoint for the remote Exchange Online PowerShell session. The following Exchange Online PowerShell environments and related values are supported:

    Microsoft 365 or Microsoft 365 GCC: Don't use this parameter. The required value is https://outlook.office365.com/powershell-liveid/, but that's also the default value, so you don't need to use this parameter.
    Office 365 Germany: https://outlook.office.de/PowerShell-LiveID
    Office 365 operated by 21Vianet: https://partner.outlook.cn/PowerShell
    Microsoft 365 GCC High: https://outlook.office365.us/powershell-liveid
    Microsoft 365 DoD: https://webmail.apps.mil/powershell-liveid
    Note: If your organization is on-premises Exchange, and you have Exchange Enterprise CAL with Services licenses for Exchange Online Protection, use the this cmdlet without the ConnectionUri parameter to connect to EOP PowerShell (the same connection instructions as Exchange Online PowerShell in Microsoft 365 or Microsoft GCC).

    https://learn.microsoft.com/en-us/powershell/module/exchange/connect-exchangeonline?view=exchange-ps

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

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.