Hello @Tahmid Eshayat ,
Welcome to Microsoft Q&A Platform. Thank you for reaching out & hope you are doing well.
As mentioned in this doc, Traffic Manager works at the DNS level. It uses DNS responses to direct clients to the appropriate service endpoint. Clients connect to the service endpoint directly, not through Traffic Manager. Therefore, Traffic Manager does not see the HTTP traffic between the client and the server.
Additionally, the source IP address of the DNS query received by Traffic Manager belongs to the recursive DNS service, not the client. Therefore, Traffic Manager has no way to track individual clients and cannot implement 'sticky' sessions. This limitation is common to all DNS-based traffic management systems and is not specific to Traffic Manager.
If you want to guarantee specific VM routing which means sticky sessions, then you may look into Azure load balancer or Azure Application gateway or Azure Front Door. Below are the respective articles explaining session affinity (sticky sessions) feature for the above mentioned products:
https://video2.skills-academy.com/en-us/azure/load-balancer/distribution-mode-concepts
https://video2.skills-academy.com/en-us/azure/application-gateway/configuration-http-settings
https://video2.skills-academy.com/en-us/azure/frontdoor/front-door-routing-methods#affinity
Kindly let us know if the above helps or you need further assistance on this issue.
----------------------------------------------------------------------------------------------------------------
Please "Accept the answer" if the information helped you. This will help us and others in the community as well.