You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
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.
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.
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.
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: