How to migrate from a public IP to a VNet
Notes:
The guide uses a procedure which will cause downtime on your server. We therefore suggest you plan this during a maintenance window.
If you use DNS records to point to the VM, we recommend changing the TTL of the DNS records to 5 minutes for the scheduled maintenance period. If the TTL remains default the new DNS record could take some time to start being used by the internet. After the maintenance periode you are able to change the TTL back to normal as a low TTL causes higher load on the DNS server.
Each V-net has 1 external IP address.
Prerequisites:
Ordered a V-net- How to upgrade WAP Virtual Machine resources
Created a V-net with internet access - How to create a WAP virtual network
Open the WAP portal you added the V-net in.
Shutdown the VM with the public network interface
When the VM has the status Stopped go to the tab Configure
Attach a new Network card using the Attach button and choosing the option Network
In the Attach a network to the virtual machine wizzard choose the created V-net and click the checkbox
Wait untill the network card has been attached to the VM and then select the network card with the public IP address and click Detach
After the networkcard has been detached go back to the Dashboard
Start the VM
Go to the created V-Net and open to access its settings
Go to the Rules tab
Click the Add Rule button on the bottom of the page
Fill in the fields in the wizzardName: Name of the ruleSource Port: Port that the internet will connect to on your external IP.Destination Port: Port that is listening to the corrosponding service on your VM.
Repeat step 10 and 11 untill all the ports that you require have been forwarded.
At this point the VM will be reachable on the V-net public IP. If you are using DNS records the service will work as soon as the DNS record change has been updated on the internet.