lamw / vsphere-automated-lab-deployment

vSphere Automated Lab Deployment for vSphere 6.x (6.0, 6.5 & 6.7)
239 stars 131 forks source link

NSX OVA 6.4+ property "VSMgmt" now "Management_Network" #29

Open giulianoberteo opened 5 years ago

giulianoberteo commented 5 years ago

NSX OVA from 6.4+ property VSMgmt has been replaced with Management_Network Script fails with

The property 'value' cannot be found on this object. Verify that the property exists and can be set.
At F:\Dropbox\code\vghetto-vsphere-automated-lab-deployment-master\vsphere-6.7-vghetto-standard-lab-deployment.ps1:617 
char:9
+         $ovfconfig.NetworkMapping.VSMgmt.value = $VMNetwork
+         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
    + FullyQualifiedErrorId : PropertyNotFound
daunce commented 3 years ago

Also needs .value on the NTP line. $ovfconfig.common.vsm_ntp_0.value = $VMNTP

For the fix above, in case anyone isn't sure what the line should be: $ovfconfig.NetworkMapping.Management_Network.value = $VMNetwork