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
When trying to export the TeamsMeetingPolicy the export fails on the first policy (Global) the export fails with the Exception "You cannot call a method on a null-valued expression."
I suppose the issue lies within MSFT_TeamsMeetingPolicy.psm1 on line 475. There the Tenant information is missing in the return block.
{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 Get-M365DSCExportContentForResource(Closure , FunctionContext )
at System.Management.Automation.PSScriptCmdlet.RunClause(Action`1 clause, Object dollarUnderbar, Object inputToProcess)
at System.Management.Automation.PSScriptCmdlet.DoEndProcessing()
at System.Management.Automation.CommandProcessorBase.Complete()
"Error during Export:"
at Get-M365DSCExportContentForResource, C:\Program Files\WindowsPowerShell\Modules\Microsoft365DSC\1.24.1113.1\Modules\M365DSCUtil.psm1: line 3914
at Export-TargetResource, C:\Program Files\WindowsPowerShell\Modules\Microsoft365DSC\1.24.1113.1\DSCResources\MSFT_TeamsMeetingPolicy\MSFT_TeamsMeetingPolicy.psm1: line 1427
at Start-M365DSCConfigurationExtract, C:\Program Files\WindowsPowerShell\Modules\Microsoft365DSC\1.24.1113.1\Modules\M365DSCReverse.psm1: line 682
at Export-M365DSCConfiguration, C:\Program Files\WindowsPowerShell\Modules\Microsoft365DSC\1.24.1113.1\Modules\M365DSCUtil.psm1: line 1460
at <ScriptBlock>,<RedactedForPrivacy>\Get-CurrentTenantConfig.ps1: line 22
at <ScriptBlock>,<No file>: line 1
Environment Information + PowerShell Version
OsName : Microsoft Windows Server 2022 Standard
OsOperatingSystemSKU : StandardServerEdition
OsArchitecture : 64-bit
WindowsVersion : 2009
WindowsBuildLabEx : 20348.1.amd64fre.fe_release.210507-1500
OsLanguage : en-US
OsMuiLanguages : {en-US}
Name Value
---------
PSVersion 5.1.20348.2760
PSEdition Desktop
PSCompatibleVersions {1.0,2.0,3.0,4.0...}
BuildVersion 10.0.20348.2760
CLRVersion 4.0.30319.42000
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
The text was updated successfully, but these errors were encountered:
Description of the issue
When trying to export the TeamsMeetingPolicy the export fails on the first policy (Global) the export fails with the Exception "You cannot call a method on a null-valued expression."
I suppose the issue lies within MSFT_TeamsMeetingPolicy.psm1 on line 475. There the Tenant information is missing in the return block.
MSFT_TeamsMeetingPolicy.psm1 Line 470-476:
Compared with e.g. MSFT_TeamsMessagingPolicy.psm1 Line 206-217:
Microsoft 365 DSC Version
1.24.1113.1
Which workloads are affected
Teams
The DSC configuration
Verbose logs showing the problem
Environment Information + PowerShell Version
The text was updated successfully, but these errors were encountered: