Forum Discussion
experi18
Oct 05, 2023Brass Contributor
Azure CLI to join a domain
Hi, wich parameters should I add into my script to create Azure VM (Via CLI) in order to automatically join my domain?
experi18
Apr 24, 2024Brass Contributor
Hi Kenneth, thanks a lot for your time and help on this. Actually, I create the VM with the command "az vm create -g xxx -n xxx"
Do you think this will work the same?
I'll take a look at the link you provided to me to better understand, but that's basically what I need.
And yes, I would use a service account with the password on a KeyVault.
I have another question for you (if I may)
Is there a way as well to as soon as the machine is created / joined into the domain, it is moved to the correct OU (organizational unit) as well?
Do you think this will work the same?
I'll take a look at the link you provided to me to better understand, but that's basically what I need.
And yes, I would use a service account with the password on a KeyVault.
I have another question for you (if I may)
Is there a way as well to as soon as the machine is created / joined into the domain, it is moved to the correct OU (organizational unit) as well?