Working with Compute Engine Windows Instances

45 minutes
  • 5 Learning Objectives

About this Hands-on Lab

Compute Engine VM instances can utilize a wide range of boot disks; Google Cloud currently offers well over 50 disk images to choose from. Cloud computing professionals must be adept in spinning up a variety of operating systems, including Windows server. In this hands-on lab, you’ll experience the creation of a Windows-based Compute Engine VM instance, set up an IIS server, and push your first web page live to confirm the server’s operation.

Learning Objectives

Successfully complete this lab by achieving the following learning objectives:

Create a Compute Engine VM instance.
  1. From the main navigation, choose Compute Engine > VMs.
  2. In the VM Instances area, click Create.
  3. With New VM instance chosen from the options on the left, configure your instance:
    • In the name field, provide a relevant name using hyphens, like la-windows-1.
    • Keep the suggested Region and Zone.
    • Use Series: N1 and Machine type: n1-standard-1
    • In the Boot Disk section, click Change and select Windows Server 2019 Datacenter, Server with Desktop Experience from the list; click Select.
    • Under Firewall, choose the Allow HTTP traffic option.
  4. Click Create.
Set Windows password.
  1. From the RDP options, click Set Windows password.
  2. In the dialog, confirm your username is correct and click Set.
  3. Copy the supplied password and click Close.
Launch RDP window.
  1. Launch the RDP window by using one of the following methods:
    • If you’re on a Windows system, click RDP.
    • If you’re on a Mac using Chrome in a standard window, first install the Chrome RDP extension, and then click RDP.
    • If you’re on a Mac using another browser or Incognito window, from the App Store, download and install the latest version of the Microsoft Remote Desktop app. Then, choose Download the RDP file from the RDP options and open the file.
Install IIS.
  1. From the Windows Start menu, right-click on Windows Powershell and choose Run as administrator.

  2. In the PowerShell window, enter the following commands to set install IIS, starting with:

    import-module servermanager
  3. Set up the web server:

    add-windowsfeature web-server -includeallsubfeature
  4. Create the index.html page:

    echo '<!doctype html><html><body><h1>Greetings from Linux Academy!</h1></body></html>' > C:inetpubwwwrootindex.html
Test your page.
  1. From the Compute Engine VM page, click the External link for your Windows VM instance.
  2. Review the page in your browser.

Additional Resources

You’ve been tasked with getting a Windows web server up and running on a Compute Engine instance. To accomplish this, you’ll need to create the appropriate instance, use RDP to set up necessary software, and create a home page to test the server.

You’ll need to accomplish the following steps to complete your task:

  1. Create a Compute Engine VM instance. (Use Series: N1 with the Machine type*: n1-standard-1.
  2. Set your Windows password.
  3. Access RDP.
  4. Install the required IIS components.
  5. Create an index.html page.
  6. View the final page in a browser.

What are Hands-on Labs

Hands-on Labs are real environments created by industry experts to help you learn. These environments help you gain knowledge and experience, practice without compromising your system, test without risk, destroy without fear, and let you learn from your mistakes. Hands-on Labs: practice your skills before delivering in the real world.

Sign In
Welcome Back!

Psst…this one if you’ve been moved to ACG!

Get Started
Who’s going to be learning?