How to change Azure VM Virtual network when using Reserved IP address

We installed our Azure vm via powershell, because we needed to use Reserved IP address. Its not possible to add reserved IP address from portal yet.
We somehow forgot to add private VMnetwork to our Azure vm and we needed get it.
Software installations were already done, so we needed to keep the OS disk.
This blogpost will describe the steps what we need to do when we wanted to keep current OS disk and also reserved IP address and only add connection to our virtual network too.

Continue reading