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
As mentioned in the discussion below, there is an issue with the IntuneAppProtectionPolicyAndroid resource. The schema and the properties within the ps1 are different. This causes the exported configuration to fail during compilation.
MSFT_IntuneAppProtectionPolicyAndroid.schema needs to be adjusted to reflect the needed properties.
Originally posted by MichielBouman May 17, 2022
I have successfully exported our Intune configuration and saved in M365TenantConfig.ps1. When I run the script I get a number of errors:
At C:\Users\mbo457\Documents\M365DSC\Intune_Settings_UWV\M365TenantConfig.ps1:526 char:114
change get to add back in the credentials info
changed test to rip it out as we don't need to compare that
removed id from export bcause it isn't currently supported
this ought to address issue microsoft#1955
Dear @menswearUK , I have updated M365DSC to the latest version, but I still get the same errors when I run M365TenantConfig.ps1.
The versions that is installed is: 1.22.706.1
I have also updated the dependancies to the latest version.
Any idea what might cause these errors?
Thanks
Sorry, I managed to close it when pulling into our own fork and the pull was never approved to the MS repo. I've made the changes again in a slightly less ambitious change which I've submitted today - if this gets approved it ought to fix the error, if it doesn't get approved I'll put in a straight fix for this issue immediately
As mentioned in the discussion below, there is an issue with the IntuneAppProtectionPolicyAndroid resource. The schema and the properties within the ps1 are different. This causes the exported configuration to fail during compilation.
MSFT_IntuneAppProtectionPolicyAndroid.schema needs to be adjusted to reflect the needed properties.
Discussed in https://github.com/microsoft/Microsoft365DSC/discussions/1947
Originally posted by MichielBouman May 17, 2022
I have successfully exported our Intune configuration and saved in M365TenantConfig.ps1. When I run the script I get a number of errors:
At C:\Users\mbo457\Documents\M365DSC\Intune_Settings_UWV\M365TenantConfig.ps1:526 char:114
Missing argument in parameter list.
At C:\Users\mbo457\Documents\M365DSC\Intune_Settings_UWV\M365TenantConfig.ps1:616 char:114
Missing argument in parameter list.
At C:\Users\mbo457\Documents\M365DSC\Intune_Settings_UWV\M365TenantConfig.ps1:768 char:114
Missing argument in parameter list.
At C:\Users\mbo457\Documents\M365DSC\Intune_Settings_UWV\M365TenantConfig.ps1:1306 char:121
Missing argument in parameter list.
At C:\Users\mbo457\Documents\M365DSC\Intune_Settings_UWV\M365TenantConfig.ps1:1442 char:121
Missing argument in parameter list.
At C:\Users\mbo457\Documents\M365DSC\Intune_Settings_UWV\M365TenantConfig.ps1:1491 char:121
Missing argument in parameter list.
At C:\Users\mbo457\Documents\M365DSC\Intune_Settings_UWV\M365TenantConfig.ps1:1677 char:121
Missing argument in parameter list.
At C:\Users\mbo457\Documents\M365DSC\Intune_Settings_UWV\M365TenantConfig.ps1:71 char:13
The member 'IsAssigned' is not valid. Valid members are
'AllowedDataStorageLocations', 'AllowedInboundDataTransferSources', 'AllowedOutboundClipboardSharingLevel', 'AllowedOutboundDataTransferDestinations', 'ApplicationId', 'ApplicationSecret', 'Apps', 'Assignments',
'CertificateThumbprint', 'ContactSyncBlocked', 'Credential', 'DataBackupBlocked', 'DependsOn', 'Description', 'DeviceComplianceRequired', 'DisableAppPinIfDevicePinIsSet', 'DisplayName', 'Ensure', 'ExcludedGroups',
'FingerprintBlocked', 'ManagedBrowserToOpenLinksRequired', 'MaximumPinRetries', 'MinimumPinLength', 'OrganizationalCredentialsRequired', 'PeriodBeforePinReset', 'PeriodOfflineBeforeAccessCheck',
'PeriodOfflineBeforeWipeIsEnforced', 'PeriodOnlineBeforeAccessCheck', 'PinCharacterSet', 'PinRequired', 'PrintBlocked', 'PsDscRunAsCredential', 'SaveAsBlocked', 'SimplePinBlocked', 'TenantId'.
At C:\Users\mbo457\Documents\M365DSC\Intune_Settings_UWV\M365TenantConfig.ps1:72 char:13
The member 'ManagedBrowser' is not valid. Valid members are
'AllowedDataStorageLocations', 'AllowedInboundDataTransferSources', 'AllowedOutboundClipboardSharingLevel', 'AllowedOutboundDataTransferDestinations', 'ApplicationId', 'ApplicationSecret', 'Apps', 'Assignments',
'CertificateThumbprint', 'ContactSyncBlocked', 'Credential', 'DataBackupBlocked', 'DependsOn', 'Description', 'DeviceComplianceRequired', 'DisableAppPinIfDevicePinIsSet', 'DisplayName', 'Ensure', 'ExcludedGroups',
'FingerprintBlocked', 'ManagedBrowserToOpenLinksRequired', 'MaximumPinRetries', 'MinimumPinLength', 'OrganizationalCredentialsRequired', 'PeriodBeforePinReset', 'PeriodOfflineBeforeAccessCheck',
'PeriodOfflineBeforeWipeIsEnforced', 'PeriodOnlineBeforeAccessCheck', 'PinCharacterSet', 'PinRequired', 'PrintBlocked', 'PsDscRunAsCredential', 'SaveAsBlocked', 'SimplePinBlocked', 'TenantId'.
At C:\Users\mbo457\Documents\M365DSC\Intune_Settings_UWV\M365TenantConfig.ps1:105 char:13
The member 'IsAssigned' is not valid. Valid members are
'AllowedDataStorageLocations', 'AllowedInboundDataTransferSources', 'AllowedOutboundClipboardSharingLevel', 'AllowedOutboundDataTransferDestinations', 'ApplicationId', 'ApplicationSecret', 'Apps', 'Assignments',
'CertificateThumbprint', 'ContactSyncBlocked', 'Credential', 'DataBackupBlocked', 'DependsOn', 'Description', 'DeviceComplianceRequired', 'DisableAppPinIfDevicePinIsSet', 'DisplayName', 'Ensure', 'ExcludedGroups',
'FingerprintBlocked', 'ManagedBrowserToOpenLinksRequired', 'MaximumPinRetries', 'MinimumPinLength', 'OrganizationalCredentialsRequired', 'PeriodBeforePinReset', 'PeriodOfflineBeforeAccessCheck',
'PeriodOfflineBeforeWipeIsEnforced', 'PeriodOnlineBeforeAccessCheck', 'PinCharacterSet', 'PinRequired', 'PrintBlocked', 'PsDscRunAsCredential', 'SaveAsBlocked', 'SimplePinBlocked', 'TenantId'.
Not all parse errors were reported. Correct the reported errors and try again.
+ CategoryInfo : ParserError: (:) [], ParseException
+ FullyQualifiedErrorId : MissingArgument
Any ideas how to solve these errors?
Thanks,
Michiel
The text was updated successfully, but these errors were encountered: