We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0360da3 + 828702e commit 419b435Copy full SHA for 419b435
upi/vsphere/powercli/upi-functions.ps1
@@ -44,6 +44,13 @@ function New-OpenShiftVM {
44
}
45
46
47
+ # If storage policy is set, lets pull the mo ref
48
+ if ($NULL -ne $StoragePolicy -and $StoragePolicy -ne "")
49
+ {
50
+ $storagePolicyRef = Get-SpbmStoragePolicy -Id $StoragePolicy
51
+ $args["StoragePolicy"] = $storagePolicyRef
52
+ }
53
+
54
# Clone the virtual machine from the imported template
55
# $vm = New-VM -VM $Template -Name $Name -Datastore $Datastore -ResourcePool $ResourcePool #-Location $Folder #-LinkedClone -ReferenceSnapshot $Snapshot
56
$vm = New-VM -VM $Template @args
0 commit comments