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

Not able to export SPO/ODfB configuration #5529

Open
tameimpalaxx opened this issue Dec 9, 2024 · 1 comment
Open

Not able to export SPO/ODfB configuration #5529

tameimpalaxx opened this issue Dec 9, 2024 · 1 comment

Comments

@tameimpalaxx
Copy link

Description of the issue

Hi, I'm trying to export SPO/ODfB configuration via the the following command, using admin credentials:
Export-M365DSCConfiguration -Components @("ODSettings", "SPOAccessControlSettings", "SPOApp", "SPOBrowserIdleSignout", "SPOHomeSite", "SPOHubSite", "SPOOrgAssetsLibrary", "SPOSearchManagedProperty", "SPOSearchResultSource", "SPOSharingSettings", "SPOSiteDesign", "SPOSiteDesignRights", "SPOSiteScript", "SPOStorageEntity", "SPOTenantCdnEnabled", "SPOTenantCdnPolicy", "SPOTenantSettings", "SPOTheme") -Credential $cred -Path "\Path" -FileName SPO_config.ps1

Unfortunately I get the following error message and when searching for the supposed temp file, there is none in the D:\Temp folder

Authentication methods specified:

  • Credentials

Connecting to {PnP}...❌
Partial Export file was saved at: D:\Temp\39d23d0d-5861-40e1-8348-7b03053744a8.partial.ps1
An error has occurred AADSTS700016: Application with identifier 'APPID' was not found in the directory 'DIRECTORY'. This can happen if the application has not been installed by the administrator of the tenant or consented to by any user in the tenant. You may have sent your authentication request to the wrong tenant. Trace ID:
TRACEID Correlation ID: CORRID Timestamp: 2024-12-09 12:50:13Z
At C:\Users\user1\Documents\WindowsPowerShell\Modules\MSCloudLoginAssistant\1.1.7\Workloads\PnP.psm1:406 char:13

  •         throw $message
    
  •         ~~~~~~~~~~~~~~
    
    • CategoryInfo : OperationStopped: (An error has oc...12-09 12:50:13Z:String) [], RuntimeException
    • FullyQualifiedErrorId : An error has occurred AADSTS700016: Application with identifier 'APPID' was not found in the directory 'DIRECTORY'. This can happen if the application has not been installed by the administrator of the tenant or consented to by any user in the tenant. You may have sent your authentication request to the wrong tenant. Trace ID:
      TRACEID Correlation ID: CORRID Timestamp: 2024-12-09 12:50:13Z

This was the case since the moment I started testing the M365 DSC tool several months back but then at least the temp file was indeed present with some data in it which is not the case anymore.

Would someone be able to help me narrow down this issue?

With Regards! :)

Microsoft 365 DSC Version

1.24.124.1

Which workloads are affected

SharePoint Online, OneDrive for Business

The DSC configuration

Verbose logs showing the problem

Environment Information + PowerShell Version

Get-ComputerInfo
OsName               : Microsoft Windows Server 2016 Standard
OsOperatingSystemSKU : StandardServerEdition
OsArchitecture       : 64-bit
WindowsBuildLabEx    : 14393.7070.amd64fre.rs1_release.240606-1636
OsLanguage           : en-US
OsMuiLanguages       : {en-US}


$PSVersionTable
Name                           Value
----                           -----
PSVersion                      5.1.14393.6343
PSEdition                      Desktop
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
BuildVersion                   10.0.14393.6343
CLRVersion                     4.0.30319.42000
WSManStackVersion              3.0
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
@ykuijs
Copy link
Member

ykuijs commented Dec 16, 2024

Please try to use a more recent version of Microsoft365DSC.

Since September 9th, PnP PowerShell no longer supports the Enterprise Application that was available in Entra ID. So you now should use your own application registration. More info here:

Please try these suggestions and let us know the results.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants