-
Notifications
You must be signed in to change notification settings - Fork 523
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
MSFT_AADApplication: New AADApplication fails to create due to issue with parameter Oauth2RequirePostResponse #2276
Comments
This fix was introduced for the update scenario to fix unit test. The docs for the cmdLet outline this parameter. For me, this looks like an issue with the Microsoft.Graph.* modules and should be fixed there. Removing the parameter within M365DSC could cause configuration drifts and configurations that look like they were applied correctly, but aren't. @NikCharlebois What's the best place to raise the issue with the Graph module. |
Thanks for the prompt response @andikrueger. I've raised an issue on the Graph PowerShell SDK page: https://github.com/microsoftgraph/msgraph-sdk-powershell/issues/1502 |
Kinda happy I found this, after spending way to much time looking for errors in my implementation LOL. Especially since it was frustrating that Update seemed to work, but New did not. So thanx @JamieH-risual and @andikrueger. Not 100% sure how it works at the "Graph PowerShell SDK page". But the Issue now seems to be closed and at least the latest Powershell Microsoft Graph 1.16.0 does still have the same problem. Is it working for anyone? |
When creating a new AADApplication it fails with the error: Resource '' does not exist or one of its queried reference-property objects are not present.
This appears to be an issue with the Oauth2RequirePostResponse parameter as removing it when running New-MGApplication manually creates the application successfully.
It looks like this has already been recognised as an issue on the update of an app as it has been removed from the param list:
Verbose logs showing the problem
Suggested solution to the issue
Remove the parameter prior to creation:
The DSC configuration that is used to reproduce the issue (as detailed as possible)
Version of the DSC module that was used ('dev' if using current dev branch)
Microsoft365DSC - 1.22.907.1
Microsoft.Graph* - 1.11.1
The text was updated successfully, but these errors were encountered: