Assistance with creating a script for rolling out Server 2019

%3CLINGO-SUB%20id%3D%22lingo-sub-2565021%22%20slang%3D%22en-US%22%3EAssistance%20with%20creating%20a%20script%20for%20rolling%20out%20Server%202019%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2565021%22%20slang%3D%22en-US%22%3E%3CP%3EGood%20morning%20all%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20wonder%20if%20you%20could%20help%20me.%20I%20am%20busy%20looking%20at%20automation%20within%20our%20Azure%20environment%2C%20and%20have%20started%20with%20the%20%22easiest%22%20option...automate%20the%20deployment%20of%20Windows%20Server%202019%20and%20add%20to%20the%20existing%20domain.%3C%2FP%3E%3CP%3EI%20don't%20have%20the%20experience%20in%20automation%2C%20so%20I%20am%20getting%20that%20out%20the%20way.%3C%2FP%3E%3CP%3EI%20have%20attached%20a%20script%20I%20downloaded%20from%20GitHub%20and%20I%20am%20busy%20going%20through%20it%2C%20but%20would%20like%20to%20know%20if%20it%20will%20do%20the%20following%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E1.%20Deploy%20a%20new%20VM%20to%20our%20Azure%20tenant%20running%20Windows%20Server%202019%20(size%2C%20storage%20etc%20I%20can%20see%20is%20taken%20care%20of).%3C%2FP%3E%3CP%3E2.%20Allow%20the%20joining%20of%20this%20VM%20to%20the%20domain%20(that%20part%20of%20the%20script%20isn't%20in%20here%2C%20but%20I%20would%20need%20to%20know%20where%20to%20put%20it%20which%20is%20where%20I%20am%20stuck).%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EFrom%20reading%20a%20ton%20of%20documentation%2C%20I%20need%20an%20Automation%20account%20on%20Azure%20to%20accomplish%20this.%20Is%20there%20anything%20else%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20will%20be%20going%20through%20Microsoft%20Learn%20to%20see%20if%20there%20are%20any%20courses%20on%20this%20so%20hopefully%20will%20have%20more%20theory%20behind%20me%20for%20future%20reference.%3C%2FP%3E%3CP%3E%3CBR%20%2F%3EThanks!%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2565021%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EVirtual%20Machine%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2567824%22%20slang%3D%22en-US%22%3ERe%3A%20Assistance%20with%20creating%20a%20script%20for%20rolling%20out%20Server%202019%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2567824%22%20slang%3D%22en-US%22%3EJoin%20the%20VM%20to%20the%20domain%3A%20%3CA%20href%3D%22https%3A%2F%2Fazure.microsoft.com%2Fen-us%2Fresources%2Ftemplates%2Fvm-domain-join%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fazure.microsoft.com%2Fen-us%2Fresources%2Ftemplates%2Fvm-domain-join%2F%3C%2FA%3E%3CBR%20%2F%3E%3CBR%20%2F%3EThese%20Quick%20Start%20templates%20are%20very%20handy%20to%20look%20through%20as%20well%3A%20%3CA%20href%3D%22https%3A%2F%2Fazure.microsoft.com%2Fen-us%2Fresources%2Ftemplates%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fazure.microsoft.com%2Fen-us%2Fresources%2Ftemplates%2F%3C%2FA%3E%3C%2FLINGO-BODY%3E
New Contributor

Good morning all,

 

I wonder if you could help me. I am busy looking at automation within our Azure environment, and have started with the "easiest" option...automate the deployment of Windows Server 2019 and add to the existing domain.

I don't have the experience in automation, so I am getting that out the way.

I have attached a script I downloaded from GitHub and I am busy going through it, but would like to know if it will do the following:

 

1. Deploy a new VM to our Azure tenant running Windows Server 2019 (size, storage etc I can see is taken care of).

2. Allow the joining of this VM to the domain (that part of the script isn't in here, but I would need to know where to put it which is where I am stuck).

 

From reading a ton of documentation, I need an Automation account on Azure to accomplish this. Is there anything else?

 

I will be going through Microsoft Learn to see if there are any courses on this so hopefully will have more theory behind me for future reference.


Thanks!

 

3 Replies
Thanks Luke, and best to use a Runbook for this?
Depends on how you want to be able to run it, you could use PowerShell to kick off the ARM template manually, or deploy it in Azure DevOps, or as a Custom Template through the Azure Portal - https://docs.microsoft.com/en-us/azure/azure-resource-manager/templates/quickstart-create-templates-...