Skip to content
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

Export-M365DSCConfiguration fails using Application ID and Certificate Thumbprint #2455

Closed
HardingChris opened this issue Oct 27, 2022 · 0 comments · Fixed by #2456
Closed
Assignees
Labels
Bug Something isn't working V1.22.1026.1 Version 1.22.1026.1

Comments

@HardingChris
Copy link

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

Since updating to v1.22.1026.1, export now fails with the following error when authenticating using application ID and certificate thumbprint:
Cannot bind argument to parameter 'String' because it is an empty string.

This was working in v1.22.1019.1

Verbose logs showing the problem

Export-M365DSCConfiguration -ApplicationId xxxx -CertificateThumbprint xxxx -TenantId xxxx -Path xxxx -FileName xxxx -Components @("IntuneDeviceCompliancePolicyMacOS","IntuneDeviceCompliancePolicyWindows10")
Exporting Microsoft 365 configuration for Components: IntuneDeviceCompliancePolicyMacOS, IntuneDeviceCompliancePolicyWindows10

Authentication methods specified:

  • Service Principal with Certificate Thumbprint

Cannot bind argument to parameter 'String' because it is an empty string.
Partial Export file was saved at: C:\Users\Chris\AppData\Local\Temp\b98a98ec-17b7-4bc8-9fdb-a9ea51eeaa3d.partial.ps1

Suggested solution to the issue

The DSC configuration that is used to reproduce the issue (as detailed as possible)

The operating system the target node is running

OsName : Microsoft Windows 10 Pro
OsOperatingSystemSKU : 48
OsArchitecture : 64-bit
WindowsVersion : 2009
WindowsBuildLabEx : 19041.1.amd64fre.vb_release.191206-1406
OsLanguage : en-GB
OsMuiLanguages : {en-GB, en-US}

Also fails in the same way when running from Azure pipeline using windows-latest agent image

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

1.22.1026.1

@NikCharlebois NikCharlebois self-assigned this Oct 27, 2022
@NikCharlebois NikCharlebois added Bug Something isn't working V1.22.1026.1 Version 1.22.1026.1 labels Oct 27, 2022
NikCharlebois added a commit to NikCharlebois/Microsoft365DSC that referenced this issue Oct 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working V1.22.1026.1 Version 1.22.1026.1
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants