Skip to content
This repository has been archived by the owner on Dec 27, 2022. It is now read-only.

Errors connecting to Exchange environment #74

Closed
ZenithQ opened this issue Jun 28, 2021 · 0 comments
Closed

Errors connecting to Exchange environment #74

ZenithQ opened this issue Jun 28, 2021 · 0 comments

Comments

@ZenithQ
Copy link

ZenithQ commented Jun 28, 2021

Unable to connect to Exchange environment

After running the script and selecting the Azure and Exchange environment, it fails to connect and errors out. It will only return results when selecting None for Exchange, but the CSV files seem incomplete.

To reproduce

Steps to reproduce the behavior:
Run script, then enter the environment info when prompted:
Azure Environment: AzureCloud
Exchange Environment: O365USGovGCCHigh (also tried O365Default)

Expected behavior

Outputs CSV files (it only outputs some CSV's if we select None for Exchange).

Any helpful log output or screenshots

Paste the results here:
Selecting O365USGovGCCHigh for Exchange returns the following error (when it tries to sign in):
"AADSTS50011: The reply URL specified in the request does not match the reply URLs configured for the application: 'fb78d390-0c51-40cd-8e17-fdbfab77341b'."
SparrowError-O365USGovGCCHigh

Also tried O365Default, which returns the following error:
"New-ExoPSSession : Create Powershell Session is failed using OAuth
At C:\Program Files\WindowsPowerShell\Modules\ExchangeOnlineManagement\2.0.5\netFramework\ExchangeOnlineManagement.psm1:475 char:30
... PSSession = New-ExoPSSession -ExchangeEnvironmentName $ExchangeEnviro ...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [New-ExoPSSession], Exception
+ FullyQualifiedErrorId : System.Exception,Microsoft.Exchange.Management.ExoPowershellSnapin.NewExoPSSession"
SparrowError-O365Default

Notes

We are not 100% sure which Exchange environment is correct. Is there a way to confirm?

Looked up error "AADSTS50011" and some articles suggested registering the application with the Microsoft identity platform in the Azure portal. Is that required?
https://docs.microsoft.com/en-us/answers/questions/41444/aadsts50011-the-reply-url-specified-in-the-request-4.html
https://docs.microsoft.com/en-us/azure/active-directory/develop/quickstart-register-app

Thanks in advance!

@genericdevname genericdevname closed this as not planned Won't fix, can't repro, duplicate, stale Dec 21, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants