5 Essential Tips for Maximizing Your Experience at Nutanix .NEXT for Bloggers
I’ve tried to script out bulk creating VM from csv files using PS v2.0 cmdlets.However, unable to spot how to code the equivalent of ‘Guest Customization’, in particular cloud-init ‘custom script’ for Linux and sysprep ‘Guided Script’ for Windows.Is this available through Powershell?#field inputs: ClusterName,Name,NumVcpus,MemoryMb,Description,VmDisks,network,image,ipaddress,osfamily$VMs = Import-Csv -Path "D:\Projects\Technical\nutanix\import.csv"#Default values$NumCoresPerVcpu = 1$secure_boot = $true$taskuuid = @()####$VMs | ftForEach ($VM in $VMs){ ##Storage Section #~~~~~~~~~~~~~~~# $ImageId = (Get-Image | ?{$_.name -eq $VM.image}).uuid $vm_disk_id = (Get-Image $ImageId -IncludeVmDiskId).vm_disk_id #Create VMDiskAddress $cloneDiskAddress =New-NutanixObject VMDiskAddress $cloneDiskAddress.vmdisk_uuid =$vm_disk_id #Create VMDiskSpecClone $vmDiskClone =New-NutanixObject VMDiskSpecC
Already have an account? Login
Enter your username or e-mail address. We'll send you an e-mail with instructions to reset your password.
Sorry, we're still checking this file's contents to make sure it's safe to download. Please try again in a few minutes.
Sorry, our virus scanner detected that this file isn't safe to download.