Skip to content

Instantly share code, notes, and snippets.

@jerome-massey
jerome-massey / Create-Unix-VM-cloud-init.ps1
Last active March 13, 2023 14:54 — forked from InputObject2/Create-Unix-VM-cloud-init.ps1
Changes: add dhcp to meta-data, add ssh_import_id_gh to user-data (lab environment), update path to Windows Kit (10), update sc / Set-Content to run on PS 7.2.5, disabled Set-VMNetworkProperties (vlan 1)
<#
Create Unix VM's.
PREREQUISITES:
- A VM that has been installed with an OS that supports cloud-init
- cloud-init is installed on the vm
How it works:
- Asks for a bunch of parameters
- Creates a disk from parent vhdx for speed