Microsoft365DSC icon indicating copy to clipboard operation
Microsoft365DSC copied to clipboard

Error Occurs When Running New-M365DSCDeltaReport

Open yoinuma opened this issue 1 year ago • 16 comments

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

yoinuma avatar Mar 03 '25 04:03 yoinuma

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

Royhutton avatar Mar 06 '25 07:03 Royhutton

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

FabienTschanz avatar Mar 07 '25 12:03 FabienTschanz

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

Morph2310 avatar Mar 07 '25 13:03 Morph2310

@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.

FabienTschanz avatar Mar 07 '25 14:03 FabienTschanz

@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.

Morph2310 avatar Mar 07 '25 18:03 Morph2310

@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).

FabienTschanz avatar Mar 07 '25 22:03 FabienTschanz

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

Royhutton avatar Mar 12 '25 11:03 Royhutton

@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.

FabienTschanz avatar Mar 12 '25 11:03 FabienTschanz

@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
            };

Royhutton avatar Mar 13 '25 17:03 Royhutton

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

FabienTschanz avatar Mar 13 '25 21:03 FabienTschanz

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

Royhutton avatar Mar 24 '25 10:03 Royhutton

@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).

FabienTschanz avatar Mar 29 '25 15:03 FabienTschanz

Hi @FabienTschanz

Thank you for your efforts on this matter. Could you please provide an update on the status of this issue? I have updated the module to the latest version and tested it in my environment, but it appears that the problem has not been resolved.

Image

Image

If there is any estimated timeline for the fix, it would be greatly appreciated.

yoinuma avatar Apr 01 '25 07:04 yoinuma

@yoinuma I just checked the released version and sure enough, it doesn't contain my changed code, although it's available in the Dev branch. Let's wait for today's release, which should incorporate it. Not sure why it's missing though.

FabienTschanz avatar Apr 02 '25 14:04 FabienTschanz

@FabienTschanz

I wanted to provide an update on this issue. It appears that a new version has been released which includes a fix for the issue. I have tested the updated version in my environment, and while the original error seems to be resolved, I have encountered a new error that is preventing the process from completing successfully.

Image

version

Image

Could you please advise on whether I should create a new thread to report this new error, or if it would be better to continue the discussion in this thread?

yoinuma avatar Apr 08 '25 05:04 yoinuma

@yoinuma Can you try executing it in an elevated Windows PowerShell 5.1 session, just to be sure? If it doesn't work, please open a separate issue and try to restrict the content of the source file to a minimum reproducible version. Also, attach the -Verbose parameter to the command so that we can see more output. Thank you!

FabienTschanz avatar Apr 08 '25 12:04 FabienTschanz