Hello @Kirubakara Senthil Kumar S ,
Thanks for reaching out and apologies for delayed response.
If these work loads are in Azure VM then you can leverage "Virtual network service endpoints" which provides secure and direct connectivity to Azure services over an optimized route over the Azure backbone network rather than public route over Internet.
For more information, read
Microsoft Graph API endpoint are managed by Azure AD service Bus which are spread across regions and datacenter hence client requests are distributed based on load.
Here's different set of IP ranges when I nslookup from two different machine so pointing it to specific IP resolution using HOST file wont be reliable.
Therefore, the best option would be whitelisting graph.microsoft.com IP address from firewall. Please find detailed "Azure IP Ranges and Service Tags – Public Cloud".
Non-authoritative answer: Name: www.tm.prd.ags.akadns.net Addresses: 20.190.132.41 20.190.132.42 20.190.132.43 20.190.132.44 Aliases: graph.microsoft.com ags.privatelink.msidentity.com
Non-authoritative answer: Name: www.tm.prd.ags.akadns.net Addresses: 20.190.145.171 20.190.145.170 20.190.145.169 Aliases: graph.microsoft.com ags.privatelink.msidentity.com
Hope this helps.
------------------
Please "Accept the answer" if the information helped you. This will help us and others in the community as well.