Skip to content

Latest commit

 

History

History
64 lines (54 loc) · 3.08 KB

01 AutomatedLab.md

File metadata and controls

64 lines (54 loc) · 3.08 KB

PSConf EU 2018 - Lab Deployment Guide

The following guide explains how to setup the full lab environment containing a DSC Pull Server, SQL server as well as Team Foundation Server. You have two options to follow along:

  • Use Hyper-V locally or Azure
    Best experience if you want to follow along with the entire lab
  • git clone https://github.com/AutomatedLab/DscWorkshop
    If you cannot use Azure and don't have the power to run the entire lab

DSC with TFS

The full lab contains everything featured in Labs 01 and 02, which are not part of this workshop but can be used to test on your own. Additionally, it contains a TFS 2018 instance that powers our release pipeline as well as ProGet as the provider of a nuget feed.

Prerequisites

Deployment

Follow these simple steps to create your own lab infrastructure for the workshop

  1. Open Windows PowerShell, the ISE or VSCode as administrator
  2. Create a new directory to contain the code and move there
  3. Call git clone https://github.com/AutomatedLab/DscWorkshop inside the folder from step 2
  4. Install-Module AutomatedLab -AllowClobber -Force
  5. Azure only: Install-Module Az -Force
  6. New-LabSourcesFolder to download and create the proper folder structure
  7. Copy your ISOs to the folder ISOs inside Get-LabSourcesLocation
  8. Azure only: Connect-AzAccount
  9. Azure only: New-LabAzureLabSourcesStorage -Location 'West Europe'
  10. Azure only: Upload your TFS iso with Sync-LabAzureLabSources -DoNotSkipOsIsos -Filter *team_foundation*2018*
  11. Execute & '.\Lab\HyperV\03.10 Full Lab with DSC and TFS' on Hyper-V or & '.\Lab\Azure\03 Full Lab with DSC and TFS Azure.ps1' if you prefer to use Azure
  12. After 1-2h the lab is fully deployed and you can follow the workshop

Machines

Name Role RAM
DSCDC01 RootDC 0.5GB
DSCCASQL01 CaRoot,SQLServer2017 3GB
DSCPull01 DSCPullServer,TfsBuildWorker,WebServer 2GB
DSCSO01 AzureDevops 2020 4GB
DSCHost01 Hyper-V Host, AzureDevOps Build Worker 8GB
DSCFile01 FileServer 1GB
DSCWeb01 WebServer 1GB
DSCFile02 FileServer 1GB
DSCWeb02 WebServer 1GB
DSCFile03 FileServer 1GB
DSCWeb03 WebServer 1GB