<?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>n8watcher Tracker</title>
    <link>https://communities.vmware.com/wbsdv95928/tracker</link>
    <description>n8watcher Tracker</description>
    <pubDate>Wed, 15 Nov 2023 09:38:56 GMT</pubDate>
    <dc:date>2023-11-15T09:38:56Z</dc:date>
    <item>
      <title>Deployment of vIDM Cluster fails because of strange LB certificate isse</title>
      <link>https://communities.vmware.com/t5/VMware-Aria-Suite-Lifecycle/Deployment-of-vIDM-Cluster-fails-because-of-strange-LB/m-p/2976951#M275</link>
      <description>&lt;P&gt;Hi everybody,&lt;/P&gt;&lt;P&gt;I'm trying to deploy a vIDM Cluster within our new installed Lifecycle Manager but I've got problems with our F5 loadbalancer. Nodes are installed successfully but everytime when the process VMware Identity Manager trust Load Balancer certificate is reached I've got following error message:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="error_vLCM.png" style="width: 400px;"&gt;&lt;img src="https://communities.vmware.com/t5/image/serverpage/image-id/102550iE8A41F24934D21F3/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="error_vLCM.png" alt="error_vLCM.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;DIV class=""&gt;&lt;SPAN class=""&gt;Error Code: LCMVIDM71092&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;SPAN class=""&gt;Failed to trust load balancer's certificate. Ensure load balancer has proper root certificate or provide the root certificate chain as retry param 'vidmLBRootCertificateChain' and try again.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;SPAN class=""&gt;Unable to fetch root/intermediate CA certificates from the certificate chain provided. Failed to trust vIDM load balancer certificate. Retry by providing the root or intermediate CA certificate chain&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN class=""&gt;It happens with a "normal", wildcard and also Lifecycle Manager created selfsigned certificate. Also when I first deploy a node and scale it up to a cluster I've got this error.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN class=""&gt;Someone also using F5 with a vIDM Cluster and could tell me the procedure?&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN class=""&gt;Thanks in advance.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt; &lt;/P&gt;</description>
      <pubDate>Wed, 12 Jul 2023 13:40:32 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-Aria-Suite-Lifecycle/Deployment-of-vIDM-Cluster-fails-because-of-strange-LB/m-p/2976951#M275</guid>
      <dc:creator>n8watcher</dc:creator>
      <dc:date>2023-07-12T13:40:32Z</dc:date>
    </item>
    <item>
      <title>Assign recognized vCenter VMs to User / Groups by VM attribute</title>
      <link>https://communities.vmware.com/t5/VMware-Aria-Automation-Tools/Assign-recognized-vCenter-VMs-to-User-Groups-by-VM-attribute/m-p/2976939#M25186</link>
      <description>&lt;P&gt;Hi everybody,&lt;/P&gt;&lt;P&gt;Is it possible to assign somehow the recognized vCenter VMs in Cloud Assembly to dedicated Automation users / groups? So they can start day2 actions but only on the VMs they have access to?&lt;/P&gt;&lt;P&gt;Ideally it would be nice if we can assign the Users the VMs by VM custom attribute or if this isn't possible by VM tag.&lt;/P&gt;&lt;P&gt;Thanks for any info on this topic.&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jul 2023 12:49:17 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-Aria-Automation-Tools/Assign-recognized-vCenter-VMs-to-User-Groups-by-VM-attribute/m-p/2976939#M25186</guid>
      <dc:creator>n8watcher</dc:creator>
      <dc:date>2023-07-12T12:49:17Z</dc:date>
    </item>
    <item>
      <title>vRO 7.6 Check IP in vCenter workflow</title>
      <link>https://communities.vmware.com/t5/VMware-Aria-Automation/vRO-7-6-Check-IP-in-vCenter-workflow/m-p/2284275#M20321</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi together,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm stuck in creating a workflow to check if the given IP is existing in our vCenter. I've got two scriptable tasks. The first one is working but didn't fill the variables which I need for error handling, sending teams and mail notification ( yes the attributes are create in the workflow and assigned to the scriptable task ). The second script should work faster but is every time going to error also if the IP doesn't exist:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV&gt;&lt;SPAN style="color: #0000ff;"&gt;object&lt;/SPAN&gt; = SdkConnection.searchIndex.findByIp(&lt;SPAN style="color: #0000ff;"&gt;null&lt;/SPAN&gt;,depIP,&lt;SPAN style="color: #0000ff;"&gt;true&lt;/SPAN&gt;);&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;var&lt;/SPAN&gt; vm = &lt;SPAN style="color: #0000ff;"&gt;object&lt;/SPAN&gt;.Name&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;if&lt;/SPAN&gt; (vm != &lt;SPAN style="color: #0000ff;"&gt;null&lt;/SPAN&gt; ) {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #0000ff;"&gt;throw&lt;/SPAN&gt; IPError&lt;/P&gt;&lt;P&gt;} &lt;SPAN style="color: #0000ff;"&gt;else&lt;/SPAN&gt; {&lt;/P&gt;&lt;P&gt;&amp;nbsp; System.log(&lt;SPAN style="color: #a31515;"&gt;"IP: "&lt;/SPAN&gt;+ depIP+&lt;SPAN style="color: #a31515;"&gt;" not detected."&lt;/SPAN&gt;);&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;System.log(&lt;SPAN style="color: #a31515;"&gt;"Object Name: "&lt;/SPAN&gt;+&lt;SPAN style="color: #0000ff;"&gt;object&lt;/SPAN&gt;.Name)&lt;/P&gt;&lt;/DIV&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV&gt;vmlist = VcPlugin.getAllVirtualMachines();&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;for&lt;/SPAN&gt; (i = &lt;SPAN style="color: #09885a;"&gt;0&lt;/SPAN&gt;; i &amp;lt; vmlist.length; i++) {&lt;/P&gt;&lt;P&gt;&amp;nbsp; vm = vmlist[i];&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #0000ff;"&gt;if&lt;/SPAN&gt;(vm.guest.IpAddress == depIP) {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; System.log (&lt;SPAN style="color: #a31515;"&gt;"VM: "&lt;/SPAN&gt;+vm.name +&lt;SPAN style="color: #a31515;"&gt;", IP: "&lt;/SPAN&gt;+ depIP);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Host = &lt;SPAN style="color: #a31515;"&gt;"VM: "&lt;/SPAN&gt;+vm.name +&lt;SPAN style="color: #a31515;"&gt;", IP: "&lt;/SPAN&gt;+ depIP + &lt;SPAN style="color: #a31515;"&gt;"deployment failed"&lt;/SPAN&gt;;&lt;/P&gt;&lt;P&gt;&amp;nbsp; messageTitle = &lt;SPAN style="color: #a31515;"&gt;"VM: "&lt;/SPAN&gt;+vm.name +&lt;SPAN style="color: #a31515;"&gt;", IP: "&lt;/SPAN&gt;+ depIP + &lt;SPAN style="color: #a31515;"&gt;"deployment failed"&lt;/SPAN&gt;;&lt;/P&gt;&lt;P&gt;&amp;nbsp; messageText = &lt;SPAN style="color: #a31515;"&gt;"VM deployment failed because of duplicate IP"&lt;/SPAN&gt;;&lt;/P&gt;&lt;P&gt;&amp;nbsp; ErrorContentFailed = messageText;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #0000ff;"&gt;throw&lt;/SPAN&gt; &lt;SPAN style="color: #a31515;"&gt;"IP exist"&lt;/SPAN&gt;;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #0000ff;"&gt;else&lt;/SPAN&gt; {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; System.log(&lt;SPAN style="color: #a31515;"&gt;"IP: "&lt;/SPAN&gt;+ depIP+&lt;SPAN style="color: #a31515;"&gt;" not detected."&lt;/SPAN&gt;);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;&lt;/DIV&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm new with vRO and scripting so any help is appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks guys. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jul 2020 06:40:37 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-Aria-Automation/vRO-7-6-Check-IP-in-vCenter-workflow/m-p/2284275#M20321</guid>
      <dc:creator>n8watcher</dc:creator>
      <dc:date>2020-07-08T06:40:37Z</dc:date>
    </item>
    <item>
      <title>vRA 7.6 / vRO date/time automatically to VM attribute</title>
      <link>https://communities.vmware.com/t5/VMware-Aria-Automation-Tools/vRA-7-6-vRO-date-time-automatically-to-VM-attribute/m-p/2317133#M18732</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi together,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've got a question regarding how to add date/time automatically to a vm attribute during deployment.&lt;/P&gt;&lt;P&gt;Currently my colleagues need to fill the text field which is linked to VM attribute manually. &lt;/P&gt;&lt;P&gt;They want an automatically filled field in custorm form or a workflow which adds the date/time during deployment to the defined VM attribute.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've build a workflow which generates the current date, time but I didn't know how to link them to the VM attribute:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="java" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_15931044099682101 jive_text_macro" data-renderedposition="173.33334350585938_8_1233_272" jivemacro_uid="_15931044099682101" modifiedtitle="true"&gt;&lt;P&gt;var day = new Date().getDate().toString();&lt;/P&gt;&lt;P&gt;var month = (new Date().getMonth() + 1).toString();&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(day.length &amp;lt; 2) {&lt;/P&gt;&lt;P&gt;&amp;nbsp; day = "0" + day;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(month.length &amp;lt; 2) {&lt;/P&gt;&lt;P&gt;&amp;nbsp; month = "0" + month;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;var hour = new Date().getHours().toString();&lt;/P&gt;&lt;P&gt;var minute = new Date().getMinutes().toString();&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(hour.length &amp;lt; 2) {&lt;/P&gt;&lt;P&gt;&amp;nbsp; hour = "0" + hour;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(minute.length &amp;lt; 2) {&lt;/P&gt;&lt;P&gt;&amp;nbsp; minute = "0" + minute;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;var date = day + "." + month + "." + new Date().getFullYear() + " " + hour + ":" + minute;&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;VM attribute: &lt;SPAN style="color: #303030; font-family: Metropolis, 'Avenir Next', 'Helvetica Neue', Arial, sans-serif; font-size: 11px; background-color: #d9e4ea;"&gt;VMware.Attribute0.Value&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Did someone no how to connect them so that I can use this workflow in my blueprint to fill automatically the needed attribute?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you guys.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Jun 2020 17:04:48 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-Aria-Automation-Tools/vRA-7-6-vRO-date-time-automatically-to-VM-attribute/m-p/2317133#M18732</guid>
      <dc:creator>n8watcher</dc:creator>
      <dc:date>2020-06-25T17:04:48Z</dc:date>
    </item>
    <item>
      <title>Re: vRA 7.6 software component powershell create OU and join VM fails with exit value 1</title>
      <link>https://communities.vmware.com/t5/VMware-Aria-Automation-Tools/vRA-7-6-software-component-powershell-create-OU-and-join-VM/m-p/1824701#M13147</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've solved this. Problem is Get-ADorganizationalunit in addition with -Identity parameter because it will give us an error OU in Active Directory not found if the OU doesn't exist. vRA takes this "error" and give it as exit=1 back and stop the deployment / decomission the VM because of that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To solve it easily use Get-ADOrganizational Unit with -FIlter parameter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your input.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Jun 2020 12:26:38 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-Aria-Automation-Tools/vRA-7-6-software-component-powershell-create-OU-and-join-VM/m-p/1824701#M13147</guid>
      <dc:creator>n8watcher</dc:creator>
      <dc:date>2020-06-12T12:26:38Z</dc:date>
    </item>
    <item>
      <title>Re: vRA 7.6 software component powershell create OU and join VM fails with exit value 1</title>
      <link>https://communities.vmware.com/t5/VMware-Aria-Automation-Tools/vRA-7-6-software-component-powershell-create-OU-and-join-VM/m-p/1824699#M13145</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I mean when I write the OU path directly into the software component&amp;nbsp; and didn't take the variable it works without any error.&lt;/P&gt;&lt;P&gt;So instead of:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_15917653180126241" data-renderedposition="70_8_1233_16" jivemacro_uid="_15917653180126241"&gt;&lt;P&gt;Write-Output New-ADOrganizationalUnit -Name ""$createOUName"" -Path ""$CreateOUPath"" -ProtectedFromAccidentalDeletion $false -Credential $ADcredential -Server $domainController -ErrorAction Ignore&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'll fill $CreateOUPath:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_15917654017929044 jive_text_macro" data-renderedposition="148_8_1233_16" jivemacro_uid="_15917654017929044"&gt;&lt;P&gt;Write-Output New-ADOrganizationalUnit -Name ""$createOUName"" -Path ""OU=TEST,dc=test1,dc=test,dc=intern"" -ProtectedFromAccidentalDeletion $false -Credential $ADcredential -Server $domainController -ErrorAction Ignore&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The first one creates OU and later join VM to domain but throw the mentioned exit error=1.&lt;/P&gt;&lt;P&gt;The second one works like a charm and complete deployment finished successfully.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can it be a bug?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jun 2020 05:06:38 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-Aria-Automation-Tools/vRA-7-6-software-component-powershell-create-OU-and-join-VM/m-p/1824699#M13145</guid>
      <dc:creator>n8watcher</dc:creator>
      <dc:date>2020-06-10T05:06:38Z</dc:date>
    </item>
    <item>
      <title>Re: vRA 7.6 software component powershell create OU and join VM fails with exit value 1</title>
      <link>https://communities.vmware.com/t5/VMware-Aria-Automation-Tools/vRA-7-6-software-component-powershell-create-OU-and-join-VM/m-p/1824697#M13143</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;""myVar"" didn't returned an error message exept from:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #565656; font-family: Metropolis, 'Avenir Next', 'Helvetica Neue', Arial, sans-serif; font-size: 13px;"&gt;ABORT. Encountered error in Powershell. Error while executing script: Process exited with an error: 1 (Exit value: 1)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #565656; font-family: Metropolis, 'Avenir Next', 'Helvetica Neue', Arial, sans-serif; font-size: 13px;"&gt;But VM and OU are created and VM is domain joined but because of error complete deployment faild and VM is decomissioned.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #565656; font-family: Metropolis, 'Avenir Next', 'Helvetica Neue', Arial, sans-serif; font-size: 13px;"&gt;&lt;img class="lia-deferred-image lia-image-emoji" src="https://communities.vmware.com/html/@8D3AC78033E090809829B1C8262B7619/emoticons/1f61e.png" alt=":disappointed_face:" title=":disappointed_face:" /&gt; so same as before. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #565656; font-family: Metropolis, 'Avenir Next', 'Helvetica Neue', Arial, sans-serif; font-size: 13px;"&gt;Didn't get it what is here the problem with the OU Path from custom form. As I said when I only change OU path to static it's working:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #565656; font-family: Metropolis, 'Avenir Next', 'Helvetica Neue', Arial, sans-serif; font-size: 13px;"&gt;Write-Output New-ADOrganizationalUnit -Name "TESTDL" -Path "OU=TEST,dc=test1,dc=test,dc=intern" -ProtectedFromAccidentalDeletion $false -Credential $ADcredential -Server $domainController -ErrorAction Ignore&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jun 2020 18:14:26 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-Aria-Automation-Tools/vRA-7-6-software-component-powershell-create-OU-and-join-VM/m-p/1824697#M13143</guid>
      <dc:creator>n8watcher</dc:creator>
      <dc:date>2020-06-09T18:14:26Z</dc:date>
    </item>
    <item>
      <title>Re: vRA 7.6 software component powershell create OU and join VM fails with exit value 1</title>
      <link>https://communities.vmware.com/t5/VMware-Aria-Automation-Tools/vRA-7-6-software-component-powershell-create-OU-and-join-VM/m-p/1824695#M13141</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi daphnissov,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've reworked the script with your recommendations and get following error:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;&lt;SPAN style="color: #565656; font-family: Metropolis, 'Avenir Next', 'Helvetica Neue', Arial, sans-serif; font-size: 13px;"&gt;New-ADOrganizationalUnit -Name TestDL28 -Path OU=TEST,DC=test1,DC=test,DC=intern -ProtectedFromAccidentalDeletion False -Credential UserName Password -------- -------- XXXX System.Security.SecureString -Server DC01.test1.test.intern Add-Computer : Computer 'vRAtestAD36' failed to join domain 'test1.test.intern\DC01.test1.test.intern' from its current workgroup 'WORKGROUP' with following error message: The system cannot find the file specified. At C:\Windows\Temp\fea51b03-d7c5-4457-9875-a0a4da41f126\task.ps1:21 char:1 + Add-Computer -DomainName $Domain -OUPath $TargetOU -Credential $ADcre ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : OperationStopped: (vRAtestAD36:String) [Add-Comp uter], InvalidOperationException + FullyQualifiedErrorId : FailToJoinDomainFromWorkgroup,Microsoft.PowerShe ll.Commands.AddComputerCommand 0 True ABORT. Encountered error in Powershell. Error while executing script: Process exited with an error: 1 (Exit value: 1)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Dome&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jun 2020 15:24:16 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-Aria-Automation-Tools/vRA-7-6-software-component-powershell-create-OU-and-join-VM/m-p/1824695#M13141</guid>
      <dc:creator>n8watcher</dc:creator>
      <dc:date>2020-06-09T15:24:16Z</dc:date>
    </item>
    <item>
      <title>vRA 7.6 software component powershell create OU and join VM fails with exit value 1</title>
      <link>https://communities.vmware.com/t5/VMware-Aria-Automation-Tools/vRA-7-6-software-component-powershell-create-OU-and-join-VM/m-p/1824693#M13139</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi together,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hopefully someone could help because I'm getting crazy with this problem.&lt;/P&gt;&lt;P&gt;My plan is to deploy a VM with vRA 7.6 and everything works exept the powershell software component.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This powershell script should only get the variable from custom form and check the AD if OU exists or not, create if not exist and join the VM to domain.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;# username password for AD join&lt;/P&gt;&lt;P&gt;$password = "xxx" | ConvertTo-SecureString -asPlainText -Force&lt;/P&gt;&lt;P&gt;$username = "xxx" &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;$ADcredential = New-Object System.Management.Automation.PSCredential($username,$password)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;# Set DomainController for specific Domain&lt;/P&gt;&lt;P&gt;$domainController = (Get-ADDomainController -Domain $Domain -Discover -Writable -SiteName "Backbone").HostName[0].ToString()&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try{&lt;/P&gt;&lt;P&gt;Get-ADOrganizationalUnit -Identity $TargetOU -Credential $ADcredential -Server $domainController&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;catch{&lt;/P&gt;&lt;P&gt;New-ADOrganizationalUnit -Name $createOUName -Path "$CreateOUPath" -ProtectedFromAccidentalDeletion $false -Credential $ADcredential -Server $domainController -ErrorAction Ignore&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;#AD join&lt;/P&gt;&lt;P&gt;Add-Computer -DomainName $Domain -OUPath $TargetOU -Credential $ADcredential -Server $domainController -PassThru -Verbose #-Restart&lt;/P&gt;&lt;P&gt;$LASTEXITCODE = 0&lt;/P&gt;&lt;P&gt;$LASTEXITCODE&lt;/P&gt;&lt;P&gt;exit&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;( code insertion doesn't work as expected &lt;img class="lia-deferred-image lia-image-emoji" src="https://communities.vmware.com/html/@8D3AC78033E090809829B1C8262B7619/emoticons/1f61e.png" alt=":disappointed_face:" title=":disappointed_face:" /&gt; )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I've checked:&lt;/P&gt;&lt;P&gt;- if the OU exist the PS script is working and join the new VM to the given OU&lt;/P&gt;&lt;P&gt;- when I've changed $createOUPath variable to a static entry the PS script is working and a new OU is created and VM joined to this OU&lt;/P&gt;&lt;P&gt;- when I execute the script locally on a VM template it is working without any error&lt;/P&gt;&lt;P&gt;- I've added &lt;SPAN style="background-color: #f6f6f6;"&gt;$LASTEXITCODE and -ErrorAction Ignore and still getting: "&lt;SPAN style="color: #565656; font-family: Metropolis, 'Avenir Next', 'Helvetica Neue', Arial, sans-serif; font-size: 13px;"&gt;ABORT. Encountered error in Powershell. Error while executing script: Process exited with an error: 1 (Exit value: 1)" but $LASTEXITCODE is shown with value 0?!&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #f6f6f6; color: #565656; font-size: 13px; font-family: Metropolis, 'Avenir Next', 'Helvetica Neue', Arial, sans-serif;"&gt;So I know that the problem is the $CreateOUPath variable because (as mentioned above) when I'll enter there static entry it works.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #f6f6f6; color: #565656; font-size: 13px; font-family: Metropolis, 'Avenir Next', 'Helvetica Neue', Arial, sans-serif;"&gt;Did someone know what I'm doing wrong?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #f6f6f6; color: #565656; font-size: 13px; font-family: Metropolis, 'Avenir Next', 'Helvetica Neue', Arial, sans-serif;"&gt;Thank you guys.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jun 2020 14:25:34 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-Aria-Automation-Tools/vRA-7-6-software-component-powershell-create-OU-and-join-VM/m-p/1824693#M13139</guid>
      <dc:creator>n8watcher</dc:creator>
      <dc:date>2020-06-09T14:25:34Z</dc:date>
    </item>
  </channel>
</rss>

