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
In MSFT_SPOShareingSettings.psm1, the function Get-TargetResource, from line 162:
$SPOSharingSettings=Get-PnPTenant-ErrorAction Stop
$MySite=Get-PnPTenantSite|Where-Object { $_.Url-match'-my.sharepoint.com/' }
if ($null-ne$MySite)
{
$MySiteSharingCapability= (Get-PnPTenantSite-Identity $MySite.Url).SharingCapability
#====> Here an exception is thrown, since $MySite in an array....
}
Get-PnPTenantSite may very well return multiple sites that are redirectors (using .Template = 'RedirectSite#0'), while only one site is the actual MySite (not using .Template = 'RedirectSite#0')
Details of the scenario you tried and the problem that is occurring
In MSFT_SPOShareingSettings.psm1, the function
Get-TargetResource
, from line 162:Get-PnPTenantSite may very well return multiple sites that are redirectors (using .Template = 'RedirectSite#0'), while only one site is the actual MySite (not using .Template = 'RedirectSite#0')
Verbose logs showing the problem
Suggested solution to the issue
Change the line
to
The DSC configuration that is used to reproduce the issue (as detailed as possible)
(only exporting)
The operating system the target node is running
OsName : Microsoft Windows 10 Enterprise
OsOperatingSystemSKU : EnterpriseEdition
OsArchitecture : 64-bit
WindowsVersion : 2009
WindowsBuildLabEx : 19041.1.amd64fre.vb_release.191206-1406
OsLanguage : en-US
OsMuiLanguages : {en-US, nb-NO}
Version of the DSC module that was used ('dev' if using current dev branch)
Dev
The text was updated successfully, but these errors were encountered: