Update-MgApplication breaks on the property Spa #3210
Labels
status:waiting-for-triage
An issue that is yet to be reviewed or assigned
type:bug
A broken experience
Describe the bug
When executing the command Update-MgApplication -ApplicationId $graphApplication.Id -Spa @{ RedirectUris = $redirectUris } in the latest version of the Microsoft Graph SDK, an error occurs:
##[error][Request_BadRequest] : Invalid value specified for property 'spa' of resource 'Application'.
This issue did not occur in version 2.25.0, where the same command executed successfully.
Expected behavior
The expected behavior is that the command should successfully update the RedirectUris for the specified application without any errors. Specifically, the -Spa parameter should accept a hashtable with the RedirectUris property, and the update should be processed as expected, similar to how it worked in version 2.25.0.
How to reproduce
"redirectUris": [
"http://localhost/swagger/oauth2-redirect.html",
"[https://localhost/swagger/oauth2-redirect.html"
]
SDK Version
2.26.0
Latest version known to work for scenario above?
2.25.0
Known Workarounds
No response
Debug output
##[error][Request_BadRequest] : Invalid value specified for property 'spa' of resource 'Application'.
Configuration
No response
Other information
No response
The text was updated successfully, but these errors were encountered: