IT-Camp Azure Labs–Appendix Extra Labs–Step-By-Step

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.

  1. 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.
  2. When prompted, log on as sysadmin using Passw0rd! as the password. Click yes.
  3. Open a web browser on DC01 to Browse to
  4. Click on the text then press CTRL-A to select all text – Then Click CTRL-C to copy it to your clipboard.
  5. NOTE: you can just click OK to any security warnings you get
  6. 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.
  7. From PowerShell ISE menu select FileNew – Click on line 1 of Untitled1.ps1 and then press CTRL-V to paste in the script.
  8. Press CTRL-A to select all text then press F8 to run the script. DC01 will automatically restart to finish installing AD
  9. 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.

  1. 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
  2. Scroll down to Command-line tools section and under Windows PowerShell, click Install
  3. When prompted click run and follow the installation prompts
  4. After installation is complete, In your Start Screen or Start Menu locate Microsoft Azure PowerShell and start it.
  5. You will now need to connect Microsoft Azure PowerShell to your Azure subscription. In your PowerShell session type the following command:
    Press enter
  6. Enter your Azure Subscriber ID and Password.
    NOTE: If you do not know your SubscriberID: Login to the Azure portal 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.
  7. You are now ready to use Azure Cmdlets with your subscription.


Revision History


  • Lab 1 Login to Azure portal: Fix URL
  • 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