4. Automated Import of Virtual Machines to vCloud Director : 4.6 Workflow: Import a VM with remapping networks : 4.6.2 Workflow Steps
   
4.6.2 Workflow Steps
1. Create a mapping to associate organization virtual datacenter networks to external network references.
2. Create a mapping to associate virtual machine network references to network adapter number.
3. Create a mapping to associate virtual machine networks references to the organization virtual datacenter networks, using the mappings in the first two steps.
4. If all of the virtual machine networks are not successfully mapped to an organization virtual datacenter network, and if the importWithoutNetworkMapping option is not set, the workflow fails. Otherwise, it continues.
5. Get the vCenter virtual machine reference.
6. Set the vApp name, virtual machine name as the same as the imported virtual machine. Set the description as Imported by vCO [date and time].
7. Run the library workflow Import a virtual machine as a vApp.
8. Get the vApp networks.
9. Get the virtual machine in the vApp, and get the network card adapters and the name of the organization virtual datacenter networks to which it should be linked.
10. For each network adapter, disconnect the virtual machine from the vApp networks created by vCloud Director during import by running a simplified version of the library workflow Wire a virtual machine network.
11. Delete existing vApp networks by running the Delete a vApp network library workflow.
12. Get the list of unique organization networks that need to be added to the vApp as vApp networks from the virtual machine networks references to the organization virtual datacenter networks mapping.
13. Add these vApp networks by running a simplified version of the library workflow Add a vApp network.
14. For each network adapter connect the virtual machine to the newly created vApp networks by running a simplified version of the library workflow Wire a virtual machine network.
15. If the Deploy option was set to yes deploy the vApp by passing the powerOn parameter. Otherwise skip the deploy process.
16. Set the vApp output.