Unable to login to the newly created VM from a VHD of a generalized VM in Azure. The steps I'm following are:
- De-provision the VM-1.
- De-allocate the VM-1.
- Generalize the VM-1.
- Create a managed disk using the VHD of VM1.
- Create a new VM (let's call it VM2) attaching the managed disk created in step 4.
- Logging to VM2 throws "permission denied" error.
I've been following first 3 steps from https://docs.microsoft.com/en-us/azure/virtual-machines/linux/capture-image (quick commands section) and next 3 steps from https://docs.microsoft.com/en-us/azure/virtual-machines/linux/upload-vhd (where instead of uploading a vhd, I'm using one of a unmanaged vm.)
I even tried resetting the public key or password from the portal, that fails as well.
Could somebody suggest what wrong am I doing here?