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.
8,988 questions
Microsoft Intune
Microsoft Intune
A Microsoft cloud-based management solution that offers mobile device management, mobile application management, and PC management capabilities.
5,569 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
25,048 questions
{count} votes

Accepted answer
  1. Givary-MSFT 35,606 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,971 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.