New-VM Template: Gen2 SecureBoot Linux

The following is the code we use to add a Secure Boot based Linux virtual machine to one of our Azure Stack HCI/Storage Spaces Direct clusters.

All $Variables are able to be tweaked for a given setting. In this case, we are setting up and deploying to a Azure Stack HCI/Storage Spaces Direct cluster in Hyper-V.

Make sure to tweak the path for Cluster Shared Volume or standalone drive and folder structure.

NOTE: # TODO <– Visual Studio Code Extension: Better Comments