Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error Occurs When Running New-M365DSCDeltaReport #5863

Closed
yoinuma opened this issue Mar 3, 2025 · 12 comments · Fixed by #5897, #5924 or #5934
Closed

Error Occurs When Running New-M365DSCDeltaReport #5863

yoinuma opened this issue Mar 3, 2025 · 12 comments · Fixed by #5897, #5924 or #5934
Assignees
Labels
Bug Something isn't working SharePoint Online

Comments

@yoinuma
Copy link

yoinuma commented Mar 3, 2025

Description of the issue

The following command results in an error:

New-M365DSCDeltaReport -Source $newFile -Destination $oldFile -OutputPath "$rootPath\delta2.html"

Error Message:

Error parsing configuration: At line:277 char:17
+                 neutralQuaternaryAlt = "#d88888"
+                 ~~~~~~~~~~~~~~~~~~~~
The member 'neutralQuaternaryAlt' is not valid. Valid members are
'Property', 'Value'.
At C:\Program Files\WindowsPowerShell\Modules\DSCParser\2.0.0.15\Modules\DSCParser.psm1:472 char:9
+         throw "$($errorPrefix)Error parsing configuration: $parseErro ...
+         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : OperationStopped: (Error parsing c...erty', 'Value'.:String) [], RuntimeException
    + FullyQualifiedErrorId : Error parsing configuration: At line:277 char:17
+                 neutralQuaternaryAlt = "#d88888"
+                 ~~~~~~~~~~~~~~~~~~~~
The member 'neutralQuaternaryAlt' is not valid. Valid members are
'Property', 'Value'.

Conditions of Occurrence:

  1. $newFile and $oldFile are files output by the following command:
    Export-M365DSCConfiguration -Workloads @("OD", "SPO") -Path $rootPath -ApplicationId $applicationId -TenantId $tenantId -CertificateThumbprint $certificateThumbprint -FileName $initialConfigurationFileName

  2. A custom theme exists in the SPO tenant:

PS C:\Users\yoinuma> Get-SPOTheme
Name            Palette                                                                                                   IsInverted
----            -------                                                                                                   ----------
Custom Theme 01 {[neutralPrimaryAlt, #8e6969], [themeLighterAlt, #fdfef6], [black, #4c2c2c], [themeTertiary, #ddf67a]...}      False

Microsoft 365 DSC Version

1.25.219.2

Which workloads are affected

SharePoint Online

The DSC configuration

# Generated with Microsoft365DSC version 1.25.219.2
# For additional information on how to use Microsoft365DSC, please visit https://aka.ms/M365DSC
param (
)

Configuration InitialM365TenantConfig
{
    param (
    )

    $OrganizationName = $ConfigurationData.NonNodeData.OrganizationName

    Import-DscResource -ModuleName 'Microsoft365DSC' -ModuleVersion '1.25.219.2'

    Node localhost
    {
        ODSettings "ODSettings"
        {
            ApplicationId                             = $ConfigurationData.NonNodeData.ApplicationId;
            BlockMacSync                              = $False;
            CertificateThumbprint                     = $ConfigurationData.NonNodeData.CertificateThumbprint;
            DisableReportProblemDialog                = $False;
            DomainGuids                               = @();
            Ensure                                    = "Present";
            ExcludedFileExtensions                    = @();
            IsSingleInstance                          = "Yes";
            NotificationsInOneDriveForBusinessEnabled = $True;
            ODBAccessRequests                         = "Unspecified";
            ODBMembersCanShare                        = "Unspecified";
            OneDriveForGuestsEnabled                  = $False;
            OneDriveStorageQuota                      = 1048576;
            OrphanedPersonalSitesRetentionPeriod      = 30;
            TenantId                                  = $OrganizationName;
            TenantRestrictionEnabled                  = $False;
        }
        SPOAccessControlSettings "SPOAccessControlSettings"
        {
            ApplicationId                 = $ConfigurationData.NonNodeData.ApplicationId;
            CertificateThumbprint         = $ConfigurationData.NonNodeData.CertificateThumbprint;
            ConditionalAccessPolicy       = "AllowFullAccess";
            DisallowInfectedFileDownload  = $False;
            DisplayStartASiteOption       = $True;
            EmailAttestationReAuthDays    = 30;
            EmailAttestationRequired      = $False;
            EnableRestrictedAccessControl = $False;
            Ensure                        = "Present";
            ExternalServicesEnabled       = $True;
            IPAddressAllowList            = "";
            IPAddressEnforcement          = $False;
            IPAddressWACTokenLifetime     = 15;
            IsSingleInstance              = "Yes";
            TenantId                      = $OrganizationName;
        }
        SPOBrowserIdleSignout "SPOBrowserIdleSignout"
        {
            ApplicationId         = $ConfigurationData.NonNodeData.ApplicationId;
            CertificateThumbprint = $ConfigurationData.NonNodeData.CertificateThumbprint;
            Enabled               = $False;
            IsSingleInstance      = "Yes";
            SignOutAfter          = "00:00:00";
            TenantId              = $OrganizationName;
            WarnAfter             = "00:00:00";
        }
        SPOHomeSite "SPOHomeSite"
        {
            ApplicationId         = $ConfigurationData.NonNodeData.ApplicationId;
            CertificateThumbprint = $ConfigurationData.NonNodeData.CertificateThumbprint;
            Ensure                = "Present";
            IsSingleInstance      = "Yes";
            TenantId              = $OrganizationName;
            Url                   = "https://mngenvmcap799152.sharepoint.com/sites/20241101_Site1";
        }
        SPOHubSite "SPOHubSite-https://$($OrganizationName.Split('.')[0]).sharepoint.com/sites/20241127_Site1"
        {
            AllowedToJoin         = @();
            ApplicationId         = $ConfigurationData.NonNodeData.ApplicationId;
            CertificateThumbprint = $ConfigurationData.NonNodeData.CertificateThumbprint;
            Ensure                = "Present";
            RequiresJoinApproval  = $False;
            SiteDesignId          = "00000000-0000-0000-0000-000000000000";
            TenantId              = $OrganizationName;
            Title                 = "20241127_Site1";
            Url                   = "https://$($OrganizationName.Split('.')[0]).sharepoint.com/sites/20241127_Site1";
        }
        SPORetentionLabelsSettings "SPORetentionLabelsSettings"
        {
            AdvancedRecordVersioningDisabled      = $False;
            AllowFilesWithKeepLabelToBeDeletedODB = $True;
            AllowFilesWithKeepLabelToBeDeletedSPO = $True;
            ApplicationId                         = $ConfigurationData.NonNodeData.ApplicationId;
            CertificateThumbprint                 = $ConfigurationData.NonNodeData.CertificateThumbprint;
            IsSingleInstance                      = "Yes";
            MetadataEditBlockingEnabled           = $False;
            TenantId                              = $OrganizationName;
        }
        SPOSharingSettings "SPOSharingSettings"
        {
            ApplicationId                            = $ConfigurationData.NonNodeData.ApplicationId;
            BccExternalSharingInvitations            = $False;
            CertificateThumbprint                    = $ConfigurationData.NonNodeData.CertificateThumbprint;
            DefaultLinkPermission                    = "Edit";
            DefaultSharingLinkType                   = "Internal";
            EnableGuestSignInAcceleration            = $False;
            Ensure                                   = "Present";
            ExternalUserExpirationRequired           = $False;
            ExternalUserExpireInDays                 = 60;
            FileAnonymousLinkType                    = "Edit";
            FolderAnonymousLinkType                  = "Edit";
            IsSingleInstance                         = "Yes";
            MySiteSharingCapability                  = "ExistingExternalUserSharingOnly";
            NotifyOwnersWhenItemsReshared            = $True;
            PreventExternalUsersFromResharing        = $False;
            ProvisionSharedWithEveryoneFolder        = $False;
            SharingCapability                        = "ExistingExternalUserSharingOnly";
            SharingDomainRestrictionMode             = "None";
            ShowAllUsersClaim                        = $False;
            ShowEveryoneClaim                        = $False;
            ShowEveryoneExceptExternalUsersClaim     = $True;
            ShowPeoplePickerSuggestionsForGuestUsers = $False;
            TenantId                                 = $OrganizationName;
        }
        SPOSiteScript "SPOSiteScript-DP"
        {
            ApplicationId         = $ConfigurationData.NonNodeData.ApplicationId;
            CertificateThumbprint = $ConfigurationData.NonNodeData.CertificateThumbprint;
            Content               = "{
  `"`$schema`": `"https://developer.microsoft.com/json-schemas/sp/site-design-script-actions.schema.json`",
  `"actions`": [
    {
      `"verb`": `"createSPList`",
      `"listName`": `"[[L_0001_listName]]`",
      `"templateType`": 101,
      `"color`": `"[[L_0001_color]]`",
      `"icon`": `"[[L_0001_icon]]`",
      `"addNavLink`": `"[[L_0001_addNavLink]]`",
      `"description`": `"[[L_0001_description]]`",
      `"identity`": `"L_0001`",
      `"subactions`": [
        {
          `"verb`": `"addSPFieldXml`",
          `"schemaXml`": `"<Field ID=\`"{08d89a66-4634-42b8-9d5a-0c27395a48b3}\`" Type=\`"Text\`" Name=\`"TriggerFlowInfo\`" DisplayName=\`"トリガー フローに関する情報\`" DisplaceOnUpgrade=\`"TRUE\`" Hidden=\`"TRUE\`" ReadOnlyEnforced=\`"FALSE\`" ReadOnly=\`"TRUE\`" Required=\`"FALSE\`" SourceID=\`"http://schemas.microsoft.com/sharepoint/v3\`" StaticName=\`"TriggerFlowInfo\`" />`"
        },
        {
          `"verb`": `"addSPFieldXml`",
          `"schemaXml`": `"<Field ID=\`"{321bc046-2178-49bd-893f-7aa4fd61d04e}\`" ReadOnly=\`"TRUE\`" Type=\`"Computed\`" Name=\`"PolicyDisabledUICapabilities\`" DisplaceOnUpgrade=\`"TRUE\`" DisplayName=\`"アクションはポリシーにより無効になっています。\`" Filterable=\`"FALSE\`" Sortable=\`"FALSE\`" Hidden=\`"TRUE\`" SourceID=\`"http://schemas.microsoft.com/sharepoint/v3\`" StaticName=\`"PolicyDisabledUICapabilities\`"><FieldRefs><FieldRef Name=\`"FSObjType\`" Key=\`"Primary\`" /><FieldRef Name=\`"ID\`" /></FieldRefs><DisplayPattern /></Field>`"
        },
        {
          `"verb`": `"addContentType`",
          `"name`": `"フォルダー`",
          `"id`": `"0x0120`"
        },
        {
          `"verb`": `"addSPView`",
          `"name`": `"すべてのドキュメント`",
          `"viewFields`": [
            `"DocIcon`",
            `"LinkFilename`",
            `"Modified`",
            `"Editor`",
            `"_DisplayName`"
          ],
          `"query`": `"<OrderBy><FieldRef Name=\`"FileLeafRef\`" /></OrderBy>`",
          `"rowLimit`": 30,
          `"isPaged`": true,
          `"makeDefault`": true,
          `"replaceViewFields`": true
        }

      ]
    },
    {
      `"verb`": `"importBusinessApps`",
      `"listName`": `"[[L_0001_listName]]`",
      `"solutionFileRelativePath`": `"solution.zip`"
    }
  ],
  `"bindings`": {
    `"L_0001_listName`": {
      `"source`": `"Input`",
      `"defaultValue`": `"ドキュメント`"
    },
    `"L_0001_icon`": {
      `"source`": `"Input`",
      `"defaultValue`": `"0`"
    },
    `"L_0001_description`": {
      `"source`": `"Input`",
      `"defaultValue`": `"`"
    },
    `"L_0001_color`": {
      `"source`": `"Input`",
      `"defaultValue`": `"0`"
    },
    `"L_0001_addNavLink`": {
      `"source`": `"Input`",
      `"defaultValue`": `"true`"
    }
  }
}
";
            Description           = "DP";
            Ensure                = "Present";
            Identity              = "b347d76c-bbc4-4c9b-81cb-26297b4fdd87";
            TenantId              = $OrganizationName;
            Title                 = "DP";
        }
        SPOTenantCdnEnabled "SPOTenantCdnEnabled-Public"
        {
            ApplicationId         = $ConfigurationData.NonNodeData.ApplicationId;
            CdnType               = "Public";
            CertificateThumbprint = $ConfigurationData.NonNodeData.CertificateThumbprint;
            Enable                = $True;
            TenantId              = $OrganizationName;
        }
        SPOTenantCdnEnabled "SPOTenantCdnEnabled-Private"
        {
            ApplicationId         = $ConfigurationData.NonNodeData.ApplicationId;
            CdnType               = "Private";
            CertificateThumbprint = $ConfigurationData.NonNodeData.CertificateThumbprint;
            Enable                = $False;
            TenantId              = $OrganizationName;
        }
        SPOTenantCdnPolicy "SPOTenantCdnPolicy-Public"
        {
            ApplicationId                        = $ConfigurationData.NonNodeData.ApplicationId;
            CDNType                              = "Public";
            CertificateThumbprint                = $ConfigurationData.NonNodeData.CertificateThumbprint;
            ExcludeRestrictedSiteClassifications = @();
            IncludeFileExtensions                = @("CSS","EOT","GIF","ICO","JPEG","JPG","JS","MAP","PNG","SVG","OTF","TTF","WOFF","WOFF2");
            TenantId                             = $OrganizationName;
        }
        SPOTenantCdnPolicy "SPOTenantCdnPolicy-Private"
        {
            ApplicationId                        = $ConfigurationData.NonNodeData.ApplicationId;
            CDNType                              = "Private";
            CertificateThumbprint                = $ConfigurationData.NonNodeData.CertificateThumbprint;
            ExcludeRestrictedSiteClassifications = @();
            IncludeFileExtensions                = @();
            TenantId                             = $OrganizationName;
        }
        SPOTenantSettings "SPOTenantSettings"
        {
            ApplicationId                                          = $ConfigurationData.NonNodeData.ApplicationId;
            ApplyAppEnforcedRestrictionsToAdHocRecipients          = $True;
            CertificateThumbprint                                  = $ConfigurationData.NonNodeData.CertificateThumbprint;
            CommentsOnSitePagesDisabled                            = $False;
            Ensure                                                 = "Present";
            ExemptNativeUsersFromTenantLevelRestricedAccessControl = $False;
            FilePickerExternalImageSearchEnabled                   = $True;
            HideDefaultThemes                                      = $False;
            IsSingleInstance                                       = "Yes";
            LegacyAuthProtocolsEnabled                             = $True;
            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;
            TenantDefaultTimezone                                  = "(UTC+09:00) Osaka, Sapporo, Tokyo";
            TenantId                                               = $OrganizationName;
            UseFindPeopleInPeoplePicker                            = $False;
            UsePersistentCookiesForExplorerView                    = $False;
        }
        SPOTheme "SPOTheme-Custom Theme 01"
        {
            ApplicationId         = $ConfigurationData.NonNodeData.ApplicationId;
            CertificateThumbprint = $ConfigurationData.NonNodeData.CertificateThumbprint;
            Ensure                = "Present";
            IsInverted            = $False;
            Name                  = "Custom Theme 01";
            Palette               = MSFT_SPOThemePaletteProperty{
                neutralQuaternaryAlt = "#d88888"
                themeLighterAlt = "#fdfef6"
                themeSecondary = "#cef23f"
                themePrimary = "#c9f027"
                bodyText = "#351c1c"
                disabledBackground = "#f29898"
                themeDarker = "#708615"
                themeDark = "#98b61d"
                themeLight = "#eefabb"
                neutralLighter = "#f29898"
                neutralLighterAlt = "#f69b9b"
                themeLighter = "#f6fddb"
                themeDarkAlt = "#b3d823"
                themeTertiary = "#ddf67a"
                primaryText = "#351c1c"
                bodyBackground = "#fca0a0"
                neutralSecondary = "#a48282"
                neutralQuaternary = "#ce8282"
                neutralLight = "#e89292"
                disabledText = "#c67d7d"
                neutralPrimaryAlt = "#8e6969"
                white = "#fca0a0"
                neutralDark = "#623e3e"
                primaryBackground = "#fca0a0"
                neutralPrimary = "#351c1c"
                neutralTertiaryAlt = "#c67d7d"
                neutralTertiary = "#bb9d9d"
                black = "#4c2c2c"
            };
            TenantId              = $OrganizationName;
        }
    }
}

