VMs can't register to azure ad. ERROR CAA20002

Eudelio Benitez Gonzalez 20 Reputation points
2023-06-13T14:50:34.8233333+00:00

Hello,

I'm having problems with duplicate deviceid.

Following I explain my scenario.

I created a VM image version from a generalized machine. That machine has the ad login extension installed and Enable the Azure AD login option enabled.

From the version I create vms but I can't see the machines in the azure ad devices, so I can't enter using my AD credentials, more over, all the machines have the same device id.

I need to understand how a VM is register in the azure AD and why all the machines have the same device id.

Getting the error caa20002 when connect to the machine

Thanks in advance.

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
9,015 questions
Microsoft Security | Microsoft Entra | Microsoft Entra ID
Microsoft Security | Intune | Other
{count} votes

Accepted answer
  1. Givary-MSFT 35,621 Reputation points Microsoft Employee Moderator
    2023-06-16T04:09:34.36+00:00

    @Eudelio Benitez Gonzalez I'm glad that you were able to resolve your issue and thank you for posting your solution so that others experiencing the same thing can easily reference this! Since the Microsoft Q&A community has a policy that "The question author cannot accept their own answer. They can only accept answers by others ", I'll repost your solution in case you'd like to "Accept " the answer.

    Issue:

    Following I explain my scenario.

    I created a VM image version from a generalized machine. That machine has the ad login extension installed and Enable the Azure AD login option enabled.

    From the version I create vms but I can't see the machines in the azure ad devices, so I can't enter using my AD credentials, more over, all the machines have the same device id.

    I need to understand how a VM is register in the azure AD and why all the machines have the same device id.

    Getting the error caa20002 when connect to the machine

    Solution:

    Resolved by @Eudelio Benitez Gonzalez below steps followed

    User's image

    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Crystal-MSFT 53,981 Reputation points Microsoft External Staff
    2023-06-14T01:27:24.8566667+00:00

    @Eudelio Benitez Gonzalez, Thanks for posting in Q&A. Based as I know, when the virtual machines use a pre-existing image that was already registered with Azure AD, this can cause issues with duplicate device IDs. If you're relying on a Virtual Machine (VM) snapshot to create more VMs, make sure that snapshot isn't from a VM that is already registered with Azure AD.

    Hope the above information can help.


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    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.