Welcome to the Microsoft Q&A Platform. Thank you for reaching out & I hope you are doing well.
I understand that you would like to manually assign the IP addresses to a VM.
You can do this by setting the IP configuration to Static on the VM's NIC.
Refer : Change IP address settings
Kindly let us know if this helps or you need further assistance on this issue. P.S: You should make sure the IP assigned is a part of subnet and is available Thanks,
Kapil
Please don’t forget to close the thread by clicking "Accept the answer" wherever the information provided helps you, as this can be beneficial to other community members.