How to create vm from template with IP address

I want to create vm from template & input host name and IP addess in vm.
Thanks,
David

You mean you want to configure the VM in the tenant machines ? @danhua_Chen