Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EXOGlobaladdresslist Connecting to {ExchangeOnline}...❌ #5687

Open
david-cummins-git opened this issue Jan 29, 2025 · 0 comments
Open

EXOGlobaladdresslist Connecting to {ExchangeOnline}...❌ #5687

david-cummins-git opened this issue Jan 29, 2025 · 0 comments

Comments

@david-cummins-git
Copy link

Description of the issue

HI All

I am new to this system, but i need to get it working, I have a large number of tenants I would like to centrally manage, however I am have a few problems getting going.

I am unable to create a backup of my central tenant, every time I try I get permissions issues, I have tried with Username and Password, Application and Certificate

The main issue appears to be Exchange and connecting to it, it throws an error everytime.

I want to use Application ID as I move around a bit (no I'm not on the run) so I can just run a set of scripts .

Where am I going wrong please?

David

Microsoft 365 DSC Version

1.25.122.2

Which workloads are affected

Exchange Online

The DSC configuration

# Getting application information for Application + Secret authentication
$ApplicationId = 'xxxxxxxxxxxxxxxx'
$ApplicationSecret = 'xxxxxxxxxxxxxxx'
$TenantId = 'xxxxxxxxxxxxxxx'

# Generated by Microsoft365DSC from https://export.microsoft365dsc.com on 29/01/2025, 09:40:14
# Visit https://microsoft365dsc.com for more information

# Exporting resources using application
Export-M365DSCConfiguration -Components @("AADConditionalAccessPolicy", "EXOGlobalAddressList", "IntuneDeviceEnrollmentStatusPageWindows10", "O365OrgSettings", "ODSettings", "PlannerBucket", "PPPowerAppsEnvironment", "SCDLPComplianceRule", "SPOSite", "TeamsChannel") -ApplicationId $ApplicationId -ApplicationSecret $ApplicationSecret -TenantId $TenantId

Verbose logs showing the problem

Application Id: 5e3921b5-xxxxxxxxxx
Application Secret: 56b0046e-xxxxxxxxxxxxxxxxx
Tenant Id: mglxxxxxxxxxxxx.com
Exporting Microsoft 365 configuration for Components: AADConditionalAccessPolicy, EXOGlobalAddressList, IntuneDeviceEnrollmentStatusPageWindows10, O365OrgSettings, ODSettings, PlannerBucket, PPPowerAppsEnvironment, SCDLPComplianceRule, SPOSite, TeamsChannel

Authentication methods specified:
- Service Principal with Application Secret

Connecting to {ExchangeOnline}...❌
Partial Export file was saved at: C:\Users\DAVIDC~1\AppData\Local\Temp\c7738649-5797-41ef-bf6b-6fb553fc8cec.partial.ps1
No valid authentication type found
At C:\Program Files\WindowsPowerShell\Modules\MSCloudLoginAssistant\1.1.34\Workloads\ExchangeOnline.ps1:289 char:9
+         throw 'No valid authentication type found'
+         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : OperationStopped: (No valid authentication type found:String) [], RuntimeException
    + FullyQualifiedErrorId : No valid authentication type found

Environment Information + PowerShell Version

Name                           Value
----                           -----
PSVersion                      5.1.26100.2161
PSEdition                      Desktop
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
BuildVersion                   10.0.26100.2161
CLRVersion                     4.0.30319.42000
WSManStackVersion              3.0
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant