-
Notifications
You must be signed in to change notification settings - Fork 2
/
vproxy_nbd.ps1
19 lines (18 loc) · 950 Bytes
/
vproxy_nbd.ps1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# Deploy a VM Proxy in a vSphere Cluster with NBD Transport
$NetworkMoref=((Get-PPDMhosts -hosttype ESX_CLUSTER -filter 'name eq "K8-TEST"').details.esxcluster.networks | where name -eq MGMT-v328).moref
$ClusterMoref=(Get-PPDMhosts -hosttype ESX_CLUSTER -filter 'name eq "K8-TEST"').details.esxcluster.clusterMoref
$VCenterID=(Get-PPDMinventory_sources -Type VCENTER -filter 'name eq "vcenter-01"').id
$DatastoreMoref=(Get-PPDMvcenterDatastores -id $VCenterID -clusterMOREF $clusterMoref | where name -match vsanDatastore).moref
$VPE=(Get-PPDMprotection_engines -Type VPE).ID
New-PPDMProxy -VPE $VPE `
-ProtectionType VM `
-TransportMode NbdOnly `
-fqdn ppdm-vproxy02.xiolab.lab.emc.com `
-IPAddress 10.55.28.42 `
-gateway 10.55.28.1 `
-netmask 255.255.255.0 `
-PrimaryDNS 10.55.234.250 `
-vCenterID $VCenterID `
-ClusterMoref $ClusterMoref `
-DatastoreMoref $DatastoreMoref `
-NetworkMoref $NetworkMoref