-
Notifications
You must be signed in to change notification settings - Fork 211
Closed
Labels
Description
Describe the bug
After upgrading to 2.26.0
, calls to Add-MgApplicationPassword
fail with the following error message:
Invalid character after parsing property name. Expected ':' but got: ". Path 'passwordCredential', line 2, position 28.
Expected behavior
The expected behaviour should be the creation of the application password.
How to reproduce
Example code:
$appObjectId = 'eaf1e531-0d58-4874-babe-b9a9f436e6c3'
$passwordCred = @{
displayName = 'Created in PowerShell'
endDateTime = (Get-Date).AddMonths(6)
}
$secret = Add-MgApplicationPassword -applicationId $appObjectId -PasswordCredential $passwordCred
SDK Version
2.26.0
Latest version known to work for scenario above?
2.25.0
Known Workarounds
No response
Debug output
Click to expand log
``` ```Configuration
Name Value
---- -----
PSVersion 7.5.0
PSEdition Core
GitCommitId 7.5.0
OS Ubuntu 22.04.5 LTS
Platform Unix
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0
Other information
No response