-
Notifications
You must be signed in to change notification settings - Fork 520
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
MSFT_IntuneDeviceEnrollmentStatusPageWindows10 does not implement the key property Id #3715
Comments
Im getting this as well, only thing i can think of is i updated to version 1.23.920.2. Rolling back module to see if that makes any difference. |
Rolling back to version '1.23.906.1' seems to resolve if. Or did for me at least. Might need to submit a bug. |
1.23.906.1 seems to work, but I needed to make a lot of changes to the *.ps1 which was exported. To get the *.mof generated. |
Ist working with the latest Version now, needed to edit this two files: |
I am running version 1.23.913.2 and still having this issue, are you saying upgrading to 1.23.920.2 resolves the issue? |
Currently you have to update to version 1.23.920.2 and then replace the files from the zip with the local ones. Only a few lines were exchanged e.g: against [Parameter(Mandatory = $true)] |
Getting the same issue with v 1.23.1025.1. Same error messages, execution steps etc. |
Actually the way to solve this is to do the reverse, you must change the Id field from Required to Write in the schema file, this has been done a few weeks ago for several resources. On this one only the module was changed but the schema file was missed. Anyway even after solving that this resource still fails to work properly on latest version, see #3442 |
This has been changed 5 months ago in PR #3878 |
Description of the issue
Hi,
I'm pretty new to M365-DSC and I'm encountering the following Issue, when I try to import a previously exported configuration I get the following error:
The command Get-TargetResource of the PS resource MSFT_IntuneDeviceEnrollmentStatusPageWindows10 does not implement the key property Id mentioned in the corresponding MOF schema file
C:\Program Files\WindowsPowerShell\Modules\Microsoft365DSC\1.23.920.2\DscResources\MSFT_IntuneDeviceEnrollmentStatusPageWindows10\MSFT_IntuneDeviceEnrollmentStatusPageWindows10.schema.mof
as a mandatory parameter. All key parameters mentioned in the schema file must be implemented by the command Get-TargetResource as mandatory function parameters.
+ CategoryInfo : InvalidOperation: (root/Microsoft/...gurationManager:String) [], CimException
+ FullyQualifiedErrorId : KeyParameterNotImplemented
+ PSComputerName : localhost
The Export was done with this command:
Export-M365DSCConfiguration -Path C:\M365-DSC -FileName "COMP-365DSC.ps1" -ConfigurationName "COMP-365DSC-Default" -Mode Full -ApplicationId "removed" -TenantId "comp.onmicrosoft.com" -CertificateThumbprint "removed" -Verbose
Then I ran COMP-365DSC.ps1, deleted some stuff in Intune and Entra ID, to get them restored and test if the things I want to achieve work.
But when i run this:
Start-DSCConfiguration -Path C:\M365-DSC\COMP-365DSC-Default -Wait -Verbose -Force
I get the error mentioned above.
Microsoft 365 DSC Version
1.23.920.2
Which workloads are affected
other
The DSC configuration
Verbose logs showing the problem
Environment Information + PowerShell Version
The text was updated successfully, but these errors were encountered: