@Naruto
Thank you for your post!
Here's some documentation that you can use to get an idea of how to implement AzureAD authentication into your Python Function App via code. You can also reference our Other authentication methods doc for authenticating with token credentials.
Additional resource:
Authenticating your Python application against Azure Active Directory
If you have any other questions, please let me know.
Thank you for your time and patience throughout this issue.
----------
Please remember to "Accept Answer" if any answer/reply helped, so that others in the community facing similar issues can easily find the solution.