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

EXOServicePrincipal : Cannot bind argument to parameter 'AppName' because it is an empty string #5836

Open
CovidtheDog2024 opened this issue Feb 25, 2025 · 0 comments

Comments

@CovidtheDog2024
Copy link

Description of the issue

WorkLoad : Exchange
Resource : EXOServicePrincipal
Error : Cannot bind argument to parameter 'AppName' because it is an empty string.

The error experience during export.

But running Get-ServicePrincipal | FL in Powershell got this result

DisplayName : test
AppId : xxxxxxx
ObjectId : xxxxxxx
Sid : xxxx
SidHistory : {}
Identity : xxxxxxx
Id : xxxxxxx
IsValid : True
ExchangeVersion : 1.1 (15.0.0.0)
Name : xxxxxxxxxx
DistinguishedName : CN=xxxxxxxxx,OU=xxxxxx.onmicrosoft.com,OU=Microsoft Exchange Hosted
Organizations,DC=xxxxxx,DC=DEV,DC=OUTLOOK,DC=COM
ObjectCategory : xxxxxx.DEV.OUTLOOK.COM/Configuration/Schema/Person
ObjectClass : {top, person, organizationalPerson, user}
WhenChanged : 8/20/2024 1:22:30 AM
WhenCreated : 8/20/2024 12:05:00 PM
WhenChangedUTC : 8/18/2024 6:25:30 PM
WhenCreatedUTC : 8/14/2024 7:05:27 AM
ExchangeObjectId : xxxxxx
OrganizationalUnitRoot : xxxxx.onmicrosoft.com
OrganizationId : xxxxx.DEV.OUTLOOK.COM/Microsoft Exchange Hosted Organizations/xxxxxx.onmicrosoft.com -
xxxxx.DEV.OUTLOOK.COM/ConfigurationUnits/xxxxxx.onmicrosoft.com/Configuration
Guid : xxxxxxx
OriginatingServer : xxxxx.DEV.OUTLOOK.COM
ObjectState : Changed

Microsoft 365 DSC Version

1.25.219.2

Which workloads are affected

Exchange Online

The DSC configuration

n/a

Verbose logs showing the problem

{InvalidData}
System.Management.Automation.ParameterBindingValidationException: Cannot bind argument to parameter 'AppName' because it is an empty string.
   at System.Management.Automation.ExceptionHandlingOps.CheckActionPreference(FunctionContext funcContext, Exception exception)
   at System.Management.Automation.Interpreter.ActionCallInstruction`2.Run(InterpretedFrame frame)
   at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame)
   at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame)
"Error during Export:"
at Export-TargetResource, C:\Program Files\WindowsPowerShell\Modules\Microsoft365DSC\1.25.219.2\DSCResources\MSFT_EXOServicePrincipal\MSFT_EXOServicePrincipal.psm1: line 374
at Start-M365DSCConfigurationExtract, C:\Program Files\WindowsPowerShell\Modules\Microsoft365DSC\1.25.219.2\Modules\M365DSCReverse.psm1: line 689
at Export-M365DSCConfiguration, C:\Program Files\WindowsPowerShell\Modules\Microsoft365DSC\1.25.219.2\Modules\M365DSCUtil.psm1: line 1512
at <ScriptBlock>, <No file>: line 1

Environment Information + PowerShell Version

Get-ComputerInfo -Property @(
'OsName',
'OsOperatingSystemSKU',
'OSArchitecture',
'WindowsVersion',
'WindowsBuildLabEx',
'OsLanguage',
'OsMuiLanguages')

$PSVersionTable


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}

Key   : PSVersion
Value : 5.1.22621.4391
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.22621.4391
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant