Milestone 5 - 5huckle/OFFICIALTECHJOURNAL GitHub Wiki

Intro

The purpose of this milestone is going to be creating a powershell module that is capable of executing something.

I followed this guide for downloading and setting up a license key.

Powershell Code

Deliverable Video

  • Requirements for Milestone 5

    • license vcenter and vsphere/esxi using these instructions
    • Install vscode on xubuntu-wan as well as the powershell extension
    • Build a module skeleton as described here
    • Implement or improve upon the functions demonstrated
    • Using what you know about PowerCLI now add functions to your 480Utils.psm1 module that allow you to do the following:
      • Create a linked or full clone

Note, a full clone should be made from the "Base Snapshot" (which implies you create a temporary linked clone). This is ideal for "live systems" that have a base snapshot in them like Server 2019 or vyos.

  • A linked clone from the "Base" snapshot
  • Gather other parameters either interactively (Read-Host) or via your configuration file.
  • The esxi server on which this clone is to run
  • The datastore where the clone should be stored
  • It makes sense to ask the user the name of the new clone
  • You should fail gracefully and let the user know if any parameters are in error. Optional Features
  • set the new vm's network adapters to a network of your choice.
  • power the vm on

My notes for this milestone are all uploaded via github desktop to the code section of my tech journal.