How do i add a azure linux vm to azure add domain using terraform?

Raviteja Kotha 20 Reputation points
2023-06-09T04:15:48.46+00:00

Hello All,

I just had a requirement of joining a azure linux vm to azure ad domain join using terraform.

Can someone please help me here to achieve this?

Windows for business Windows Client for IT Pros Directory services Active Directory
Microsoft Security Active Directory Federation Services
Microsoft Security Microsoft Entra Microsoft Entra ID
Microsoft Security Microsoft Entra Other
{count} votes

1 answer

Sort by: Most helpful
  1. Dillon Silzer 57,826 Reputation points Volunteer Moderator
    2023-06-09T04:22:15.73+00:00

    Hello Raviteja,

    From a similar post found at https://learn.microsoft.com/en-us/answers/questions/1006937/terraform-script-to-enable-azure-ad-login-feature

    AAD login is enabled via VM extension. You can find the details about the extension via the following CLI command. The name for the Windows extension is AADLoginForWindows and for Linux it is AADLoginForLinux. Deploying extension via terraform is here.


    If this is helpful please accept answer.

    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.