AAD Login Extension AzureADJoinned: NO

TheQuestion 21 Reputation points
2022-08-10T00:11:51.13+00:00

I'm just trying to use the AAD login for windows extension on a pre-existing VM which I enabled after pre-existing through azure cli.

Which the extension has provisioned sucessfully.

The problem i'm facing is that dsregcmd /status is showing that my VM still isn't AzureADJoined.

from CommandExecution logs I can see that DSrMDAzureHelper fails when trying to reach "169.254.169.254/..../2018-02-01"

From my understanding AAD login for windows should just join a subscriptions Azure AD once the extension is enabled.

Anyone know what could causing this issue?

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
7,196 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
19,664 questions
0 comments No comments
{count} votes

Accepted answer
  1. Cristian SPIRIDON 4,471 Reputation points
    2022-08-10T04:39:02.687+00:00

    You should have enabled Azure AD login when the VM was created.
    It might be possible to get away with this by enabling System Managed Identity in the VM. You need to do that before you install the AAD extension.

    https://learn.microsoft.com/en-us/azure/active-directory/devices/howto-vm-sign-in-azure-ad-windows

    Hope this helps!


0 additional answers

Sort by: Most helpful