I need to thank you for the videos. Helping me a lot to understand how vRA work. One question i have is that i've created a Extensibility Actions (embeded on vRA not using vRO) on the catalog to install apps in an already created VM using Powershell. On the custom form is only a text field that the user insert the VM name and the Field ID shows "textField_5dce36b7" On the action i've added a variable "$vm = $context($inputs.customProperties.textField_5dce36b7)" to get the user input but it's not working and get a blank name and the script fail. Do you know where is the problem? Using a blueprint as you show on your video works without a problem, but thats not the case.
Hey Eduardo, its excellent to hear the videos have helped. Just so I understand you have an abx action as a standalone catalog item where someone enters a vm name and then it goes off and installs something? If my understanding is correct, you shouldnt need to add a custom field, you could just have an input field on the action called vm_name and reference it directly like $vm = $inputs.vm_name, the action input should automatically come up as a text field on the form
@@VirtualisemeTV This input field is added in the script ou in the "Default inputs" in ABX? I've tried to add vm_name in "Default inputs" but i need to put a value. If i add anything as a value i can view it on the formm but it is a array field not a text field. I cannot change the array to text in the custom form only the label
hello, when I try with the ABX I have the error Cannot validate argument on parameter 'Server'. The argument is null, empty, or an element of the argument collection contains a null value. Supply a collection that does not contain any null values and then try the command again. at handler, /function/client_main.psm1: line 13 at applyFunction, /function/abx_wrapper.ps1: line 442 at , /function/abx_wrapper.ps1: line 473 and with the workflow java.net.UnknownHostException: esxi.virtual.lab: Name or service not known (Workflow:Copy file from vCO to guest / Scriptable task (item1)#13)
Hey Max, the ABX script is failing the connection for vCenter, need to make sure the variable for vcfqdn, user and password are all correct, The error appears to be pointing to the fqdn value being null. For the workflow, it looks like you have not got your vCenter endpoint setup in vRO and it cant find the VM object, would need to have a look at the workflow run and the variable vcVM and make sure that is populated with the VM object.
@@maxbriet235 PS host should not be needed, ABX powershell onprem provider should have powercli commands built in. what is the error? if its erroring at get-vm then yeah the connect-viserver is failing. what faas provider are you using? should be on-prem
@@VirtualisemeTV the error is 10/07/2021 08:57:23 Get-VM You are not currently connected to any servers. Please connect first using a Connect cmdlet. at handler, /function/client_main.psm1: line 16 at applyFunction, /function/abx_wrapper.ps1: line 442 at , /function/abx_wrapper.ps1: line 473 the provider is on-prem
I have followed the same method to create a file, but getting error" [On-Prem Provider] invocation failed. Reason: Execution time has elapsed. Status code:502". Please suggest
Hey Umesh, are you using vRA Cloud or vRA 8 on-prem? I am assuming this is with the ABX option? I have seen this error before, was when the onprem faas provider is unable to download required dependencies
@@VirtualisemeTV Thank you for you response. I am using vRA 8.4 on-prem and base image is Windows2016/19. Is there any prerequisites or dependencies like cloudbase-init or extensibility cloud proxy, whihc need to install.
@@umeshtiwari8570 Which method are you trying to do? the one running cloud config which is the first way, cloud base image is required. the other 2 use events.
@@VirtualisemeTV I am using 2nd method, created a action and using event compute post provision. Agent cloudbase init is not installed/configured in the template.
@@umeshtiwari8570 Ok that only requires VMware tools to be installed on the machine, as its connecting to vCenter. There is a part in the script that waits for VMware Tools to come up which could be causing it to time out if not installed on the template.
Been following your videos. I must say they are right there on the top for VRealize automation. Keep up the excellent work.
Can customization spec and cloud base work together. I am trying to the same thing but not seeing the user added to the group
I need to thank you for the videos. Helping me a lot to understand how vRA work.
One question i have is that i've created a Extensibility Actions (embeded on vRA not using vRO) on the catalog to install apps in an already created VM using Powershell. On the custom form is only a text field that the user insert the VM name and the Field ID shows "textField_5dce36b7"
On the action i've added a variable "$vm = $context($inputs.customProperties.textField_5dce36b7)" to get the user input but it's not working and get a blank name and the script fail.
Do you know where is the problem? Using a blueprint as you show on your video works without a problem, but thats not the case.
Hey Eduardo, its excellent to hear the videos have helped. Just so I understand you have an abx action as a standalone catalog item where someone enters a vm name and then it goes off and installs something?
If my understanding is correct, you shouldnt need to add a custom field, you could just have an input field on the action called vm_name and reference it directly like $vm = $inputs.vm_name, the action input should automatically come up as a text field on the form
@@VirtualisemeTV This input field is added in the script ou in the "Default inputs" in ABX?
I've tried to add vm_name in "Default inputs" but i need to put a value. If i add anything as a value i can view it on the formm but it is a array field not a text field. I cannot change the array to text in the custom form only the label
hello,
when I try with the ABX I have the error Cannot validate argument on parameter 'Server'. The argument is null, empty, or an element of the argument collection contains a null value. Supply a collection that does not contain any null values and then try the command again. at handler, /function/client_main.psm1: line 13 at applyFunction, /function/abx_wrapper.ps1: line 442 at , /function/abx_wrapper.ps1: line 473
and with the workflow
java.net.UnknownHostException: esxi.virtual.lab: Name or service not known (Workflow:Copy file from vCO to guest / Scriptable task (item1)#13)
Hey Max, the ABX script is failing the connection for vCenter, need to make sure the variable for vcfqdn, user and password are all correct, The error appears to be pointing to the fqdn value being null.
For the workflow, it looks like you have not got your vCenter endpoint setup in vRO and it cant find the VM object, would need to have a look at the workflow run and the variable vcVM and make sure that is populated with the VM object.
@@VirtualisemeTV hello
we need a powershell host? on the BX log I saw get-vm error because I'm not connect to vcenter
the error on log is Connect-VIServer Name or service not known
@@maxbriet235 PS host should not be needed, ABX powershell onprem provider should have powercli commands built in. what is the error? if its erroring at get-vm then yeah the connect-viserver is failing. what faas provider are you using? should be on-prem
@@VirtualisemeTV the error is 10/07/2021 08:57:23 Get-VM You are not currently connected to any servers. Please connect first using a Connect cmdlet. at handler, /function/client_main.psm1: line 16 at applyFunction, /function/abx_wrapper.ps1: line 442 at , /function/abx_wrapper.ps1: line 473
the provider is on-prem
I have followed the same method to create a file, but getting error" [On-Prem Provider] invocation failed. Reason: Execution time has elapsed. Status code:502". Please suggest
Hey Umesh, are you using vRA Cloud or vRA 8 on-prem? I am assuming this is with the ABX option? I have seen this error before, was when the onprem faas provider is unable to download required dependencies
@@VirtualisemeTV Thank you for you response. I am using vRA 8.4 on-prem and base image is Windows2016/19. Is there any prerequisites or dependencies like cloudbase-init or extensibility cloud proxy, whihc need to install.
@@umeshtiwari8570 Which method are you trying to do? the one running cloud config which is the first way, cloud base image is required. the other 2 use events.
@@VirtualisemeTV I am using 2nd method, created a action and using event compute post provision.
Agent cloudbase init is not installed/configured in the template.
@@umeshtiwari8570 Ok that only requires VMware tools to be installed on the machine, as its connecting to vCenter. There is a part in the script that waits for VMware Tools to come up which could be causing it to time out if not installed on the template.