InitialM365TenantConfig -ConfigurationData .\ConfigurationData.psd1

Verbose logs showing the problem

Environment Information + PowerShell Version

OsName               : Microsoft Windows 11 Enterprise
OsOperatingSystemSKU : EnterpriseEdition
OsArchitecture       : 64-bit
WindowsVersion       : 2009
WindowsBuildLabEx    : 26100.1.amd64fre.ge_release.240331-1435
OsLanguage           : en-US
OsMuiLanguages       : {en-US}


 $PSVersionTable

Name                           Value
----                           -----
PSVersion                      5.1.26100.1882
PSEdition                      Desktop
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
BuildVersion                   10.0.26100.1882
CLRVersion                     4.0.30319.42000
WSManStackVersion              3.0
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
@Royhutton
Copy link

It would be really useful if someone could assist with this - we also have this issue. Getting a capture is one thing but not being able to convert it to readable output is another

The member 'neutralQuaternaryAlt' is not valid. Valid members are
'Property', 'Value'.

I tried editing the file and you end up with an invalid configuration file. Can anyone assist? Thanks

@FabienTschanz
Copy link
Collaborator

This looks like an invalid export, the output doesn't match the defined schema. I'll take a look once I have time.

@FabienTschanz FabienTschanz added Bug Something isn't working SharePoint Online labels Mar 7, 2025
@Morph2310
Copy link

