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

Vinod Survase 4,811 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 cloud-based service included in Microsoft 365, delivering scalable messaging and collaboration features with simplified management and automatic updates.
Exchange | Exchange Server | Management
Exchange | Exchange Server | Management
The administration and maintenance of Microsoft Exchange Server to ensure secure, reliable, and efficient email and collaboration services across an organization.
{count} votes

Answer accepted by question author
  1. Andy David - MVP 159.7K 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' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.