question

AsafHason-2394 avatar image
0 Votes"
AsafHason-2394 asked AsafHason-2394 answered

Auto join VMSS to on-premise active directory

We have S2S VPN to Azure and DC on Azure
Manual adding VM's to on-premise domain is OK

But I need to add VMSS VM's to on-premise AD automatically
I already try JsonADDomainExtension extension but it's not working.
I think it's only for Azure AD, not local AD

Any other options?

windows-active-directoryazure-virtual-machines-scale-setazure-virtual-machines-extension
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

AsafHason-2394 avatar image
0 Votes"
AsafHason-2394 answered

Problem solved
It's working now with JsonADDomainExtension

There was a problem with the image
Creating new image solve the problem

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Dev073 avatar image
0 Votes"
Dev073 answered Dev073 commented

Hi Asaf, thanks for the post.

do you mean add to on-prem AD as domain join during build process of VM or after creating the VM.

· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Never mind
Can be on build or after creating

0 Votes 0 ·

Hi Asaf,

I have used Azure automation account and DSC in the past for AD domain join automation. Some reference below.

https://gordon.byers.me/azure/azure-arm-template-domain-join-automation/

This might work too for traditional AD . Give a try. I haven't tried this method.
https://docs.microsoft.com/en-us/powershell/module/az.compute/set-azvmaddomainextension?view=azps-6.3.0

Additionally you can also use custom PS scripts for already built VMs.

0 Votes 0 ·