Skip to content

Update-MgApplication breaks on the property Spa #3210

Closed
@ThibaultVerlinde

Description

@ThibaultVerlinde

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

  • Start up a devops pipeline with imrage version '20250224.5.0'
  • Run the command "Update-MgApplication -ApplicationId $graphApplication.Id -Spa @{ RedirectUris = $redirectUris }"
  • Make sure the redirectUris have input, like for example
    "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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions