Hi @MS Techie
Your question is already answered refer to the below url.
https://stackoverflow.com/questions/66450617/is-it-possible-to-enable-managed-identity-between-azure-function-and-azure-web-a
If the Answer is helpful, please click Accept Answer
and up-vote, this can be beneficial to other community members.