@Rajiv Bansal Welcome to Microsoft Q&A and thank you for your query. One of our colleague have already responded to similar query here. Please review and see if that helps. Please let us know if you have any additional queries.
Resurfacing the details from the other thread - Please try the Visual Studio Code extension ARM Template Viewer by Ben Coleman, a Microsoft employee. Another such tool is ArmWiz, you can upload your template and get a visualization.
Also in addition to that, if you are only looking at visualizing all the resources , we have new feature within Azure Portal to Summarize resources with visuals. Below are some reference links to learn about this feature
https://video2.skills-academy.com/en-us/azure/azure-portal/manage-filter-resource-views#summarize-resources-with-visuals
https://www.youtube.com/watch?v=wudqkkJd5E4
Hope the above information helps, please let us know if you have any other queries.