I have a web application that used Azure AD authentication and accesses graph.microsoft.com. We currently do the required application registration in Azure Management Portal, but we want to move to the new App Model V2 with application registration in apps.dev.microsoft.com. This allows us to use scopes that are defined in the application instead of resources defined in the Azure Portal.
However, with exiting App Model, we can define admin-consent so that the admin can give consent to all users. This does not work with App Model V2 and we get the error message:
AADSTS90100: Invalid request. The prompt request parameter value 'admin_consent' is invalid.
How can we use admin consent with app model v2?