Using Chef Solo on Windows for Azure

Beginner

47 students completed the lab in ~48m

Total available time: 1h:20m

Be the first to rate this lab!

Lab Overview

Chef is a popular configuration management tool. It has built-in support for Windows and a thriving community providing convenient cookbooks for managing Windows configurations. This Lab will get you up and running with Chef Solo and help you configure a local Windows host on Azure using Chef. You will then explore Chef cookbook dependencies and the Chocolatey Windows package manager. Finally, you will configure the host to serve an Internet Information Services (IIS) website.

Lab Objectives

Upon completion of this lab you will be able to:

  • Install and set up Chef Solo on an Azure Windows VM
  • Run Chef recipes with Windows-specific resources
  • Use guards to enforce Chef resource idempotence
  • Manage Chef cookbook dependencies with Berkshelf
  • Configure Microsoft's IIS web server with Chef Solo 

Lab Prerequisites

You should be familiar with the following:

  • Chef concepts
  • Working at the command line
  • Windows and PowerShell experience are beneficial, but not required

Lab Environment

Before completing the lab instructions, the environment will look as follows:

 

After completing the lab instructions, the environment should look similar to:

 

Follow these steps to learn by building helpful cloud resources

Logging into the Microsoft Azure portal

Begin the Lab by logging into the Microsoft Azure portal

Connecting to the Virtual Machine (RDP)

Connect to the Windows virtual machine using a Remote Desktop client

Setting Up Chef Solo on Windows

Install and set up the initial configuration before using Chef Solo

Running Your First Chef Solo Recipes on Windows

Run a few recipes to get familiar with Chef Solo on Windows

Preserving Chef Resource Idempotence with Guards

Use guards to preserve resource idempotence

Managing Chef Cookbook Dependencies with Berkshelf

Use Berkshelf to manage Chef dependencies for you

Configuring Microsoft's IIS Web Server with Chef Solo

Configure Microsoft's popular web server with Chef Solo