Hi @Richa Nagrath ,
As JimmySalian-2011 mention above you can know that by checking the Activity Logs.
Specifically, you will check for a "Create or Update Virtual Machine" operation name.
The retention period is for 90 days, but if you want to keep for more time your logs you can use Azure Monitor.
If the answer is helpful, please click "Accept Answer" and kindly upvote it.