IT-Camp Azure Labs
Lab Home Page… Includes DOCx and PPTx
Description and Live links to Series
Install Active Directory on DC01 using PowerShell (from inside the VM)
In this task, you will use Windows PowerShell to install and configure Active Directory. To perform this task, you will use Windows PowerShell ISE in administrator mode.
Perform the following tasks on your DC01 Server.
- In the Azure management portal, click VIRTUAL MACHINES, click DC01, and then click Dashboard. On the bottom bar, click CONNECT, and then click Open. Click Connect.
- When prompted, log on as sysadmin using Passw0rd! as the password. Click yes.
- Open a web browser on DC01 to Browse to https://itcmaster.blob.core.windows.net/fy15q3/ADProvisionScriptv2.txt
- Click on the text then press CTRL-A to select all text – Then Click CTRL-C to copy it to your clipboard.
- NOTE: you can just click OK to any security warnings you get
- On DC01, Click Start – type Windows PowerShell ISE, Right click on “Windows PowerShell ISE and select Run as administrator. NOTE: you must run elevated! Select Yes on the User Access Control Popup.
- From PowerShell ISE menu select File – New – Click on line 1 of Untitled1.ps1 and then press CTRL-V to paste in the script.
- Press CTRL-A to select all text then press F8 to run the script. DC01 will automatically restart to finish installing AD
- After Restart, Login to DC01 to confirm AD and DNS are running on DC01 (Server Manager should list Active Directory) From Tools, you should be able to open DNS and AD Users and Computers)
Connect your PowerShell to Azure
Before you can manage virtual machines from PowerShell on your local administration station you need to download the tools.
- In the Azure portal; click Azure the arrow next to Azure in the upper right corner of the portal then click downloads. You can also get to download directly by navigating to http://azure.microsoft.com/en-us/downloads/
- Scroll down to Command-line tools section and under Windows PowerShell, click Install
- When prompted click run and follow the installation prompts
- After installation is complete, In your Start Screen or Start Menu locate Microsoft Azure PowerShell and start it.
- You will now need to connect Microsoft Azure PowerShell to your Azure subscription. In your PowerShell session type the following command:
- Enter your Azure Subscriber ID and Password.
NOTE: If you do not know your SubscriberID: Login to the Azure portal http://manage.windowsazure.com click on your email address in the upper right corner, Click View My Bill. This will list all subscriptions for the current logged in user. Click on the subscription you want to use, then scroll down so see your Subscription ID listed on the right.
- You are now ready to use Azure Cmdlets with your subscription.
- Lab 1 Login to Azure portal: Fix URL http://Manage.WindowsAzure.com
- Lab 2 Deploy a Domain Controller in Microsoft Azure – Add Step 17 Note
- Lab 2 Install Active Directory on DC01 using PowerShell (from inside the VM) – Move to Appendix
- Lab 3 Login to Azure portal: Fix URL http://Manage.WindowsAzure.com