Compartilhar via


Lab Appendix (Jan-June 2015 Azure Hybrid Cloud IT Camps)

This post contains the appendix information for the hands-on-labs created for our current set of US DX IT Camps.

The complete set of labs are listed here:

Appendix

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 on DC01. To perform this task, you will use Windows PowerShell ISE as an Administrator.

To connect an RDP session to your DC01virtual machine:

  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.

From within your RDP session to DC01:

  1. Open a web browser on DC01 to Browse to https://itcmaster.blob.core.windows.net/fy15q3/ADProvisionScriptv2.txt
    NOTE: The above URL is Case Sensitive!
  2. 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
  3. On DC01, Click Start – type Windows PowerShell ISE, Right click on “Windows PowerShell ISE” and select Run as administrator.
    NOTE: you must run this elevated! Select Yes on the User Access Control Popup.
  4. From PowerShell ISE menu select FileNew – Click on line 1 of Untitled1.ps1 and then press CTRL-V to paste in the script.
  5. Press CTRL-A to select all of the script and then press F8 to run the selected script.
    DC01 will automatically restart to finish installing AD.
    BE PATIENT! This process takes several minutes.
  6. After the restart, reconnect an RDP session to DC01 and confirm AD and DNS are running on DC01 (Server Manager should list Active Directory tools)
  7. From Server Manager / Tools, you should be able to open DNS and other Active Directory tools such as 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.

clip_image002

  1. In your Azure portal; click the arrow next to Azure in the upper left corner of the portal, and select downloads. You can also get to download directly by navigating to https://azure.microsoft.com/en-us/downloads/
  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 launch it.
  5. You will now need to connect Microsoft Azure PowerShell to your Azure subscription. In your PowerShell session type the following command:
    1. Add-AzureAccount  (Press ENTER)
  6. Enter your Azure Subscriber ID and Password.
    NOTE: If you do not know your SubscriberID: Login to the Azure portal https://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.
  7. You are now ready to use Azure Cmdlets against your subscription.