<?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: Weird error on simple cmdlet in VMware PowerCLI Discussions</title>
    <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Weird-error-on-simple-cmdlet/m-p/2994743#M113769</link>
    <description>&lt;P&gt;Not yet, it was only brought to my attention this morning. Doing a little more checking/confirming and then I'll raise one tomorrow.&lt;/P&gt;&lt;P&gt;Edit: Sadly, it was not that simple. I'm not able to replicate it working with PowerShell 7 now, erroring at the same point in deployment (so there must be more to it). I also forgot to say, it does start the VM, despite the error &lt;img class="lia-deferred-image lia-image-emoji" src="https://communities.vmware.com/html/@33F704DD3F3AEBCD2A2F0CFE047DC885/emoticons/1f605.png" alt=":grinning_face_with_sweat:" title=":grinning_face_with_sweat:" /&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 08 Nov 2023 17:57:06 GMT</pubDate>
    <dc:creator>robinmalik</dc:creator>
    <dc:date>2023-11-08T17:57:06Z</dc:date>
    <item>
      <title>Weird error on simple cmdlet</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Weird-error-on-simple-cmdlet/m-p/2983918#M113030</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;We updated our vcenter to 8u1c (previously in 7.0.3g) and using pwsh 7.3.6 and got this message on a simple task :&lt;/P&gt;&lt;P&gt;PS /Desktop/ &amp;gt; get-vm testvm | set-vm -Notes "test1" -Confirm:$false&lt;BR /&gt;Set-VM: 25/08/2023 12:09:15 Set-VM One or more errors occurred. (com.vmware.vapi.std.errors.internal_server_error {'messages': [com.vmware.vapi.std.localizable_message {'id': vapi.bindings.method.impl.unexpected, 'default_message': Provider method implementation threw unexpected exception: com.vmware.vapi.std.errors.InternalServerError, 'args': [com.vmware.vapi.std.errors.InternalServerError], 'params': , 'localized':}, com.vmware.vapi.std.localizable_message {'id': com.vmware.vapi.endpoint.badGateway, 'default_message': The endpoint, while acting as a gateway, received an invalid response from an upstream server it accessed while attempting to fulfill the request., 'args': [], 'params': , 'localized':}], 'data': , 'error_type': INTERNAL_SERVER_ERROR})&lt;/P&gt;&lt;P&gt;i check vcenter services and they are in healthy state. Any idea about this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Aug 2023 10:15:41 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Weird-error-on-simple-cmdlet/m-p/2983918#M113030</guid>
      <dc:creator>fladjova</dc:creator>
      <dc:date>2023-08-25T10:15:41Z</dc:date>
    </item>
    <item>
      <title>Re: Weird error on simple cmdlet</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Weird-error-on-simple-cmdlet/m-p/2983926#M113031</link>
      <description>&lt;P&gt;Did you already check the vpxd log if it has more information?&lt;BR /&gt;&lt;BR /&gt;I'm using the same versions and it seems to be working ok for me.&lt;BR /&gt;I assume you are using the latest PowerCLI version.&lt;/P&gt;</description>
      <pubDate>Fri, 25 Aug 2023 10:48:53 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Weird-error-on-simple-cmdlet/m-p/2983926#M113031</guid>
      <dc:creator>LucD</dc:creator>
      <dc:date>2023-08-25T10:48:53Z</dc:date>
    </item>
    <item>
      <title>Re: Weird error on simple cmdlet</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Weird-error-on-simple-cmdlet/m-p/2983937#M113032</link>
      <description>&lt;P&gt;Set-vm is working as it changes the Notes field. In vxpd.log i can see info about the task but no error regarding the task. so i don't know why it throw this error, but that's not a real error as set-vm is working.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Aug 2023 12:05:02 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Weird-error-on-simple-cmdlet/m-p/2983937#M113032</guid>
      <dc:creator>fladjova</dc:creator>
      <dc:date>2023-08-25T12:05:02Z</dc:date>
    </item>
    <item>
      <title>Re: Weird error on simple cmdlet</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Weird-error-on-simple-cmdlet/m-p/2983939#M113033</link>
      <description>&lt;P&gt;Do you perhaps have multiple connections open?&lt;BR /&gt;Check with $global:defaultVIServers and $global:defaultCisServers&lt;/P&gt;</description>
      <pubDate>Fri, 25 Aug 2023 12:15:22 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Weird-error-on-simple-cmdlet/m-p/2983939#M113033</guid>
      <dc:creator>LucD</dc:creator>
      <dc:date>2023-08-25T12:15:22Z</dc:date>
    </item>
    <item>
      <title>Re: Weird error on simple cmdlet</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Weird-error-on-simple-cmdlet/m-p/2983943#M113034</link>
      <description>&lt;P&gt;After exiting et reloading terminal,&amp;nbsp; no more error when i use only cmdlet.&lt;/P&gt;&lt;P&gt;But it is still present when i use it on a script (and then also when i use again only cmdlet until i close and reload terminal) i will have a better look on this script, to find why it threw this error even if the job is done &lt;img class="lia-deferred-image lia-image-emoji" src="https://communities.vmware.com/html/@33F704DD3F3AEBCD2A2F0CFE047DC885/emoticons/1f605.png" alt=":grinning_face_with_sweat:" title=":grinning_face_with_sweat:" /&gt;&lt;/P&gt;&lt;P&gt;Thanks as always for your help LucD have a nice day &lt;img class="lia-deferred-image lia-image-emoji" src="https://communities.vmware.com/html/@7651DD0E8772B3B5D93ADA9ABA2E067C/emoticons/1f642.png" alt=":slightly_smiling_face:" title=":slightly_smiling_face:" /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Aug 2023 13:00:32 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Weird-error-on-simple-cmdlet/m-p/2983943#M113034</guid>
      <dc:creator>fladjova</dc:creator>
      <dc:date>2023-08-25T13:00:32Z</dc:date>
    </item>
    <item>
      <title>Re: Weird error on simple cmdlet</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Weird-error-on-simple-cmdlet/m-p/2987247#M113258</link>
      <description>&lt;P&gt;I have the same errors when using New-VM in a script while executing the command in a prompt just works fine. Any ideas?&lt;/P&gt;</description>
      <pubDate>Tue, 19 Sep 2023 11:22:24 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Weird-error-on-simple-cmdlet/m-p/2987247#M113258</guid>
      <dc:creator>plan-b</dc:creator>
      <dc:date>2023-09-19T11:22:24Z</dc:date>
    </item>
    <item>
      <title>Re: Weird error on simple cmdlet</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Weird-error-on-simple-cmdlet/m-p/2994740#M113767</link>
      <description>&lt;P&gt;We've hit this too with Start-VM as part of our "New VM" deployment process.&lt;/P&gt;&lt;P&gt;Running vCenter 8.0 U2 (&lt;SPAN&gt;8.0.2.00000&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;(Build: 22385739) from&amp;nbsp;&lt;SPAN&gt;21 SEP 2023 with the latest versions of PowerCLI related modules at the time of writing. &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;We patched ESXi to&amp;nbsp;8.0.2, 22380479 a few days ago, and the VM deployments we've tried since then have all failed at the point of power on with:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;PSMessageDetails :&lt;BR /&gt;Exception : VMware.VimAutomation.Sdk.Types.V1.ErrorHandling.VimException.ViError: 08/11/2023 16:49:02 Start-VM One or more errors occurred. ---&amp;gt; System.AggregateException: One or more errors occurred. ---&amp;gt; vmware.vapi.std.errors.InternalServerError: com.vmware.vapi.std.errors.internal_server_error {'messages': [com.vmware.vapi.std.localizable_message {'id': vapi.bindings.method.impl.unexpected, 'default_message': Provider method implementation threw unexpected exception: com.vmware.vapi.std.errors.InternalServerError, 'args': [com.vmware.vapi.std.errors.InternalServerError], 'params': , 'localized':}, com.vmware.vapi.std.localizable_message {'id': com.vmware.vapi.endpoint.badGateway, 'default_message': The endpoint, while acting as a gateway, received an invalid response from an upstream server it accessed while attempting to fulfill the request., 'args': [], 'params': , 'localized':}], 'data': , 'error_type': INTERNAL_SERVER_ERROR}&lt;BR /&gt;at vmware.vapi.bindings.Stub.&amp;lt;InvokeMethodAsync&amp;gt;d__8`1.MoveNext()&lt;BR /&gt;--- End of inner exception stack trace ---&lt;BR /&gt;at System.Threading.Tasks.Task`1.GetResultCore(Boolean waitCompletionNotification)&lt;BR /&gt;at vmware.cis.TasksStub.List(FilterSpec filterSpec, GetSpec resultSpec, Action`1 _progress, InvocationConfig _invocationConfig)&lt;BR /&gt;at vmware.cis.TasksStub.List(FilterSpec filterSpec, GetSpec resultSpec)&lt;BR /&gt;at VMware.VimAutomation.ViCore.Impl.V1.Service.CisTaskServiceImpl.&amp;lt;GetTasks&amp;gt;d__11.MoveNext()&lt;BR /&gt;at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)&lt;BR /&gt;at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)&lt;BR /&gt;at VMware.VimAutomation.ViCore.Impl.V1.Task.CisTaskServiceProvider.GetNotNullTasks(VimClient client, CisTaskService service, IEnumerable`1 ids)&lt;BR /&gt;at VMware.VimAutomation.ViCore.Impl.V1.Task.CisTaskServiceProvider.&amp;lt;GetTasks&amp;gt;d__11.MoveNext()&lt;BR /&gt;at System.Collections.Generic.List`1.InsertRange(Int32 index, IEnumerable`1 collection)&lt;BR /&gt;at VMware.VimAutomation.ViCore.Impl.V1.Task.CisTaskServiceProvider.GetTaskList(IEnumerable`1 uidList, IEnumerable`1 connectionUidList)&lt;BR /&gt;at VMware.VimAutomation.Sdk.Impl.V1.Task.CoreTaskServiceImpl.GetTaskList(IEnumerable`1 uidList, IEnumerable`1 connectionUidList)&lt;BR /&gt;at VMware.VimAutomation.ViCore.Impl.V1.Service.TaskServiceImpl.&amp;lt;GetTaskCore&amp;gt;d__8.MoveNext()&lt;BR /&gt;at System.Linq.Buffer`1..ctor(IEnumerable`1 source)&lt;BR /&gt;at System.Linq.Enumerable.ToArray[TSource](IEnumerable`1 source)&lt;BR /&gt;at VMware.VimAutomation.ViCore.Impl.V1.Service.TaskServiceImpl.GetTaskById(String uid, CmdletTaskInfoProvider cmdletTaskInfoProvider)&lt;BR /&gt;at VMware.VimAutomation.ViCore.Impl.V1.Service.VmServiceImpl.StartVM(VirtualMachineInterop vm, Boolean isRequestedAsync)&lt;BR /&gt;--- End of inner exception stack trace ---&lt;BR /&gt;at VMware.VimAutomation.ViCore.Impl.V1.Service.VmServiceImpl.StartVM(VirtualMachineInterop vm, Boolean isRequestedAsync)&lt;BR /&gt;at VMware.VimAutomation.ViCore.Util10Ps.BaseCmdlet.GenericServerCallHelper.PerformOperationOnObjects[T](List`1 objects, OperationHandler`1 operation, Boolean runAsynch)&lt;BR /&gt;TargetObject :&lt;BR /&gt;CategoryInfo : NotSpecified: (:) [Start-VM], ViError&lt;BR /&gt;FullyQualifiedErrorId : Client20_VMServiceImpl_StartVM_ViError,VMware.VimAutomation.ViCore.Cmdlets.Commands.StartVM&lt;BR /&gt;ErrorDetails :&lt;BR /&gt;InvocationInfo : System.Management.Automation.InvocationInfo&lt;BR /&gt;ScriptStackTrace : at &amp;lt;ScriptBlock&amp;gt;, F:\test\WebAutomatedManagement\Service\powershell\virtual-server-platform\new-vm.ps1: line 1207&lt;BR /&gt;at &amp;lt;ScriptBlock&amp;gt;, &amp;lt;No file&amp;gt;: line 1&lt;BR /&gt;PipelineIterationInfo : {}&lt;/PRE&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;Having just done some testing from the command line (subtly different to how we drive deployments) I can replicate this error. It also triggers the same "One or more errors occurred" for Stop-VM.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;It could be PowerShell 5.1 related, as when I attempt the same Start/Stop commands against the same VM from PowerShell 7.3.9 it doesn't error. Just seeking someone locally for confirmation of the same experience.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Nov 2023 17:04:58 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Weird-error-on-simple-cmdlet/m-p/2994740#M113767</guid>
      <dc:creator>robinmalik</dc:creator>
      <dc:date>2023-11-08T17:04:58Z</dc:date>
    </item>
    <item>
      <title>Re: Weird error on simple cmdlet</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Weird-error-on-simple-cmdlet/m-p/2994742#M113768</link>
      <description>&lt;P&gt;Did you open an SR?&lt;/P&gt;</description>
      <pubDate>Wed, 08 Nov 2023 17:12:58 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Weird-error-on-simple-cmdlet/m-p/2994742#M113768</guid>
      <dc:creator>LucD</dc:creator>
      <dc:date>2023-11-08T17:12:58Z</dc:date>
    </item>
    <item>
      <title>Re: Weird error on simple cmdlet</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Weird-error-on-simple-cmdlet/m-p/2994743#M113769</link>
      <description>&lt;P&gt;Not yet, it was only brought to my attention this morning. Doing a little more checking/confirming and then I'll raise one tomorrow.&lt;/P&gt;&lt;P&gt;Edit: Sadly, it was not that simple. I'm not able to replicate it working with PowerShell 7 now, erroring at the same point in deployment (so there must be more to it). I also forgot to say, it does start the VM, despite the error &lt;img class="lia-deferred-image lia-image-emoji" src="https://communities.vmware.com/html/@33F704DD3F3AEBCD2A2F0CFE047DC885/emoticons/1f605.png" alt=":grinning_face_with_sweat:" title=":grinning_face_with_sweat:" /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Nov 2023 17:57:06 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Weird-error-on-simple-cmdlet/m-p/2994743#M113769</guid>
      <dc:creator>robinmalik</dc:creator>
      <dc:date>2023-11-08T17:57:06Z</dc:date>
    </item>
    <item>
      <title>Re: Weird error on simple cmdlet</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Weird-error-on-simple-cmdlet/m-p/2994747#M113770</link>
      <description>&lt;P&gt;Great!&lt;BR /&gt;When you do GSS might try to tell you that you need a Developer Support contract for PowerCLI.&lt;BR /&gt;That is not correct, p&lt;SPAN&gt;oint them to&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://blogs.vmware.com/PowerCLI/2017/08/powercli-support-breakdown.html" target="_blank" rel="nofollow noopener noreferrer"&gt;PowerCLI Support Breakdown&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;(para 3 &amp;amp; 4)&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Nov 2023 17:31:06 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Weird-error-on-simple-cmdlet/m-p/2994747#M113770</guid>
      <dc:creator>LucD</dc:creator>
      <dc:date>2023-11-08T17:31:06Z</dc:date>
    </item>
  </channel>
</rss>

