Have you tried accessing the VM using the serial console - https://zcusa.951200.xyz/en-us/azure/virtual-machines/troubleshooting/serial-console-linux
VM - After Restarting, Cannot Change Password or Connect with SSH
Kuroudy
1
Reputation point
Hey everyone,
I recently filled up the OS disk on my VM and wanted to expand the disk. After expanding the disk and connecting with SSH I reallocated the partitions. Then I restarted my VM and now I can no longer connect to the VM using SSH. When I try to change the password I get "The VM agent is either unavailable, or not installed, which may prevent VMAccess from running". I have rebooted the VM multiple times and have tried redeploying but I still cannot connect with SSH and I cannot change the password.
I would appreciate some help connecting again!