I’m attempting to deploy a VM via a Service Template (Service Configuration) where I would like to set the IP Address (as opposed to it just picking the next available IP address from the IP Pool).
Obviously, I can not do this using “Service Settings”, as there is nowhere in the template for me to declare the Service Setting variable.
Therefore, I presume this should be done by updating the “Service Configuration” just before the New-SCService is executed.
After trying various things such as Granting an IP to the VM Configuration’s NIC - The result of this is that I can see the IP Address being allocated within VMM (Get-SCIPAddress), however when the VM gets created it still pulls an IP from the IP Pool (instead of using the IP i specified) and Get-SCIPAddress shows that the IP was assigned to a Virtual Adapter that has a different ID to the one I see/set in the VM Configuration.
Any suggestions appreciated!