I have the same issue since about two weeks, parser issues during any report generation.

@FabienTschanz
Copy link
Collaborator

@Morph2310 With the same resource or another one? If it's for another resource, please open a separate issue so that we don't mix them up.

@Morph2310
Copy link

@Morph2310 With the same resource or another one? If it's for another resource, please open a separate issue so that we don't mix them up.

The same resource, but additionally resources in exports from ExO, Intune and Teams, so I will open separate issues according to the resources. One common denominator - parsing.

@FabienTschanz
Copy link
Collaborator

@Morph2310 Thanks a lot, one per resource would be great. We enforced a check that the configuration has to be valid before a drift or a report can be generated so that we don't mistakenly compare "wrong" stuff.

Information for the others: A PR is open that fixes the export (which will in term also fix the issue with the delta report).

@Royhutton
Copy link

Running an Export/Capture of a Workload, for example Intune with the validate switch set to :$true is useful for obtaining a valid export. However I get this error commonly making this export fail:

{InvalidOperation}
System.Management.Automation.RuntimeException: Method invocation failed because [MicrosoftGraph] does not contain a method named 'MemberwiseClone'.
   at System.Management.Automation.ExceptionHandlingOps.CheckActionPreference(FunctionContext funcContext, Exception exception)
   at System.Management.Automation.Interpreter.ActionCallInstruction`2.Run(InterpretedFrame frame)
   at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame)
   at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame)
   at System.Management.Automation.Interpreter.Interpreter.Run(InterpretedFrame frame)
   at System.Management.Automation.Interpreter.LightLambda.RunVoid1[T0](T0 arg0)
   at System.Management.Automation.PSScriptCmdlet.RunClause(Action`1 clause, Object dollarUnderbar, Object inputToProcess)
   at System.Management.Automation.CommandProcessorBase.Complete()
