Hello @chaowang,
Thank you for posting your query on Microsoft Q&A.
The error message "AADSTS65001: The user or administrator has not consented to use the application with ID '{App-Id}' named '{Name-of-App}'. Send an interactive authorization request for this user and resource." typically occurs when consent hasn't been granted for the API scopes or when incorrect scopes are listed in the permissions, preventing the user from providing consent.
Please refer to the following document for troubleshooting this issue: Troubleshooting Consent in Azure AD.
If you’re still encountering issues, feel free to email me at AzCommunity@microsoft.com, referencing this issue in the subject line as "ATTN: pothurajur," and include a link to this thread.
Thanks,
Raja Pothuraju.