microsoft/Microsoft365DSC

Export-M365DSCConfiguration doesn't support combination of Credential and ApplicationId

mlhickey opened this issue · 0 comments

Description of the issue

MSCloudLoginAssistant added support sometime back with CredentialsWithApplicationId to support custom appids but the auth parameters check in Export-M365DSCConfiguration don't appear to have been updated to allow this combination. Fix could be to add additional compare to block at/around 1285:
image

Microsoft 365 DSC Version

1.24.403.1

Which workloads are affected

Azure Active Directory (Entra ID)

The DSC configuration

No response

Verbose logs showing the problem

No response

Environment Information + PowerShell Version

OsName               : Microsoft Windows 11 Enterprise
OsOperatingSystemSKU : EnterpriseEdition
OsArchitecture       : 64-bit
WindowsVersion       : 2009
WindowsBuildLabEx    : 22621.1.amd64fre.ni_release.220506-1250
OsLanguage           : en-US
OsMuiLanguages       : {en-US}

PS C:\>
PS C:\> $PSVersionTable

Name                           Value
----                           -----
PSVersion                      7.4.3
PSEdition                      Core
GitCommitId                    7.4.3
OS                             Microsoft Windows 10.0.22631
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0