"Error during Export:"
at Clone, C:\Program Files\WindowsPowerShell\Modules\MSCloudLoginAssistant\1.1.37\ConnectionProfile.ps1: line 131
at Get-MSCloudLoginConnectionProfile, C:\Program Files\WindowsPowerShell\Modules\MSCloudLoginAssistant\1.1.37\MSCloudLoginAssistant.psm1: line 402
at Export-TargetResource, C:\Program Files\WindowsPowerShell\Modules\Microsoft365DSC\1.25.219.2\DSCResources\MSFT_IntuneDeviceCleanupRule\MSFT_IntuneDeviceCleanupRule.psm1: line 351
at Start-M365DSCConfigurationExtract, C:\Program Files\WindowsPowerShell\Modules\Microsoft365DSC\1.25.219.2\Modules\M365DSCReverse.psm1: line 689
at Export-M365DSCConfiguration, C:\Program Files\WindowsPowerShell\Modules\Microsoft365DSC\1.25.219.2\Modules\M365DSCUtil.psm1: line 1512
at <ScriptBlock>, <No file>: line 1

The validation error from the terminal is also:

Exception: Error parsing configuration: At line:1968 char:17 + Count = 0 + ~~~~~ The member 'Count' is not valid. Valid members are 'defaultMessage', 'localizedMessages'.

