Why can't I login to a VM with local admin account after moving regions via Azure Resource Mover?

Marcus 20 Reputation points
2024-11-13T13:39:22.96+00:00

I have used the Azure resource mover to successfully move a VM from one region to another. I did have a couple of resources that had dependencies regarding Zones. I did change the destination resource to Not Applicable which resolved that. (mentioning this, but don't believe it's the cause.)

I do see my resource group and all resources in the destination region. After copying the RDP file and attempting to login, it is asking for my M365 credentials. I cannot use the local Admin user and password that were used on the source VM to connect.

I'm certain I read that all this information gets moved with the VM to the new region.

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
9,064 questions
Azure Resource Mover
Azure Resource Mover
An Azure service used for moving multiple resources between Azure regions.
288 questions
0 comments No comments
{count} votes

Accepted answer
  1. Nikhil Duserla 8,100 Reputation points Microsoft External Staff Moderator
    2024-11-13T19:36:45.9866667+00:00

    Hi @Marcus,

    Welcome to the Microsoft Q&A Platform! Thank you for asking your question here.

    It looks that you've successfully moved a VM to a new region using Azure Resource Mover, however you're facing login issues because it's asking for Microsoft 365 credentials instead of the local admin credentials.

    If you are unable to log in with the local admin credentials, you can reset the local admin password through the Azure portal>>Virtual Machine>>In the left plane-Help>>Reset Password>>Set New password>>Update.

    Ensure that the VM is running and not in a stopped or deallocated state and the NSG rules associated with the VM allow RDP port numbers.

    Try manually RDP with public IP of the VM and enter local admin username and password.

    Review the Azure Activity Log and the VM's event logs for any errors or warnings that could offer additional insights into the login issues.

    If you have any further queries, do let us know.

    If the answer has been helpful, we appreciate hearing from you and would love to help others who may have the same question. Accepting answers helps increase visibility of this question for other members of the Microsoft Q&A community.

    User's image

    1 person found this answer helpful.

1 additional answer

Sort by: Most helpful
  1. Q&A Assist
    2024-11-13T13:39:22.98+00:00
    AI generated content. This question contains an answer created with AI from Q&A Assist. Learn more

    When moving a VM using Azure Resource Mover, it's important to note that while the VM and its associated resources are transferred, certain configurations and settings may not carry over as expected. In your case, the inability to log in with the local admin account after the move could be due to several factors:

    1. Managed Identity: The managed identity used during the move may not have the necessary permissions, which can affect access to the VM. Ensure that the managed identity has the appropriate roles assigned.
    2. Local Admin Credentials: Sometimes, the local admin credentials may not be retained or may require reconfiguration after the move. It's advisable to check if the local admin account was properly set up in the new region.
    3. Backup and Recovery Services: If the VM was backed up using Azure Backup, the backup data does not move with the VM. You may need to reconfigure backup settings in the new region.
    4. Network Configuration: Ensure that the network settings, such as NSGs and public IP addresses, are correctly configured in the new region, as these can affect access to the VM.

    If you continue to face issues, consider resetting the local admin password through the Azure portal or using the Azure Serial Console for troubleshooting.


    References:

    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.