Configs/Config_Test_2.ps1

$cfg = @{}

#### MANDATORY PARAMETERS

# Informations about the source vCenter
$cfg.sourcevc = @{
    vc = 'srv-vcenter-02.lab.nantes'
    user = 'administrator@vsphere.local'
    password = 'Cheopsfr44@'
}

# Information about the destination vCenter
$cfg.destinationvc = @{
    vc = 'srv-vcenter-03.lab.nantes'
    user = 'administrator@vsphere.local'
    password = 'Cheopsfr44@'
}

# Cluster translation table
# List of source and destination clusters
# If the source cluster is not on the list, the script will look at a destination cluster with the same name
$cfg.cluster = @(
    @{source = 'PRODUCTION' ; destination = 'TESTS'}
)

# List of VM matching the specified pattern and excluded VMs
# vm = '*' -> All VM selected
# vm = 'TEST*' -> All VM who's name starts with TEST
$cfg.vm = @{
    scope = 'TEST0*'
    exclusion = @('Virtual_esx05')
}

# Datastore translation table
# List of source and destination datastores
# If the source datastore is not on the list, the script will look at a destination datastore with the same name
# If the VM has multiple datastore, the first one is selected
# Selecting a datastore cluster as destination is not supported
$cfg.datastore = @(
    @{source = 'CX4_NTE-CLUSTER-PROD-VMFS-01'; destination = 'CX4_NTE-CLUSTER-TEST-VMFS-01'}
    @{source = 'CX4_NTE-CLUSTER-PROD-VMFS-02'; destination = 'CX4_NTE-CLUSTER-TEST-VMFS-02'}
    @{source = 'CX4_NTE-CLUSTER-PROD-VMFS-03'; destination = 'CX4_NTE-CLUSTER-TEST-VMFS-03'}
)