Could you provide any pointers in where to look to resolve this or would you know how to resolve?

Without any assistance, I can only think of using the components parameter i.e. (Export-M365DSCConfiguration -Components) and stripping out the sub components that are throwing the terminating errors as a way of getting a valid and working capture.

Thanks in advance

@FabienTschanz
Copy link
Collaborator

@Royhutton The first error message appears if you are using PowerShell 7.5 because there is an issue there with object cloning. This is already reported in the PowerShell repository, but no fix yet. Please stick to Windows PowerShell 5.1 for now.

The second one is because the export is done in a wrong format. Can you tell me which resource is affected by that and maybe a sample of the resource that's failing? This would be great.

@Royhutton
Copy link

Royhutton commented Mar 13, 2025

@FabienTschanz Thanks for this info - With an Export running (using 5.1) for an Intune Workload capture now i get the validation error:

Error parsing configuration: At line:2022 char:17
+                 Count = 0
+                 ~~~~~
The member 'Count' is not valid. Valid members are
'defaultMessage', 'localizedMessages'.
At C:\Program Files\WindowsPowerShell\Modules\DSCParser\2.0.0.15\Modules\DSCParser.psm1:472 char:9
+         throw "$($errorPrefix)Error parsing configuration: $parseErro ...
+         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : OperationStopped: (Error parsing c...lizedMessages'.:String) [], RuntimeException
    + FullyQualifiedErrorId : Error parsing configuration: At line:2022 char:17
+                 Count = 0
+                 ~~~~~
The member 'Count' is not valid. Valid members are
'defaultMessage', 'localizedMessages'.
 

That in the partial capture file is:

        IntuneDeviceConfigurationPlatformScriptWindows "IntuneDeviceConfigurationPlatformScriptWindows-Set Windows TIme Server"
        {
            ApplicationId         = $ConfigurationData.NonNodeData.ApplicationId;
            Assignments           = @();
            CertificateThumbprint = $ConfigurationData.NonNodeData.CertificateThumbprint;
            Description           = "";
            DisplayName           = "Set Windows TIme Server";
            EnforceSignatureCheck = $False;
            Ensure                = "Present";
            FileName              = "Set-WindowsTime.ps1";
            Id                    = "c752ddc2-991f-4052-ab3f-afe3ad3b2257";
            RoleScopeTagIds       = @("0");
            RunAs32Bit            = $False;
            RunAsAccount          = "system";
            ScriptContent         = "77u/DQpzYy5leGUgdHJpZ2dlcmluZm8gdzMydGltZSBzdGFydC9uZXR3b3Jrb24gc3RvcC9uZXR3b3Jrb2ZmDQp3MzJ0bSAvY29uZmlnIC9tYW51YWxwZWVybGlzdDoiMC5VUkVEQzE2U1RPVzAwMXYudXJlbmNvLmNvbSAxLlVSRURDMTZTVE9XMDAydi51cmVuY28uY29tIDIuVVJFREMxNkNBUFcwMTJWLnVyZW5jby5jb20gMy5wb29sLm50cC5vcmciLDB4OCAvc3luY2Zyb21mbGFnczpNQU5VQUwNCnJlc3RhcnQtc2VydmljZSB3MzJ0aW1lDQp3MzJ0bSAvcmVzeW5jDQo=";
            TenantId              = $OrganizationName;
        }

        IntuneDeviceConfigurationPolicyAndroidDeviceOwner "IntuneDeviceConfigurationPolicyAndroidDeviceOwner-Android - Device Configuration Profile"
        {
            ApplicationId                                = $ConfigurationData.NonNodeData.ApplicationId;
            AppsAutoUpdatePolicy                         = "always";
            Assignments                                  = @(
                MSFT_DeviceManagementConfigurationPolicyAssignments{
                    deviceAndAppManagementAssignmentFilterType = "none"
                    groupDisplayName = "Intune Enrolled Android Devices"
                    dataType = "#microsoft.graph.groupAssignmentTarget"
                    groupId = "0e954ae7-29bb-4020-bf86-b895c6250837"
                }
            );
            AzureAdSharedDeviceDataClearApps             = @();
            CellularBlockWiFiTethering                   = $True;
            CertificateThumbprint                        = $ConfigurationData.NonNodeData.CertificateThumbprint;
            CrossProfilePoliciesAllowDataSharing         = "notConfigured";
            DateTimeConfigurationBlocked                 = $True;
            DetailedHelpText                             = MSFT_MicrosoftGraphandroiddeviceowneruserfacingmessage{
                Count = 0
                IsFixedSize = $False
                IsReadOnly = $False
                IsSynchronized = $False
                SyncRoot = System.Object
            };

@FabienTschanz
Copy link
Collaborator

Got it, so it's the IntuneDeviceConfigurationPolicyAndroidDeviceOwner policy. I'll take a look at it tomorrow.

@Royhutton
Copy link

Royhutton commented Mar 24, 2025

Thanks for the bug fix there guys. Getting further.
Using 5.1 for Intune workloads only I now get:

Error parsing configuration: At line:2244 char:17 + Count = 0
+ ~~~~~ The member 'Count' is not valid. Valid members are 'defaultMessage', 'localizedMessages'..

Is this a known issue?
Thanks

@FabienTschanz
Copy link
Collaborator

@Royhutton yes, this should be fixed by #5924. Please re-export the configuration and try again. If it still doesn't work, open a separate issue for it. The latest version is 1.25.326.1, which includes the fix (better said, already .319.1 contains it).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment