@Sarfaraz Khan Welcome to Microsoft Q&A Forum, Thank you for posting your query here!
I see that your query is related to How to represent Azure Function in Microsoft threat modeling tool.
Could you please elaborate on your ask and your use case ? Also please check if the below article serves your purpose.
Azure AppService ( including Azure Function app) goes through vigorous compliance checks on a continuous basis to make sure that there is 24-hour threat management protects the infrastructure and platform against malware, distributed denial-of-service (DDoS), man-in-the-middle (MITM), and other threats. see ***here.
For Azure security baseline for Functions refer this article.