Skip to content

Latest commit

 

History

History
104 lines (70 loc) · 3.25 KB

day.2.getting.organized.windows.md

File metadata and controls

104 lines (70 loc) · 3.25 KB

Day 2 - Getting Organized (Windows)

In the previous article Day 1 - Getting Organized (Linux) we covered how to install all of your tools on a workstation in an automated way so that if you ever had to rebuild the workstation, you could either run a simple all-in-one script or copy/paste a few lines of code and be up and running. Today we'll be doing the same for a workstation running Windows 10.

Below are a list of tools that will be used throughout this series on Windows.

  • Chocolatey
  • Azure CLI
  • PowerShell Core
  • Visual Studio Code
  • Docker

Note: We'll be covering and using several other tools throughout the series, this is just a start.



SPONSOR: Need to stop and start your development VMs on a schedule? The Azure Resource Scheduler let's you schedule up to 10 Azure VMs for FREE! Learn more HERE


Chocolatey

In the setup of the Linux Host (Ubuntu 18.04) we used a combination of source installations and package management. For Windows 10, we are going to use Chocolatey for installing our starting packages.

Open up a Powershell Prompt as Administrator and run the following command to install Chocolatey.

Note: It's recommended to verify the contents of the install.ps1 script from Chocolatey before running this command.

Set-ExecutionPolicy Bypass -Scope Process -Force; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))

Azure CLI

Run the following command to install the Azure CLI using Chocolatey.

choco install azure-cli -y

PowerShell Core

Run the following command to to install PowerShell Core using Chocolatey.

choco install powershell-core -y

Visual Studio Code

Run the following command to to install Visual Studio Code using Chocolatey.

choco install vscode -y

Docker

Run the following command to to install Docker using Chocolatey.

choco install docker-desktop -y

All-in-one Install

If you need to reinstall everything in one shot in the future, run the command below. It's essentially a simple script with no error checking or idempotence, but it'll work if it's the first time you are setting up a new workstation.

Set-ExecutionPolicy Bypass `
-Scope Process `
-Force; `
iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1')) ; `
choco install azure-cli powershell-core vscode docker-desktop googlechrome openssl git -y

At the bottom of the PowerShell Prompt after running the command above, you should see the following output.

Chocolatey installed 10/10 packages.
 See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).

Installed:
 - kb2919355 v1.0.20160915
 - chocolatey-core.extension v1.3.3
 - kb2999226 v1.0.20181019
 - azure-cli v2.0.72
 - docker-desktop v2.1.0.2
 - kb2919442 v1.0.20160915
 - vscode v1.38.0
 - powershell-core v6.2.2
 - dotnet4.5.2 v4.5.2.20140902
 - chocolatey-windowsupdate.extension v1.0.4