Zend certified PHP/Magento developer

How to add a Static IP-Adress to a Virtual Machine in Hyper V to stop changing the ip adress when restarting the VM

i have two questions:

1)
how can i set up a Static IP Adress on my virtual Machine, which is running on Windows 11 in Hyper v. Every time i do start The virtual Machine and write in the command Prompt”IP-Config” then i always have a different one.

2)
My Second question is, i want to have via Remote Desktop Controll Acess to my virtual Machine Outside from the local network. In order to that, i need a port forwarding, so basically i need a static IP-Adress which i can add to the Port forwarding settings.
The Question is, which Kind of Switch should i set up and give a Static IP Adress? should it be the External Switch or Internal Switch?