OPS705 Lab 2 (2207)

From CDOT Wiki
Revision as of 01:00, 29 July 2020 by Chris.johnson (talk | contribs) (Part 1: Creating A Windows VM From An Image)
Jump to: navigation, search

LAB PREPARATION

Purpose / Objectives of Lab 2

In this lab, you will learn how to create a Windows and Linux VM using a pre-built image, how to remotely connect to each, and basic management of these VMs from the Azure Dashboard. These two VMs will be used extensively in your later labs. This lab assumes you have completed Lab 1 successfully. Refer back to that lab for reminders on the basics of the Azure Dashboard interface.

While you are working through this lab, it is highly recommended that you write notes down in your OPS705 Lab Logbook. These are general notes and commands to help you remember how to do this lab. Each lab has its own page in the logbook. You may use this logbook during all quizzes, so fill it out accordingly!

If you encounter technical issues, please contact your professor via e-mail or in your section's Microsoft Teams group.

Minimum Requirements

Before beginning, you must have:

  1. Successfully completed Lab 1
  2. Your Seneca Azure login credentials
  3. Your OPS705 Lab Logbook
  4. An Internet connection is helpful (If you don't have one... How are you here?)

INVESTIGATION 1: Managing a Windows Server 2016 VM in Azure

In this investigation, you'll create, configure, and manage a Windows Server 2016 Virtual Machine using Microsoft Azure. You'll also login to the VM remotely, using Microsoft's Remote Desktop Protocol to share its desktop.

Part 1: Creating A Windows VM From An Image

To create your Windows Server 2016 Virtual machine, perform the following steps:

  1. Login to the Microsoft Azure Portal.
  2. Click on the menu bar icon, and select All Services. (Refer to Figure 1.)
  3. In the Search All text box, type Virtual Machines. (Refer to Figure 2.)
  4. Click on the Virtual machines result.
  5. Once inside the Virtual Machines page, click the + Add v button.
  6. Select Virtual machine from the drop-down menu.
  7. In the new Create a new virtual machine page, make sure you're in the Basics tab.
  8. In the Subscription drop-down menu, select OPS705.2207.
  9. In the Resource group drop-down menu, select OPS705.2207.NAA. Do not create a new group!
  10. Under Virtual machine name, use yourSenecaUsername-winserv. For example: cjohnson30-winserv
  11. Leave Region and Availability options at their defaults.
  12. In the Image drop-down menu, choose 'Windows Server 2016 Datacenter
  13. Azure Spot instance: No
  14. Under Size: Standard_DS1_v2 - 1 vcpus, 3.5 GiB memory
  15. In the Username field, use your Seneca username.
  16. In the Password field, choose a good password, then confirm it in the next field. Do not use your Seneca e-mail password!
  17. For Public inbound ports, select Allow selected ports.
  18. In the Select inbound ports drop-down menu, make sure the RDP (3389) item is selected.
  19. Under Already have a Windows Server license?, select No.
  20. At the top of the page, select the Tags tab.
  21. In the Name field, insert SenecaID.
  22. In the Value field, insert your Seneca username.
  23. Click on the Review + create tab.
  24. Review your settings against the directions in this section.
  25. When ready, click the Create button at the bottom left of the screen.

Part 2: Accessing Your Windows VM Remotely Using RDP

Part 3: Shutting Down Windows Safely

INVESTIGATION 2: Managing a CentOS Linux VM in Azure

In this investigation, we'll create, configure, and manage a CentOS Minimal Virtual Machine using Microsoft Azure. This is a command line only OS, so you'll be using SSH to remotely connect to the VM and issue basic commands. This VM will be used extensively in Lab 3.

Part 1: Creating A CentOS VM From An Image

Part 2: Accessing Your CentOS VM Remotely Using SSH

Part 3: Shutting Down CentOS Safely

INVESTIGATION 3: Managing Your VMs Directly Through Azure

In this quick investigation, we'll walk through how to directly manage virtual machines from the Azure Dashboard interface on a basic level. This is useful for starting up VMs, shutting them down when unresponsive, and deleting them when you're finished. (Warning: Do not delete either VM created in this lab!)

Part 1: Powering On / Restarting A Virtual Machine

Part 2: Powering Off A Virtual Machine

Part 3: Deleting A Virtual Machine

Part 4: A Note About Resource Usage

Lab Submission

Once complete, you'll submit your work through your section's Blackboard course. See below for what is required.

Lab Check Script

Online Submission Requirements