I am preparing to use Azure Migrate and as noted in the prerequisites, I need to "allow inbound connections on WinRM port 5985 (HTTP) for discovery of Windows servers".
Can this opening be limited to a particular IP address or subnet?
I can open the port, but I would like to limit it to the intended Azure traffic.
If you are trying to limit inbound traffic on WinRM port 5985 to a particular IP address or subnet, you can create a network security group on azure portal and select the specific IP address or subnet that you want to allow access to WinRM port 5985. Example:
Second scenario: If you want to specify which IP-addresses the WinRM service will listen on from OS level i.e. on the server this is going to be migrated, then follow the steps mentioned here
If you are trying to find the IP address of the Azure Migrate Appliance, that should be available under the list of VMs hosted under your hyper-V / VMware as below-
If it is physical server then it should be the IP address of the server the Azure Migrate appliance software is installed on.