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
There are some properties that might get exported to a blueprint that don't make sense combined with other properties, this is just how the tenants get setup and not a problem with DSC or PnP, so to workaround this while calling Set-TargetResource there are several ifs to cope with the situation but Test-TargetResource doesn't have these conditions which means that the tenant might be properly setup but will always report it's not since Test-TargetResource will always return false.
Below there's an example where the tenant has the correct SharingCapability setup with ExternalUserSharingOnly but still fails the test because the blueprint also contains property RequireAnonymousLinksExpireInDays which in this case should have been removed from being tested since it only works if SharingCapability is set to ExternalUserAndGuestSharing.
"WARNING: [REDACTED]: [[SPOSharingSettings]SPOSharingSettings] The sharing capabilities for the tenant are not configured to be ExternalUserAndGuestSharing for that the RequireAnonymousLinksExpireInDays property cannot be configured"
Fix should be something similar to what's already being done on Set-TargetResource but apply it on Test-TargetResource, I'll work on a PR to fix this.
WARNING: [REDACTED]: [[SPOSharingSettings]SPOSharingSettings] The sharing capabilities for the tenant are not configured to be ExternalUserAndGuestSharing for that the RequireAnonymousLinksExpireInDays property cannot be configured
Environment Information + PowerShell Version
N/A
The text was updated successfully, but these errors were encountered:
Description of the issue
There are some properties that might get exported to a blueprint that don't make sense combined with other properties, this is just how the tenants get setup and not a problem with DSC or PnP, so to workaround this while calling Set-TargetResource there are several ifs to cope with the situation but Test-TargetResource doesn't have these conditions which means that the tenant might be properly setup but will always report it's not since Test-TargetResource will always return false.
Below there's an example where the tenant has the correct SharingCapability setup with ExternalUserSharingOnly but still fails the test because the blueprint also contains property RequireAnonymousLinksExpireInDays which in this case should have been removed from being tested since it only works if SharingCapability is set to ExternalUserAndGuestSharing.
"WARNING: [REDACTED]: [[SPOSharingSettings]SPOSharingSettings] The sharing capabilities for the tenant are not configured to be ExternalUserAndGuestSharing for that the RequireAnonymousLinksExpireInDays property cannot be configured"
Fix should be something similar to what's already being done on Set-TargetResource but apply it on Test-TargetResource, I'll work on a PR to fix this.
Microsoft 365 DSC Version
1.24.424.1
Which workloads are affected
SharePoint Online
The DSC configuration
Verbose logs showing the problem
Environment Information + PowerShell Version
N/A
The text was updated successfully, but these errors were encountered: