VM-Login issue

Shivkumar 1 Reputation point
2022-06-06T07:35:37.8+00:00

Hi Team,

Good day.

I m shivkumar here , just i started my journry with azue study , when we do the practical Senirio ,

  1. we have created RG
  2. We have created VM with Username and Password.
  3. We have saved some files and captured VM
  4. we see the that captured image and we have deleted the VM machine .
  5. then again we started create new VM with the help of Captured image . here we have given diffrent username and password.
  6. We have started log in VM so its not accepting user name and password .
  7. but its accepting username and password from the point number 2. initial username and password.

Note: If its suppose to user name & password Intially used one. then y its allowing us to enter user name and password. its suppose grade out filling the user name and password.

If i m wrong Kindly share the SOP.

Thanks
Shivkumar

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
9,014 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. srbhatta-MSFT 8,586 Reputation points Microsoft Employee
    2022-06-06T08:33:35.117+00:00

    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.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.