您好,我正在尝试创建一个将使用UEFI并使用新的PowerShell CMDLET的VM。使用版本1 cmdlet,这是不可能的。有谁知道V2是否可以使用,还是我们仍然需要与PowerShell CMDLET一起使用API?
\u00a0<\/p>
Level up your Nutanix skills and get certified for free with Nutanix University Summer School! For the next two months, anyone who completes one of the following courses - whether it\u2019s online or in person - will also receive a FREE certification exam voucher.<\/span><\/p> Eligible courses:<\/strong><\/p> Enterprise Cloud Administration<\/span><\/p>\t<\/li>\t Nutanix Data Services Administration<\/span><\/p>\t<\/li>\t Nutanix End User Computing Administration<\/span><\/p>\t<\/li>\t Nutanix Database Management & Automation<\/span><\/p>\t<\/li>\t Nutanix Multicloud Automation Administration<\/span><\/p>\t<\/li><\/ul> \u00a0<\/p> Take this opportunity to invest in your career and grow your skill set.\u00a0<\/span><\/p> \u00a0<\/p> Thanks for waiting to everyone who got our sneak peek of this last week!\u00a0\ud83d\ude09<\/p> \u00a0<\/p> Terms and Conditions<\/strong><\/em><\/p> The exam voucher will be provided to you after you have completed the course. Self-paced online student\u2019s vouchers will be assigned through the Learning Plan within 24-hours after the completion of the course.<\/span><\/em><\/p>\t<\/li>\t You must complete the course between June 14, 2022 and August 16, 2022.\u00a0<\/span><\/em><\/p>\t<\/li>\t For online students, your exam voucher must be redeemed by 8\/23\/22. For instructor-led students, your exam voucher must be redeemed 6 months after you complete the course.\u00a0<\/span><\/em><\/p>\t<\/li>\t The exam voucher code can only be used once.<\/span><\/em><\/p>\t<\/li>\t You will receive one (1) NCP exam voucher for each class completed. The voucher can be used on any NCP exam.\u00a0\u00a0<\/span><\/em><\/p>\t<\/li><\/ul> \u00a0<\/p> This article was written by Karlie Beil, Customer Marketing Specialist.\u00a0<\/p><\/div><\/div><\/section> \u00a0<\/p> \u00a9\ufe0f\ufe0f\ufe0f 2022 Nutanix, Inc. \u00a0All rights reserved. Nutanix, the Nutanix logo and all Nutanix product, feature and service names mentioned herein are registered trademarks or trademarks of Nutanix, Inc. in the United States and other countries. Other brand names mentioned herein are for identification purposes only and may be the trademarks of their respective holder(s). This post may contain links to external websites that are not part of Nutanix.com. Nutanix does not control these sites and disclaims all responsibility for the content or accuracy of any external site. Our decision to link to an external site should not be considered an endorsement of any content on such a site. This post may contain express and implied forward-looking statements, which are not historical facts and are instead based on our current expectations, estimates and beliefs. The accuracy of such statements involves risks and uncertainties and depends upon future events, including those that may be beyond our control, and actual results may differ materially and adversely from those anticipated or implied by such statements. Any forward-looking statements included herein speak only as of the date hereof and, except as required by law, we assume no obligation to update or otherwise revise any of such forward-looking statements to reflect subsequent events or circumstances.<\/p> \u00a0<\/p>","id":40952,"featuredImage":"https:\/\/uploads-us-west-2.insided.com\/nutanix-us\/attachment\/78f47513-ef06-4bf4-9b57-0269259ac6da_thumb.png","label":"Blog","replyCount":0,"views":4418,"post":{"id":61291,"author":{"id":113632,"url":"\/members\/karlie-beil-113632","name":"Karlie Beil","avatar":"https:\/\/uploads-us-west-2.insided.com\/nutanix-us\/icon\/200x200\/1581aab3-bcf6-49f4-b2fb-3d11e8c010dc.png","userTitle":"Community Manager","rank":{"isBold":false,"isItalic":false,"isUnderline":false,"name":"Community Manager","color":"#0873ba"},"userLevel":2},"content":" \u00a0<\/p> Level up your Nutanix skills and get certified for free with Nutanix University Summer School! For the next two months, anyone who completes one of the following courses - whether it\u2019s online or in person - will also receive a FREE certification exam voucher.<\/span><\/p> Eligible courses:<\/strong><\/p> Enterprise Cloud Administration<\/span><\/p>\t<\/li>\t Nutanix Data Services Administration<\/span><\/p>\t<\/li>\t Nutanix End User Computing Administration<\/span><\/p>\t<\/li>\t Nutanix Database Management & Automation<\/span><\/p>\t<\/li>\t Nutanix Multicloud Automation Administration<\/span><\/p>\t<\/li><\/ul> \u00a0<\/p> Take this opportunity to invest in your career and grow your skill set.\u00a0<\/span><\/p> \u00a0<\/p> Thanks for waiting to everyone who got our sneak peek of this last week!\u00a0\ud83d\ude09<\/p> \u00a0<\/p> Terms and Conditions<\/strong><\/em><\/p> The exam voucher will be provided to you after you have completed the course. Self-paced online student\u2019s vouchers will be assigned through the Learning Plan within 24-hours after the completion of the course.<\/span><\/em><\/p>\t<\/li>\t You must complete the course between June 14, 2022 and August 16, 2022.\u00a0<\/span><\/em><\/p>\t<\/li>\t For online students, your exam voucher must be redeemed by 8\/23\/22. For instructor-led students, your exam voucher must be redeemed 6 months after you complete the course.\u00a0<\/span><\/em><\/p>\t<\/li>\t The exam voucher code can only be used once.<\/span><\/em><\/p>\t<\/li>\t You will receive one (1) NCP exam voucher for each class completed. The voucher can be used on any NCP exam.\u00a0\u00a0<\/span><\/em><\/p>\t<\/li><\/ul> \u00a0<\/p> This article was written by Karlie Beil, Customer Marketing Specialist.\u00a0<\/p><\/div><\/div><\/section> \u00a0<\/p> \u00a9\ufe0f\ufe0f\ufe0f 2022 Nutanix, Inc. \u00a0All rights reserved. Nutanix, the Nutanix logo and all Nutanix product, feature and service names mentioned herein are registered trademarks or trademarks of Nutanix, Inc. in the United States and other countries. Other brand names mentioned herein are for identification purposes only and may be the trademarks of their respective holder(s). This post may contain links to external websites that are not part of Nutanix.com. Nutanix does not control these sites and disclaims all responsibility for the content or accuracy of any external site. Our decision to link to an external site should not be considered an endorsement of any content on such a site. This post may contain express and implied forward-looking statements, which are not historical facts and are instead based on our current expectations, estimates and beliefs. The accuracy of such statements involves risks and uncertainties and depends upon future events, including those that may be beyond our control, and actual results may differ materially and adversely from those anticipated or implied by such statements. Any forward-looking statements included herein speak only as of the date hereof and, except as required by law, we assume no obligation to update or otherwise revise any of such forward-looking statements to reflect subsequent events or circumstances.<\/p> \u00a0<\/p>","url":"\/education-blog-153\/level-up-your-nutanix-skills-this-summer-and-get-a-free-exam-voucher-40952?postid=61291#post61291","creationDate":"2022-06-14T15:30:05+0000","relativeCreationDate":"29 days ago"},"contentType":"article","type":3,"likes":5,"hasCurrentUserLiked":false},"phrases":{"Forum":{"{n} year|{n} years":"{n} year|{n} years","{n} month|{n} months":"{n} month|{n} months","{n} day|{n} days":"{n} day|{n} days","{n} hour|{n} hours":"{n} hour|{n} hours","{n} minute|{n} minutes":"{n} minute|{n} minutes","just":"just now","{plural} ago":"{plural} ago"}}}">
是的,您应该能够在v2 cmdlet中这样做。您将要先创建一个引导配置。 这是示例引导配置: $ boot = new-nutanixObject bootconfig 然后将该引导配置应用于VM。 new -vm -name testboot -numvcpus 2 -memorymb 8000 -clusteruuid Here is a sample boot config:<\/p> $boot=New-NutanixObject BootConfig \u00a0<\/p> Then apply that boot config to the VM.\u00a0\u00a0<\/p> New-VM -Name TestBoot -NumVcpus 2 -MemoryMb 8000 -ClusterUUID <UUID>\u00a0-BootConfig $boot<\/p> \u00a0<\/p>","quoteUsername":"GrantS","translations":{"Common":{"like":"Like","unlike":"Unlike"},"Forum":{"Quote":"Quote","Share":"Share"}}}">
谢谢。这是一个很好的开始。 我正在尝试从图像中添加磁盘。根据VM的目的,我可能有来自图像的多个磁盘。我过去所做的是: $ base ='server_2019_uefi' 开关($ vmtype) $ vmdisk = new -ntnxObject -name vmdiskdto 所以现在我想我需要使用: $ vmdisk = new -nutanixObject -name vmdisk 然后在存储库中的图像中添加$ vmdisk.vm_disk_clone属性? I am trying to add a disk from an image I have. Depending on the purpose of the VM I might have multiple disks from images. What I did in the past was:<\/p> $base = 'Server_2019_UEFI'<\/p> \u00a0<\/p> switch ($vmtype) \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 $vmDisk = New-NTNXObject -Name VMDiskDTO \u00a0<\/p> \u00a0<\/p> So now I am thinking I need to use the:<\/p> \u00a0<\/p> $vmDisk = New-NutanixObject -Name VMDisk<\/p> \u00a0<\/p> And then add the $vmdisk.vm_disk_clone property with the UUID from the image in the repository?\u00a0<\/p>","quoteUsername":"skeeter","translations":{"Common":{"like":"Like","unlike":"Unlike"},"Forum":{"Quote":"Quote","Share":"Share"}}}">
正确的。要克隆,您需要先获取VM磁盘UUID。您可能已经很方便了。如果您不这样做,则可以通过获得图像的UUID首先“ Get-image”来抓住它。拥有图像后,UUID获得了“ get -image -imageId 从那里克隆的是海峡前进。 $ clonediskAddress = new-nutanixObject vmdiskaddress $ clonediskaffress.vmdisk_uuid =’ $ vmdiskclone = new-nutanixObject vmdiskspecclone $ vmdiskclone.disk_address = $ clonediskAddress $ vmdisk = new-nutanixObject vmdisk $ vmdisk.is_cdrom = $ false $ vmdisk.vm_disk_clone = $ vmdiskclone 只是在您不想克隆的情况下也将其扔到那里。要创建净新磁盘,您将需要存储容器UUID。您可以使用“ Get-StorageContainer |convertto -json -Depth 6'。 $ vmdiskcreate = new-nutanixObject vmdiskspeccreate $ vmdiskcreate.storage_container_uuid =' $ vmdiskcreate.size ='800000' $ vmdisk = new-nutanixObject vmdisk $ vmdisk.is_cdrom = $ false $ vmdisk.disk_address = $ diskaddress $ vmdisk.vm_disk_create = $ vmdiskcreate From there the cloning is strait forward.\u00a0<\/p> \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 $cloneDiskAddress=New-NutanixObject VMDiskAddress<\/p> \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 $cloneDiskAffress.vmdisk_uuid=\u2019<VM Disk UUID><\/p> \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0$vmDiskClone=New-NutanixObject VMDIskSpecClone<\/p> \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0$vmDiskClone.disk_address=$cloneDiskAddress<\/p> \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 $vmDisk=New-NutanixObject VMDisk<\/p> \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 $vmDisk.is_cdrom=$false<\/p> \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 $vmDisk.vm_disk_clone=$vmDiskClone<\/p> \u00a0<\/p> Just throwing this out there as well for instances where you don\u2019t want to clone.\u00a0 To\u00a0create a net new disk, you will need the storage container UUID.\u00a0 You can grab the UUID\u00a0with \u2018Get-StorageContainer | ConvertTo-Json -depth 6\u2019.<\/p> \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 $vmDiskCreate=New-NutanixObject VMDIskSpecCreate<\/p> \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 $vmDiskCreate.storage_container_uuid=\u2019<UUID>\u2019<\/p> \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 $vmDiskCreate.size=\u2019800000\u2019<\/p> \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 $vmDisk=New-NutanixObject VMDisk<\/p> \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 $vmDisk.is_cdrom=$false<\/p> \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 $vmDisk.disk_address=$diskAddress<\/p> \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 $vmDisk.vm_disk_create=$vmDiskCreate<\/p> \u00a0<\/p>","quoteUsername":"GrantS","translations":{"Common":{"like":"Like","unlike":"Unlike"},"Forum":{"Quote":"Quote","Share":"Share"}}}">
再次感谢您的帮助。非常感谢。 我注意到了2件事,以防万一有人来到这里。首先有一个错字 $ clonediskaffress.vmdisk_uuid =’ 它应该是 $ clonediskAddress.vmdisk_uuid =’ 没什么大不了。 其次,没有带有new-nutanixObject的类型VMDiskSpecclone。根据帮助,只有: 可用的对象名称为vmdiskaddress,bootconfig,vmdiskspeccreate,vmdisk,vmnicspec。 当我尝试使用它时,我会遇到一个错误,说它不在字典中。 我正在使用模块的2.01版。有新版本吗? get-module nutanix.prism.ps.cmds I noticed 2 things just in case someone comes behind me here. First there is a typo on\u00a0<\/p> \u00a0<\/p> $cloneDiskAffress.vmdisk_uuid=\u2019<VM Disk UUID><\/p> It should be<\/p> \u00a0<\/p> $cloneDiskAddress.vmdisk_uuid=\u2019<VM Disk UUID><\/p> \u00a0<\/p> No big deal.<\/p> \u00a0<\/p> Secondly there is not type\u00a0VMDIskSpecClone with New-NutanixObject. According to the help there is only:<\/p> Available object names are VMDiskAddress, BootConfig, VMDiskSpecCreate, VMDisk, VMNicSpec.<\/p> \u00a0<\/p> When I try to use it I get an error saying it is not in the dictionary.<\/p> I am using version 2.01 of the module. Is there a new version?<\/p> \u00a0<\/p> Get-Module Nutanix.Prism.PS.Cmds<\/p> 打错了! 2.0.1模块将与new-NutanixObject VMDiskSpecclone一起使用 已安装的模块: ps> get安装模块 版本名称存储库描述-------------------------------------------------------- 2.0.1 nutanix.cli psgallery nutanix powershell命令 2.0.1 nutanix.prism.common psgallery nutanix prism公共模块 2.0.1 nutanix.prism.ps.cmds psgallery nutanix prism powershell命令模块 输出样本: ps> $ vmdiskclone = new-nutanixObject vmdiskspecclone PS> $ vmdiskclone: disk_address: :mage_path: ndfs_filepath: minumum_size: minumum_size_mb: snapshot_group_id。: container_uuid: \u00a0<\/p> The 2.0.1 Modules will work with\u00a0New-NutanixObject VMDiskSpecClone<\/p> \u00a0<\/p> Installed Modules:<\/p> PS > Get-InstalledModule<\/p> Version \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0Name \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0Repository \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 Description ------- \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0---- \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0---------- \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 -----------<\/p> 2.0.1 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0Nutanix.Cli \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 PSGallery \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0Nutanix Powershell Commands<\/p> 2.0.1 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0Nutanix.Prism.Common \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0PSGallery \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0Nutanix Prism Common module<\/p> 2.0.1 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0Nutanix.Prism.PS.Cmds \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 PSGallery \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0Nutanix Prism Powershell Commands Module<\/p> \u00a0<\/p> Sample of output:<\/p> PS> $vmDiskClone=New-NutanixObject VMDiskSpecClone<\/p> PS> $vmDiskClone :<\/p> disk_address\u00a0 :\u00a0 \u00a0\u00a0<\/p> :mage_path :\u00a0 \u00a0 \u00a0 \u00a0<\/p> ndfs_filepath :\u00a0\u00a0<\/p> minimum_size :\u00a0<\/p> minimum_size_mb\u00a0 :<\/p> snapshot_group_id. :<\/p> container_uuid \u00a0 \u00a0:<\/p>","quoteUsername":"GrantS","translations":{"Common":{"like":"Like","unlike":"Unlike"},"Forum":{"Quote":"Quote","Share":"Share"}}}">
没问题! 输入您的用户名或电子邮件地址。我们将向您发送带有指令的电子邮件以重置您的密码。\u00a0<\/h3>
Get started today!<\/a><\/h3>
Get a free certification exam when you complete a training course now through August 16! <\/strong><\/h3>
\u00a0<\/h3>
Get started today!<\/a><\/h3>
PowerShell V2创建UEFI VM
7个答复
$ boot.uefi_boot = $ true
$ boot.secure_boot = $ true
$ boot.boot_device_type ='disk'
$ boot.disk_address = $ diskaddress
$boot.uefi_boot=$true
$boot.secure_boot=$true
$boot.boot_device_type='DISK'
$boot.disk_address=$diskAddress<\/p>
{
'iis'{$ vmdisks = $ base,'iisdata','iislogs'}
'sql'{$ vmdisks = $ base,'sql-2017'}
'vm'{$ vmdisks = $ base}
}
$ diskclonespec = new -ntnxObject -name vmdiskspecclonedto
if($ vmdisks.count -gt'1'){
$ diskimage =(get-ntnximage | where-object {$ _。名称-eq $ vmdisks [0]})
}
别的
{
$ diskimage =(get-ntnximage | where-object {$_。Names-eq $ vmdisks})
}
$ diskclonespec.vmdiskuuid = $ diskimage.vmdiskid
$ vmdisk.vmdiskclone = $ diskclonespec
if($ vmdisks.count -gt'1'){
$ vmdisk = @($ vmdisk)
foreach($ vmdisks中的$ disk){
如果($ disk -ne $ vmdisks [0]){
$ addvmdisk = new -ntnxObject -name vmdiskdto
$ adddiskclonespec = new -ntnxObject -name vmdiskspecclonedto
美元
$ adddiskclonespec.vmdiskuuid = $ adddiskimage.vmdiskid
$ addvmdisk.vmdiskclone = $ adddiskclonespec
$ vmdisk += $ addvmdisk
}
}
}
$ vmisodisk = new -ntnxObject -name vmdiskdto
$ vmisodisk.iscdrom = $ true
$ vmisodisk.isempty = $ true
\u00a0 \u00a0 \u00a0 \u00a0 {
\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 'IIS' {$vmdisks = $base,'IISData','IISLogs'}
\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 'SQL' {$vmdisks =$base,'SQL-2017' }
\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 'VM' \u00a0{$vmdisks = $base}
\u00a0 \u00a0 \u00a0 \u00a0 }<\/p>
\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 $diskCloneSpec = New-NTNXObject -Name VMDiskSpecCloneDTO
\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 IF($VMDisks.count -gt '1') {
\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 $diskImage = (Get-NTNXImage | Where-object {$_.name -eq $vmdisks[0]})
\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 }
\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 ELSE
\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 {
\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 $diskImage = (Get-NTNXImage | Where-object {$_.name -eq $vmdisks})
\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 }
\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 $diskCloneSpec.vmDiskUuid = $diskImage.vmDiskId
\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 $vmDisk.vmDiskClone = $diskCloneSpec \u00a0\u00a0
\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0\u00a0
\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 IF($VMDisks.count -gt '1') {
\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0\u00a0
\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 $vmDisk = @($vmDisk)
\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0Foreach ($disk in $vmdisks){
\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0IF($disk -ne $VMDisks[0]){
\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 $AddvmDisk = New-NTNXObject -Name VMDiskDTO
\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 $AdddiskCloneSpec = New-NTNXObject -Name VMDiskSpecCloneDTO
\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 $AdddiskImage = (Get-NTNXImage | Where-object {$_.name -eq $disk})
\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 $AdddiskCloneSpec.vmDiskUuid = $AdddiskImage.vmDiskId
\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 $AddvmDisk.vmDiskClone = $AdddiskCloneSpec
\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 $vmDisk += $AddvmDisk
\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 }
\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 }
\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 }
\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 $vmISODisk = New-NTNXObject -Name VMDiskDTO
\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 $vmISODisk.isCdrom = $true
\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 $vmISODisk.isEmpty = $true<\/p>
模块型版本预发行名称
----------------------------------------------
脚本2.0.1 nutanix.prism.ps.cmds
ModuleType Version \u00a0 \u00a0PreRelease Name\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0\u00a0
----------\u00a0 \u00a0 \u00a0 \u00a0 \u00a0-------\u00a0 \u00a0 \u00a0 \u00a0---------- ----\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0
Script\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 2.0.1 \u00a0 \u00a0 \u00a0 \u00a0Nutanix.Prism.PS.Cmds \u00a0<\/p>","quoteUsername":"skeeter","translations":{"Common":{"like":"Like","unlike":"Unlike"},"Forum":{"Quote":"Quote","Share":"Share"}}}">
回复
Functional","cookiepolicy.modal.level2":"Normal
Functional + analytics","cookiepolicy.modal.level3":"Complete
Functional + analytics + social media + embedded videos"}}}">