Microsoft365DSC icon indicating copy to clipboard operation
Microsoft365DSC copied to clipboard

IntuneDeviceConfigurationPolicyAndroidDeviceOwner - Export results in wrong configuration.

Open andikrueger opened this issue 2 years ago • 2 comments

Details of the scenario you tried and the problem that is occurring

The export of MSFT_IntuneDeviceConfigurationPolicyAndroidDeviceOwner results in a configuration that is not valid. The params:

  • DeviceManagementApplicabilityRuleDeviceMode
  • DeviceManagementApplicabilityRuleOsEdition
  • DeviceManagementApplicabilityRuleOsVersion

Are not written properly.

image

Suggested solution to the issue

Create proper instances of the CIM objects within the configuration.

Version of the DSC module that was used ('dev' if using current dev branch)

1.22.831.1

andikrueger avatar Sep 12 '22 11:09 andikrueger

This resource was probably generated a while ago with one of the first version of the DRG as it is very different from the other one. The applicability rules haven't been deployed to any resources yet. I would suggest to generate that resource again and add support for assignments and descriptions. Not sure about the credentials issue as I use certificate authentication I'll be happy to work on that next

William-Francillette avatar Sep 12 '22 19:09 William-Francillette

Yesterday I was working on the Credential issue and I was not able to find the root cause for this one. The handling of credential is done by one method and works for all other resources.

I think, we can skip this part for the moment and should focus on fixing the other params first.

Thanks for picking this up!

andikrueger avatar Sep 13 '22 09:09 andikrueger