The attached script demonstrates how you can automate bulk addition of stateless ESXi hosts via Auto Deploy with static IP addresses using Host Profile Answer files, as long as you know the primary boot MAC address, or BIOS UUID of the new hosts ahead of time. The following excerpt from the script describes how this works (refer to the script for more details):
Here's what the CSV file might look like, assuming you have two portgroups with vmkernel networking - "Management Network" and "vmotion"
Then running the script (assuming the file above is called "hosts.csv") would look like:
Once the script completes, you can power on your systems and they'll come up with the desired static IPs automatically without user invervention.
pre-answer.ps1 8.8 K