When recreating a VM with an existing VHD, a SSH login credential should be recreated by “Reset Password”
For testing,
- Create a VM
- Remove VM while OS VHD left as it was
- Create a VM with Azure Cli in the example
azure login
azure config mode arm
azure vm create -f VM_NIC_Name -d https://OS_VHD_Storage_Account.blob.core.windows.net/vhds/th-OS_VHD_Name.vhd -o OS_VHD_Storage_Account -z Standard_DS1_v2 VM_Name Computer_Name EastAsia linux