Skip to content

ODSettings: member 'DisableAddToOneDrive' is not valid #6684

@ssoabx

Description

@ssoabx

Description of the issue

Running the latest DSC release I'm getting the terminating error on the property DisableAddToOneDrive when running New-M365DSCReportFromConfiguration with a freshly exported configuration.

The release notes only mention DisplayNamesOfFileViewers being a new property in the ODSettings resource when DisableAddToOneDrive was also added but not to the schema.

PR: 0e37da3

Microsoft 365 DSC Version

1.25.1112.1

Which workloads are affected

OneDrive for Business

The DSC configuration

Configuration M365TenantConfig
{
    param (
    )

    $OrganizationName = $ConfigurationData.NonNodeData.OrganizationName

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

    Node localhost
    {
        ODSettings "ODSettings"
        {
            ApplicationId                             = $ConfigurationData.NonNodeData.ApplicationId;
            BlockMacSync                              = $False;
            CertificateThumbprint                     = $ConfigurationData.NonNodeData.CertificateThumbprint;
            DisableAddToOneDrive                      = $False;
            DisableReportProblemDialog                = $False;
            DisplayNamesOfFileViewers                 = $True;
            DomainGuids                               = @();
            Ensure                                    = "Present";
            ExcludedFileExtensions                    = @();
            IsSingleInstance                          = "Yes";
            NotificationsInOneDriveForBusinessEnabled = $True;
            ODBAccessRequests                         = "Unspecified";
            ODBMembersCanShare                        = "Unspecified";
            OneDriveForGuestsEnabled                  = $False;
            OneDriveStorageQuota                      = 1048576;
            OrphanedPersonalSitesRetentionPeriod      = 30;
            TenantId                                  = $OrganizationName;
            TenantRestrictionEnabled                  = $False;
        }
    }
}

M365TenantConfig -ConfigurationData .\ConfigurationData.psd1

Verbose logs showing the problem

VERBOSE: Loading file 'D:\a\1\s\DSC\<placeholder>\Export-Config\M365TenantConfig.ps1'
Error parsing configuration: At line:20800 char:13
+             DisableAddToOneDrive                      = $False;
+             ~~~~~~~~~~~~~~~~~~~~
The member 'DisableAddToOneDrive' is not valid. Valid members are
'Access***s', 'ApplicationId', 'BlockMacSync', 'CertificatePassword', 'CertificatePath', 'CertificateThumbprint', 
'Credential', 'DependsOn', 'DisableReportProblemDialog', 'DisplayNamesOfFileViewers', 'DomainGuids', 'Ensure', 
'ExcludedFileExtensions', 'GrooveBlockOption', 'IsSingleInstance', 'ManagedIdentity', 
'NotificationsInOneDriveForBusinessEnabled', 'ODBAccessRequests', 'ODBMembersCanShare', 'OneDriveForGuestsEnabled', 
'OneDriveStorageQuota', 'OrphanedPersonalSitesRetentionPeriod', 'PsDscRunAsCredential', 'TenantId', 
'TenantRestrictionEnabled'.
At C:\Program Files\WindowsPowerShell\Modules\DSCParser\2.0.0.20\Modules\DSCParser.psm1:490 char:9
+         throw "$($errorPrefix)Error parsing configuration: $parseErro ...
+         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : OperationStopped: (Error parsing c...ictionEnabled'.:String) [], RuntimeException
    + FullyQualifiedErrorId : Error parsing configuration: At line:20800 char:13
+             DisableAddToOneDrive                      = $False;
+             ~~~~~~~~~~~~~~~~~~~~
The member 'DisableAddToOneDrive' is not valid. Valid members are
    'Access***s', 'ApplicationId', 'BlockMacSync', 'CertificatePassword', 'CertificatePath', 'CertificateThumbprint' 
   , 'Credential', 'DependsOn', 'DisableReportProblemDialog', 'DisplayNamesOfFileViewers', 'DomainGuids', 'Ensure', '  
  ExcludedFileExtensions', 'GrooveBlockOption', 'IsSingleInstance', 'ManagedIdentity', 'NotificationsInOneDriveForBu   
 sinessEnabled', 'ODBAccessRequests', 'ODBMembersCanShare', 'OneDriveForGuestsEnabled', 'OneDriveStorageQuota', 'Or    
phanedPersonalSitesRetentionPeriod', 'PsDscRunAsCredential', 'TenantId', 'TenantRestrictionEnabled'.

Environment Information + PowerShell Version

Metadata

Metadata

Assignees

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