Gist 759f990ca4ab64414550b681a9f66f0e
✓ Published0🌍 Public
PPeleke
Last edited Feb 19, 2020
Created on Feb 19, 2020
This example demonstrates how to automate the setup of a Linux virtual machine for a scavenger-hunt challenge using PowerShell and Vagrant. It shows the complete provisioning workflow, starting with adding a Hyper-V provider box, creating a destination directory, downloading a Vagrantfile from a GitHub gist via `Invoke-WebRequest`, and finally running `vagrant up` to launch the machine. The code relies on Vagrant’s Hyper-V provider, the `vagrant box add` command, and PowerShell’s file and web-request cmdlets. The data source is the remote Vagrantfile hosted on GitHub, fetched over HTTP.
AI-generated description