Hey guys I think I have a simple problem.
I am trying to write a cmdlet that does some extra work related to VM creation. The problem I am encountering is when trying to pass a variable I created into the -MemoryStartupBytes param of the New-VM cmdlet.
My cmdlet prompts the user for the value of RAM to assign the VM. I have $RAM defined as an INT. However when I try to pass the $RAM variable to the New-VM -MemoryStartupBytes parameter it fails with the attached error.
I’ve tried assigning the $RAM variable the contents of 3gb and 3000. What am I missing here?