We checked the virtual machine from the boot diagnostics screen, and we could that it was stuck in a reboot loop, and we proceeded to create a rescue VM and attaching the faulty VM disk as an OS disk and we did the last known good configuration on the disk using the documentation below.
How to start Azure Windows VM with Last Known Good Configuration - Virtual Machines | Microsoft Learn
https://learn.microsoft.com/en-us/troubleshoot/azure/virtual-machines/start-vm-last-known-good
We swapped the repaired disk with the affected VM OS disk, and we confirmed that you were able to access the virtual machine successfully.
this might help someone.