Hello Tursun Jung,
Welcome to the MS Q&A forum.
Could you kindly provide more details about your end goal and OS what you need to reinstall on Azure VM?
Reinstalling the operating system (OS) on an Azure Virtual Machine (VM) mostly involves creating a new VM with a fresh OS image and optionally attaching existing disks from the old VM to migrate your data.
Here are the public tutorials to help you to achieve it:
In addition, you can build your server on the Hyper-V host (Rescue VM) and access/troubleshoot it there as you would do in your on-prem environment: