I want to write CSOM code to migrate custom pages with custom page layout and WebParts such as content editor, content query from SharePoint 2010 site on intranet to SharePoint online.
I need to write code on my Azure VM, how can I access local intranet SharePoint 2010 site from Azure VM? I read about Azure Virtual Network not sure if that's solution.
Also, I would like to know about some alternative options for this kind of migration. I'm aware about using third party tools such as AvePoint, Metalogix and Sharegate.