Skip to content

SPOTenantSettings: DisplayNamesOfFileViewersInSpo error #6686

@ssoabx

Description

@ssoabx

Description of the issue

Starting the DSC configuration with SPOTenantSettings settings fails.

MSFT_SPOTenantSettings does not implement the write property 
DisplayNamesOfFileViewersInSpo

It's not part of my config.

This was part of PR: 0e37da3

Looks like it's another missing parameter in https://github.com/microsoft/Microsoft365DSC/blob/0afcd500078375afd59e171542d2d4d1773d680d/Modules/Microsoft365DSC/DSCResources/MSFT_SPOTenantSettings/MSFT_SPOTenantSettings.psm1 .

Microsoft 365 DSC Version

1.25.1112.1

Which workloads are affected

SharePoint Online

The DSC configuration

Configuration M365TenantConfig
{
    param (
    )

    $OrganizationName = $ConfigurationData.NonNodeData.OrganizationName

    Import-DscResource -ModuleName 'Microsoft365DSC' -ModuleVersion '1.25.1112.1'

    Node localhost
    {
        SPOTenantSettings "SPOTenantSettings"
        {
            ApplyAppEnforcedRestrictionsToAdHocRecipients = $True;
            CommentsOnSitePagesDisabled                   = $False;
            ApplicationId             = $ConfigurationData.NonNodeData.ApplicationId;
            CertificateThumbprint     = $ConfigurationData.NonNodeData.CertificateThumbprint;
            TenantId                  = $ConfigurationData.NonNodeData.TenantId;
            EnableAzureADB2BIntegration                            = $True;
            Ensure                                        = "Present";
            ExemptNativeUsersFromTenantLevelRestricedAccessControl = $False;
            FilePickerExternalImageSearchEnabled          = $True;
            HideDefaultThemes                             = $False;
            IsSingleInstance                              = "Yes";
            LegacyAuthProtocolsEnabled                    = $False;
            MarkNewFilesSensitiveByDefault                = "AllowExternalSharing";
            MaxCompatibilityLevel                         = "15";
            MinCompatibilityLevel                         = "15";
            NotificationsInSharePointEnabled              = $True;
            OfficeClientADALDisabled                      = $False;
            OwnerAnonymousNotification                    = $True;
            PublicCdnAllowedFileTypes                     = "CSS,EOT,GIF,ICO,JPEG,JPG,JS,MAP,PNG,SVG,TTF,WOFF";
            PublicCdnEnabled                              = $False;
            SearchResolveExactEmailOrUPN                  = $False;
            SignInAccelerationDomain                      = "";
            SocialBarOnSitePagesDisabled                  = $False;
            UseFindPeopleInPeoplePicker                   = $False;
            UsePersistentCookiesForExplorerView           = $False;
            TenantDefaultTimezone                         = "(UTC+01:00) Amsterdam, Berlin, Bern, Rome, Stockholm, Vienna";
        }
    }
}

M365TenantConfig -ConfigurationData .\ConfigurationData.psd1

Verbose logs showing the problem

VERBOSE: Perform operation 'Invoke CimMethod' with following parameters, ''methodName' = TestConfiguration,'className' 
= MSFT_DSCLocalConfigurationManager,'namespaceName' = root/Microsoft/Windows/DesiredStateConfiguration'.
VERBOSE: An LCM method call arrived from computer runnervmtnls7 with user sid 
S-1-5-21-3146901062-3817154037-799242493-500.
VERBOSE: [runnervmtnls7]: LCM:  [ Start  Compare  ]
VERBOSE: [runnervmtnls7]: LCM:  [ *FAILED*Compare  ]     Completed processing compare operation. The operation returned
 False.
The command Test-TargetResource of the PS module MSFT_SPOTenantSettings does not implement the write property 
DisplayNamesOfFileViewersInSpo mentioned in the corresponding MOF schema file 
D:\a\1\s\Modules\Microsoft365DSC\1.25.1112.1\DscResources\MSFT_SPOTenantSettings\MSFT_SPOTenantSettings.schema.mof. 
VERBOSE: Operation 'Invoke CimMethod' complete.
All write paramenters mentioned in the schema file must be implemented by the command Test-TargetResource.
    + CategoryInfo          : InvalidOperation: (root/Microsoft/...gurationManager:String) [], CimException
    + FullyQualifiedErrorId : WriteParameterNotImplemented
    + PSComputerName        : localhost

Environment Information + PowerShell Version

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions