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

Update-MgApplication breaks on the property Spa #3210

Open
ThibaultVerlinde opened this issue Mar 5, 2025 · 3 comments
Open

Update-MgApplication breaks on the property Spa #3210

ThibaultVerlinde opened this issue Mar 5, 2025 · 3 comments
Labels
status:waiting-for-triage An issue that is yet to be reviewed or assigned type:bug A broken experience

Comments

@ThibaultVerlinde
Copy link

ThibaultVerlinde commented Mar 5, 2025

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

@ThibaultVerlinde ThibaultVerlinde added status:waiting-for-triage An issue that is yet to be reviewed or assigned type:bug A broken experience labels Mar 5, 2025
@MichielCMM
Copy link

An issue exists here as well: actions/runner-images#11702

@MichielCMM
Copy link

Specifically this: merge #3153 should fix the issue, but i'm unsure if that is in the 2.26.1 patch

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status:waiting-for-triage An issue that is yet to be reviewed or assigned type:bug A broken experience
Projects
None yet
Development

No branches or pull requests

2 participants