At this time there is no way to perform an in place upgrade of virtual machines running one version of Windows to another. For example, upgrading from Windows Server 2012R2 to Windows Server 2016 from inside the Guest OS is not supported.