azure-virtual-machine

How can i configure AAD for an existing VM in Azure?


I have a VM in Azure that i created but didnt configure AAD. Where in the settings can i select the check box to make it AAD enabled ?

I have tried to look in settings and configuration to find the check box . But it only appears when you create a new VM ?


Solution

  • How can i configure AAD for an existing VM in Azure

    To enable Azure Active Directory for an existing virtual machine, you must first enable the System Managed Identity on the VM.

    enter image description here

    After enabling the identity, install the AADLoginForWindows extension. If the extension is already installed, uninstall it first.

    enter image description here

    Make sure to check the extension's status after installation.

    enter image description here

    The VM has been successfully joined to Azure AD. You can verify the result in the portal by navigating to Entra AD > Devices.

    enter image description here

    You can also check the Azure AD join status on the VM by running the dsregcmd /status

    enter image description here