Neither tradition, nor any documentation links Shimla with any deity. The imagined association is a back-formation and a mindless exercise in Sanskritisation.
https://www.tribuneindia.com/news/weekly-pullouts/himachal-tribune/renaming-shimla-mocking-history/674135.html