You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Details of the scenario you tried and the problem that is occurring
I exported a clean developer tenant with default sample data using certificate thumbprint and Full mode:
Export-M365DSCConfiguration-CertificateThumbprint $Cert.Thumbprint-TenantId <redacted>.onmicrosoft.com-ApplicationId 01234567-890a-bcde-f012-34567890abcd -Path full -Mode Full -MaxProcesses 64
It gives me an error message during export:
[234/249] Extracting [TeamsTeam] using {CertificateThumbprint}...❌
I did find an error log in the root, probably related:
[2023/04/19 01:04:23]
{InvalidOperation}
System.Management.Automation.RuntimeException: You cannot call a method on a null-valued expression.
at System.Management.Automation.ExceptionHandlingOps.CheckActionPreference(FunctionContext funcContext, Exception exception)
at System.Management.Automation.Interpreter.ActionCallInstruction`2.Run(InterpretedFrame frame)
at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame)
at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame)
"Error during Export:"
at Export-TargetResource, C:\Program Files\WindowsPowerShell\Modules\Microsoft365DSC\1.23.412.1\DSCResources\MSFT_TeamsTeam\MSFT_TeamsTeam.psm1: line 683
at Start-M365DSCConfigurationExtract, C:\Program Files\WindowsPowerShell\Modules\Microsoft365DSC\1.23.412.1\modules\M365DSCReverse.psm1: line 615
at Export-M365DSCConfiguration, C:\Program Files\WindowsPowerShell\Modules\Microsoft365DSC\1.23.412.1\modules\M365DSCUtil.psm1: line 1295
at <ScriptBlock>, <No file>: line 1
TenantId: foobar.onmicrosoft.com
Looking at the code it seems like the use of certificate thumbnail isn't detected properly, I assume we should have ended up in the ServicePrincipal branch and not at line 683 as the stack trace shows:
OsName : Microsoft Windows Server 2019 Standard
OsOperatingSystemSKU : StandardServerEdition
OsArchitecture : 64-bit
WindowsVersion : 1809
WindowsBuildLabEx : 17763.1.amd64fre.rs5_release.180914-1434
OsLanguage : en-US
OsMuiLanguages : {en-US}
Version of the DSC module that was used ('dev' if using current dev branch)
1.23.412.1 Microsoft365DSC PSGallery This DSC module is used to configure and monitor Microsoft tenants, including SharePoint Online, Exchange, Teams, etc.
The text was updated successfully, but these errors were encountered:
NikCharlebois
added a commit
to NikCharlebois/Microsoft365DSC
that referenced
this issue
Apr 21, 2023
Details of the scenario you tried and the problem that is occurring
I exported a clean developer tenant with default sample data using certificate thumbprint and Full mode:
It gives me an error message during export:
I did find an error log in the root, probably related:
Looking at the code it seems like the use of certificate thumbnail isn't detected properly, I assume we should have ended up in the
ServicePrincipal
branch and not at line 683 as the stack trace shows:Microsoft365DSC/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsTeam/MSFT_TeamsTeam.psm1
Lines 677 to 684 in ab4bef8
API Permissions, all granted:
Roles assigned: Teams Administrator, Global Reader & Global Administrator.
Verbose logs showing the problem
See above.
Suggested solution to the issue
N/A
The DSC configuration that is used to reproduce the issue (as detailed as possible)
Using Windows Server Core container,
mcr.microsoft.com/windows/servercore:1809-amd64
.The operating system the target node is running
Version of the DSC module that was used ('dev' if using current dev branch)
The text was updated successfully, but these errors were encountered: