<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Deploying VM from content library timeout. in VMware PowerCLI Discussions</title>
    <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Deploying-VM-from-content-library-timeout/m-p/2994808#M113777</link>
    <description>&lt;P&gt;Thanks Luc! That makes sense.&lt;/P&gt;&lt;P&gt;So is there no way to pause the process until all those tasks are done at the script level?&lt;/P&gt;</description>
    <pubDate>Wed, 08 Nov 2023 22:28:30 GMT</pubDate>
    <dc:creator>mars0077</dc:creator>
    <dc:date>2023-11-08T22:28:30Z</dc:date>
    <item>
      <title>Deploying VM from content library timeout.</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Deploying-VM-from-content-library-timeout/m-p/2994786#M113775</link>
      <description>&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;I have PowerCLI script that creates a vm from a content library. The issue that I am running into is that the script&lt;BR /&gt;times out with a "The task was canceled by a user."&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think the issue has to do with the Deploy OVF template task not being synchronized with the transfer files task. It takes about 7 minutes for the file transfers to complete so the powercli script times out even though all OVF associated tasks in vCenter are still continuing in the vSphere client. This causes all other steps in my script to fail because the VM is not fully deployed yet.&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can I ensure that the script does not go to the next steps until the OVF has been deployed successfully? Below is the code that&lt;BR /&gt;applies to the new vm creation.&lt;/P&gt;&lt;P&gt;$contentLibraryItem = Get-ContentLibraryItem -Name 'WINTMP'&lt;/P&gt;&lt;P&gt;New-VM -Name $vm -ContentLibraryItem $contentLibraryItem -resourcePool $cluster -location $folder -Datastore $datastore -DiskStorageFormat "Thick" -DrsAutomationLevel "Manual" -confirm:$false&lt;/P&gt;&lt;P&gt;I have tried the suggestion from this link but it didn't work.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Creating-new-VM-with-async-fails-with-quot-A-task-was-canceled/m-p/2959108#M111175" target="_blank"&gt;https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Creating-new-VM-with-async-fails-with-quot-A-task-was-canceled/m-p/2959108#M111175&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 08 Nov 2023 20:20:48 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Deploying-VM-from-content-library-timeout/m-p/2994786#M113775</guid>
      <dc:creator>mars0077</dc:creator>
      <dc:date>2023-11-08T20:20:48Z</dc:date>
    </item>
    <item>
      <title>Re: Deploying VM from content library timeout.</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Deploying-VM-from-content-library-timeout/m-p/2994799#M113776</link>
      <description>&lt;P&gt;It might be a long shot, and yes, &lt;A href="https://kb.vmware.com/s/article/88928" target="_blank" rel="noopener"&gt;KB88928&lt;/A&gt; is about exporting, but that resolution in there might help.&lt;/P&gt;</description>
      <pubDate>Wed, 08 Nov 2023 21:05:50 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Deploying-VM-from-content-library-timeout/m-p/2994799#M113776</guid>
      <dc:creator>LucD</dc:creator>
      <dc:date>2023-11-08T21:05:50Z</dc:date>
    </item>
    <item>
      <title>Re: Deploying VM from content library timeout.</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Deploying-VM-from-content-library-timeout/m-p/2994808#M113777</link>
      <description>&lt;P&gt;Thanks Luc! That makes sense.&lt;/P&gt;&lt;P&gt;So is there no way to pause the process until all those tasks are done at the script level?&lt;/P&gt;</description>
      <pubDate>Wed, 08 Nov 2023 22:28:30 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Deploying-VM-from-content-library-timeout/m-p/2994808#M113777</guid>
      <dc:creator>mars0077</dc:creator>
      <dc:date>2023-11-08T22:28:30Z</dc:date>
    </item>
    <item>
      <title>Re: Deploying VM from content library timeout.</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Deploying-VM-from-content-library-timeout/m-p/2994876#M113781</link>
      <description>&lt;P&gt;Not that I know off I'm afraid.&lt;/P&gt;</description>
      <pubDate>Thu, 09 Nov 2023 07:59:07 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Deploying-VM-from-content-library-timeout/m-p/2994876#M113781</guid>
      <dc:creator>LucD</dc:creator>
      <dc:date>2023-11-09T07:59:07Z</dc:date>
    </item>
    <item>
      <title>Re: Deploying VM from content library timeout.</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Deploying-VM-from-content-library-timeout/m-p/2994969#M113800</link>
      <description>&lt;P&gt;Understood. Thanks for your feedback.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Nov 2023 16:22:01 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Deploying-VM-from-content-library-timeout/m-p/2994969#M113800</guid>
      <dc:creator>mars0077</dc:creator>
      <dc:date>2023-11-09T16:22:01Z</dc:date>
    </item>
  </channel>
</rss>

