migration to cloud

Hi, Would like to know if we have configured the switches and APs locally first, then migrate to cirrus. In this scenario, will the existing configuration be copied and retained in the cloud, or will the devices be factory reset? Thanks