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
When creating a new "IntuneWindowsAutopilotDeploymentProfileAzureADJoined" resource which does not include an ID property, Test-DscConfiguration & Get-DscConfiguration fails.
This causes multiple copies of the AutoPilot profile to be created and means that I can't use Get-DscConfiguration command to get the Autopilot profile ID after creation to pass to the next part of my script.
The following output was provided when there was only a single version of the configuration (removed all duplicates):
VERBOSE: An LCM method call arrived from computer LABELMTHPVHST01 with user sid S-1-5-21-546332293-321881932-2114914919-1000. VERBOSE: [LABELMTHPVHST01]: LCM: [ StartGet ]
Get-DscConfiguration : The PowerShell DSC resource returned results that are not valid fromGet-TargetResource. The Verbose key is not a valid property in the corresponding DSC resource schema file. The results fromGet-TargetResource must be in a Hashtable format. The keys in the Hashtable must be the same as the properties in the corresponding DSC resource schema file.
At line:1 char:1+Get-DscConfiguration-Verbose
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidResult: (MSFT_DSCLocalConfigurationManager:root/Microsoft/...gurationManager) [Get-DscConfiguration], CimException
+ FullyQualifiedErrorId : GetOperationResultInvalidResultFormat,Get-DscConfiguration
Environment Information + PowerShell Version
OsName : Microsoft Windows Server 2025 Datacenter
OsOperatingSystemSKU : DatacenterServerEdition
OsArchitecture : 64-bit
WindowsVersion : 2009
WindowsBuildLabEx : 26100.1.amd64fre.ge_release.240331-1435
OsLanguage : en-US
OsMuiLanguages : {en-US}
Key : PSVersion
Value : 5.1.26100.1591
Name : PSVersion
Key : PSEdition
Value : Desktop
Name : PSEdition
Key : PSCompatibleVersions
Value : {1.0,2.0,3.0,4.0...}
Name : PSCompatibleVersions
Key : BuildVersion
Value : 10.0.26100.1591
Name : BuildVersion
Key : CLRVersion
Value : 4.0.30319.42000
Name : CLRVersion
Key : WSManStackVersion
Value : 3.0
Name : WSManStackVersion
Key : PSRemotingProtocolVersion
Value : 2.3
Name : PSRemotingProtocolVersion
Key : SerializationVersion
Value : 1.1.0.1
Name : SerializationVersion
The text was updated successfully, but these errors were encountered:
Description of the issue
When creating a new "IntuneWindowsAutopilotDeploymentProfileAzureADJoined" resource which does not include an ID property, Test-DscConfiguration & Get-DscConfiguration fails.
This causes multiple copies of the AutoPilot profile to be created and means that I can't use Get-DscConfiguration command to get the Autopilot profile ID after creation to pass to the next part of my script.
Microsoft 365 DSC Version
1.24.1218.1
Which workloads are affected
Intune
The DSC configuration
Verbose logs showing the problem
Environment Information + PowerShell Version
The text was updated successfully, but these errors were encountered: