Configs/Config_Test_1.ps1
$cfg = @{} #### MANDATORY PARAMETERS # Informations about the source vCenter $cfg.sourcevc = @{ vc = 'srv-vcenter-01.lab.nantes' user = 'administrator@vsphere.local' password = 'Cheopsfr44@' } # Information about the destination vCenter $cfg.destinationvc = @{ vc = 'srv-vcenter-02.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 = 'Test*' ; destination = 'PRODUCTION'} ) # List of VM matching the specified pattern # vm = '*' -> All VM selected # vm = 'TEST*' -> All VM who's name starts with TEST $cfg.scope = @{ vm = '*' } #### OPTIONAL PARAMETERS # Portgroup translation table # List of source and destination portgroups # If the source portgroup is not on the list, the script will look at a destination portgroup with the same name $cfg.portgroup = @( @{source = 'MAQUETTE - VLAN 55'; destination = 'MAQUETTE - VLAN 55'} @{source = 'Private Network'; destination = 'MGMT - VLAN 23'} @{source = 'EQN - VLAN 46'; destination = 'MGMT - VLAN 23'} ) # 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-TEST-VMFS-01'; destination = 'CX4_NTE-CLUSTER-PROD-VMFS-01'} @{source = 'CX4_NTE-CLUSTER-TEST-VMFS-02'; destination = 'CX4_NTE-CLUSTER-PROD-VMFS-02'} @{source = 'CX4_NTE-CLUSTER-TEST-VMFS-03'; destination = 'CX4_NTE-CLUSTER-PROD-VMFS-03'} ) # Advanced Parameters $cfg.AdvancedParameters = @{ SkipFaultedDatastore = $true # Skip target datastore if it's faulted ReservedCapacityPercent = 10 # Pourcent of mandatory free space on target datastore } |