Hi @Shivkumar ,
Thanks for reaching out to Microsoft QnA. Happy to answer your question.
When you are capturing a VM that has been generalized (on which sysprep has been run and is currently in not running state), and then creating a VM from this captured image, you will be prompted to enter credentials, and will have to use the new credentials that you have entered during VM creation time from this image to login to the VM.
However, in your case, I believe you are not generalizing the VM, rather directly capturing the VM from Portal (without going through the generalize step). In this case, your image gets created pit of a specialized disk (vhd of the VM) that consists of the user accounts. That is why after you create a VM form this specialized image, even though you enter new credentials while VM creation, you VM image already has the user accounts retained and you will only be able to log in using those user accounts.
In short:
- Generalized image does not store any user accounts, it deletes that kind of data. To generalize a VM, you will have to run sysprep in it, and post that you can capture the VM.
- Specialized images are created when we directly capture a VM from Portal without running sysprep on it. Hence, specialized images retains the user accounts.
Hope this clears your query!
----------------
Please accept as answer
and upvote
if the answer was helpful.