To check the details you can go to VM blade- Activity log. Refer the below URL for step-by-step details.
https://learn.microsoft.com/en-us/azure/azure-resource-manager/management/view-activity-logs
Activity logs are kept for 90 days. You can query for any range of dates, as long as the starting date isn't more than 90 days in the past.
If the Answer is helpful, please click Accept Answer
and up-vote, this can be beneficial to other community members.