I'm afraid that there isn't an automatic procedure to migrate from on-premise to cloud, al least on AVAST and I suppose that AVG is the same.
You have to reinstall all the devices using an installer downloaded from the cloud console.
To safe time, you can try to use "
Network Discovery" from cloud console and then install from it.