ARM-Template Deploy Azure VM with Domain-Join to on-premise

Sam Val 0 Reputation points
2023-02-28T13:56:30.0166667+00:00
Hello everyone,

I hope someone can help me with this as I've been struggling with this problem for quite some time now. I created a Microsoft case for this and after months of waiting, the Microsoft engineer was unable to come up with a logical solution. And I know it's possible, so I hope there are still experts here who can hopefully help me.

I know how to read an ARM template or Bicep, and let's keep ARM templates for the rollout I'm working on. I'm fairly new to this world, so I find it difficult to put together a complete ARM template.

What I would like is an ARM template that can easily create an Azure Windows 10 Pro vm with the latest image version, so that it is always up-to-date. This must be in an existing network and subnet without a public IP address. And in the same template he would eventually have to perform the domain-join to the on-premise domain via JsonADDomainExtension. I've already done a lot of tests, but I'm not getting any further.

Microsoft comes up with all kinds of weird scripts that no longer work, I managed to do it myself script-wise via PowerShell, but I just want it neat via an ARM template. And I really hope someone can help me with this.

FYI, I can join existing VMs via:
https://learn.microsoft.com/en-us/samples/azure/azure-quickstart-templates/vm-domain-join-existing/

But it's really about new VMs that have to be joined in the same ARM template in an automatic process.
Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
9,013 questions
{count} votes

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.