-
Notifications
You must be signed in to change notification settings - Fork 523
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
IntuneDeviceConfigurationPolicyAndroidDeviceOwner: Credential Parameter as String in Export #2270
Comments
Hi @andikrueger |
The issue are the quotation marks in the configuration part of this resource. The credentials should be the variable only and not a string… |
@William-Francillette Were you able to investigate this one any further? |
@andikrueger, In Convert-DSCStringParamToVariable (ReverseDSC.Core.psm) :
This should return the position of The trick could be instead of using
In Get-M365DSCExportContentForResource (M365DSCUtil.psm) we could use instead
With a space at the end of Credential in the parameter name which would ensure to retrieve the startPosition of the Credential parameter and not any other parameter |
@andikrueger, @NikCharlebois |
Details of the scenario you tried and the problem that is occurring
The export of the resource does not generate a well formatted configuration. This configuration cannot be applied to a tenant. The parameter Credential is of type string rather than PSCredential. This breaks the configuration.
Verbose logs showing the problem
Suggested solution to the issue
Change Credential Param in Exported configuration object.
Version of the DSC module that was used ('dev' if using current dev branch)
1.22.831.1
The text was updated successfully, but these errors were encountered: