I am using the xHyper-V DSC resource to create a VM.
Creating the VM was not an issue. However, I want to be able to customize the VM’s hostname, give it an static IP address etc that comes after creating the VM. The xHyper-V resource has a lot of resources but I couldn’t find a way to post-customize the VM using DSC.
My workflow as I see it looks like this (could be wrong, I would like advice if so):
- Create 3 VMs using the xHyper-V's XVMHyperV resource
- Configure the VM's hostname to say 'DC1', 'MS1', 'Client1' etc
- Configure the nodes' IP addresses using some kind of configuration data type structure
Can some one provide me an example of how I might go about doing these?
Thank you very much.