Reputation: 491
I have been using this VM (Azure ubuntu) for almost a month but had to restart to increase the disk size which was successful. I have preserved the IP address. But now unable to SSH. I also "reset configuration only" from the "Reset Password option". Also tried "test connection" within Azure Portal and that fails as well. But I am still able to access MySQL database which is running on the same VM. What am I doing wrong?
Upvotes: 1
Views: 1277
Reputation: 491
Finally, it worked. All I had to do was a reset via the CLI:
az vm user reset-ssh --resource-group myresourcegroup --name myvm
https://learn.microsoft.com/en-us/azure/virtual-machines/extensions/vmaccess
Upvotes: 1