Add function to migrate resources of the tenant