When I try to call the reconfigure VM from vRO It kicks off the Reconfigure Task (I am trying to extend a disk) but nothing happens at all
Reconfigure Virtual Machine
vRO inventory vSphere plug-in error in vm folders
Hello,
I have issue after upgrading my vRO from 7.2 to 7.3. When I go to Inventory – vSphere vCenter Plug-in and try to open “vm” I can see: Error in plug-in
What I noticed is that under my vCenter, user for vRO to vCenter connectivity has permissions only to specific VM folders, which I would like to stay with. When I add permissions for that user to see all VM folders (on datacenter level with propagate enabled) I can see those folders in vRO. It is only related to vRO 7.3, on my previous vRO 7.2 everything is ok.
Did you meet such problem? Any idea?
Is vSphere Essential Plus Kit eligible to use vReallize Orchestrator?
Or I need to buy something more expensive (e.g. vSphere Standard) in order to use it?
How to send an attachment over email in vRO 7.3
Hello Team ,
Appreciate your help on this issue,
I have created a VRO workflow to generate a PDF file based on the request and pushing to file share , I need to send it as an attachment but I am unable to do the same . I came to know that we no longer cannot write a file to VRO local machine as it is been deprecated in VRO 7.3 Below is the code which i have tried , please help me with a solution.
var mime2 = new MimeAttachment("//10.162.162.12/trust/2395.pdf");
var objEmailMessage;
objEmailMessage = new EmailMessage();
objEmailMessage.fromAddress = "toemail@toemail.com";
objEmailMessage.fromName = "Toemail";
objEmailMessage.smtpHost = "30.92.6.59" ;
objEmailMessage.smtpPort = "25";
objEmailMessage.subject = "test";
objEmailMessage.toAddress = "fromemail@from.com";
objEmailMessage.addMimePart("text", "text/html");
objEmailMessage.addMimePart(MimeAttachment, "application/pdf");
objEmailMessage.sendMessage();
Technical preview of vRO vCenter plug-in for vSphere 6.5
Summary
This is not a patch release, but drop-in replacement of the implementation of the vCenter plug-in 6.5 for vRealize Orchestrator
Although the plugin version is 6.5, the plugin implementation is completely redesigned, by keeping the existing content
The new plug-in offers:
- Optimization of the communication with vSphere servers and reducing of the load on these
- Hassle-free update of Scripting API, when Vsphere API changes, thanks to new approach for auto-generated integration
- Removing of security vulnerabilities
- Preserve maximum Scripting API compatibility, respectively content compatibility
For 7.3 release following integrations were delivered:
- All PBM API types are exposed as vRO scripting types
- All SMS API types are exposed as vRO scripting types
- Exposing of the Storage Policies and Policy Components as vRO inventory items
Plugin versioning and interoperaility with vSphere servers
- The plugin version is 6.5
- The plugin core functionality (connectivity, inventory) is compatible with vSphere products with version 5.5 and above.
- vSphere API version exposed in the scripting API is 6.5
- This means that all the API methods, properties and types introduced in Vsphere 6.5 (Which currently is in beta) are made available for vRo scripting content developers and will work if supported by the vSphere server product. For convenience in this new version of the plugin all the methods and properties are annotated in their description (visible in vso.xml and API explorer ) with version tag, e.g '@since vSphere API 5.5'
Interoperability with vRO
The plugin is compatible with vRO version is compatible with version 7.2 and 7.3
Install procedure
Few of the workflows are changed to reflect the minor incompatible changes in the API, so these will be overwritten during install.
The plugin can be installed in the standard way
Versions
Version 6.5.0.5817435
- Fixing in bulk fetching of objects based on queries - plugin factory 'findAll' method now uses default set of properties to be pre-loaded
- Fixes in 'Convert independent disks' workflow
Version 6.5.0.6216831
- Fixes in construction of instances of scripting types based on VLSI basic types , e.g - VcKeyAnyValue'
- Fixes in 'data' objects serialization process
Version 6.5.0.6374976
- Fixes in vlsi client resources finalization to prevent leaking of vlsi monitoring threads
Version 6.5.0.6471915
- Fixes in deserialization of 'Any' attributes, causing failures in "Clone, Windows with single NIC and Credentials" and dependent workflows
Version 6.5.0.7037717
- Rest API query specifications moved to plugin, resulting in performance improvements in case such a query is used (XaaS Blueprint forms etc.)
Microsoft DNS Dynamic Types plug-in
Introduction
Displays DNS hosts, zones, DNS records in the inventory
Workflows to:
- Add a host (A)
- Add an alias (CNAME)
- Add a pointer (PTR0
- Add froward primary zone
- Add reverse primary zone
- Remove a DNS record
- Remove a zone
Installation
- Run "Import Configuration From package" from the Dynamic Types / Configuration category. Use the downloaded package as input.
- Import the package in vRO (the previous step only loaded the types, this one will add the workflows)
- Add a PowerShell host (Please refer to the PowerShell plug-in configuration to do necessary settings for WINRM and authentification)
- Check the PowerShell host works running a simple PowerShell command one it
- Run the config workflow
- At this point you should be able to browse the inventory and right click / run workflows to create / delete zones and records
Disclaimers
This plug-in was created for demonstration and educational purposes. Use at your own risk. Feel free to improve, productise if needed
Download
Plug-in available from Sample Exchange.
Other resources
Blog articles :
Powershell Script Results To Attribute
I am using the workflow "Run Script in VM" which is this powershell script:
$searcher = [ADSISearcher]'(&(objectCategory=computer)(name=DOMAINPC*))'
$searcher.PageSize = 1000
$last = $searcher.FindAll() | Foreach-Object { [int]($_.Properties.name -replace '\D').Trim() } | Sort-Object | Select-Object -Last 1
$digitLength = "$last".Length
$vmname= "{0}{1:D}" -f 'DOMAINPC',($last+1)
$vmname
[2017-11-01 12:11:21.515] [I] DOMAINPC205
IN VRO, it returns a name as expected DOMAINPC205. I'm outputting that text (at least I thought I was) to an attribute as a string as seen below
On my next workflow I'm using that output attribute as an input for creating a PC in an OU, but its always NULL., because the string value in the attribute is null. How can I get the results as a useable attribute?
I cannot seem to figure this out....any ideas?
How to map field type Search Box with entity type: String while creating an XaaS Blueprint Form in vRealize Automation
I am creating an XaaS Blueprint form in vRA. I want to add a field in the form which needs to be of type "Search box". I want to provide some predefined values using an action element in vRealize Orchestrator. Now, this action element returns the output of array/string type. But, I can't find any way in XaaS blueprint form to map string type entity with field type "Search box". Is there any way through which I can achieve this??
Any help is appreciated.
requestCatalogItem - timeout signal
Hi All,
We have a workflow that invokes a blueprint in VRA from requestCatalogItem action. The blueprint takes long time to provision the VM( 2-2.5 hrs). The action requestCatalogItem throws timeout signal after 1.5 hrs. I have already increased "vCloud Automation Center" plugin timeout to 180 mins. How to increase the timeout?
Any help appreciated.
Query DNS
Has anyone came across a way to query DNS from orchestrator to verify whether or not a DNS record exists? I am trying to create a WF in which a potential CNAME is presented, checked and if not used create the CNAME. Creating the entry, or removing it, is not a problem. I've googled it and came back with solutions for node.js but nothing for the js being used in orchestrator. Did anyone have success trying to perform a lookup?
Source in "Copy file from vCO to Guest" workflow
I would like to be able to specify a different source in this workflow (namely my local workstation) but I'm struggling with the documentation and determining if this is possible and how you would do it. So, I'm asking the community if anyone else has done anything like this or can point me to some documentation that would explain this to me. Thank you.
How to access PowerCLI cmdlets from PowerShell Snapin
Hello!
For the life of me, I cannot seem to figure out how to access the PowerCLI cmdlets from Orchestrator. I am running Orchestrator version 7.2, and have installed the PowerShell1.0.13.6035468 plugin in Orchestrator. My PowerShell host is running version 5.1.14393.1770, and VMware PowerCLI 6.5 Release 1 build 4624819. When I go to the Inventory tab in Orchestrator and expand PowerShell->pshost->Snapins, there is Microsoft.PowerShell.Core and all of its cmdlets listed beneath, but nothing referring to PowerCLI or its commands. What am I missing here?
Thanks
Add host to vCenter workflow fails when cluster name contains non-ASCII characters
We have a cluster that has a cluster name with Chinese character "王”, and it fails when we want to add a host to this cluster in vRO using the workflow in the picture below.
The Varialbes and logs of the failed run:
And we changed the cluster name "王" to "New Cluster", keep other info unchanged, and it succeeded.
Any idea/clues will be very appricated! Or if verified that it's a issue , would it be fixed in the next version of vRO will be appriciated.
vRO appliance: 7.3.0.21553 build 5521409
programmatically changing workflow task name & description? __taskName & other __ special parameters?
I've been poking around the development documentation, working on a workflow that schedules another workflow to be executed at specified time/dates. I've got things somewhat functional, but have some ideas for improvements that I'm trying to implement.
I came across an example in the Developers Guide that shows how to specify the name of a scheduled workflow at creation by using the special '__taskName' parameter which works as expected. I'm curious, are there other special underscore parameters that I can use for more control over the scheduled workflows I create via javascript? I attempted to use '__taskDescription', hoping to be able to write a descriptive description but that didn't appear to work.
Are there other underscore parameters similar to __taskName? I don't see anything in the developer guide other than this one lone example.
Retrieving User AD Object
I need to update a field in AD on a computer object that requires a user object. Currently I am splitting the request owner and get the login ID. I need to find the corresponding user object. I am able to find the computer name easily but the user object has been a pain to find so far.
var name = userName.split('@');
userName = name[0];
user = Server.findAllForType("AD:User", "userName")
Warning Icon - Current version is not the latest version
My group is developing a new package of workflows using Orchestrator 7.3. Recently I used the Package command Increment Version to set the version of all elements to 1.0.0.
In the Design mode, with some workflows selected and the General tab displayed, there is a yellow triangle with an exclamation mark inside it, next to the version. Hovering the mouse over it displays the message "Current version is not the latest version". This doesn't happen with all of the workflows or other elements, but with quite a few. There are no later versions of these elements.
What is this telling me exactly? What can i do to fix this?
VRO Rest Api 7.3 requestion Workflow Executions Logs returns empty array
Hi,
in our Web Client Plug-in, we start workflows, and show a history of the executions for these workflows. We include the workflow logs in our gui.
When testing with 7.3, I noticed that the logs aways return as an empty array - I don't know when this has changed, our funtionality has been working for about 2 years -
I checked the docu for the api, and as far as I can see, it has not changed. I tried to get logs from vCenter workflows as well (for example, Configure a vCenter Instance) - but these logs also are empty. Is there anything known about this?
Heres how I call the logs
https://<vroServer>:8281/vco/api/workflows/<workflowId>/executions/<executionId>/logs
I get a response code of 200, and the data returned is :
{"logs":[]}
This happens on all workflows that I have tried, although they use both System.log and Server.log to log information, and the logs are visible in the vRO.
Thanks for any help
Cathy
vRO 7.3 + NSX 1.1.0 failed to create connection manager
I need to choose one of the configured NSX Endpoints, depending on an input parameter.
For that I wanted to use the NSXConnectionManager.findConnectionByName(<|>?String_name) method, but I get a null pointer exception early on, when creating a new NSXConnectionManager:
var myNSXConnectionManager = new NSXConnectionManager();
exception: 'Cannot create NSXConnection object : java.lang.NullPointerException'
What is the correct way to create a new connection manager instance? Do I have to pass a value?
Get Virtual Machines From Deployment
In vRA 6.x I was able to find all of the child virtual machines in a multi machine blueprint by finding the parent virtual machine and looking at the parent's child virtual machines. Unfortunatley the link to the parent virtual machine for virtual machines that are components of a deployment appears to be null now in vRA 7.x.
Is there any way for one virtual machine component in a deployment to find out what other virtual machines are in the deployment? I would expect there be some unifying entity (like a parent entity) tying the machines together. Also, if there is such an entity, when is it created?
unable to refresh request form from the server
Hi
I try to create a new blueprint with custom properties.
Hostname
Location
sql
operating system
The field of the operating system should present me all templates according to previous filed.
Unfortunately, nothing is presents. instead I receive the following error: unable to refresh request form from the server
localtion:
sql:
operating system:
The action which query for templates - When I run it as a workflow it returns all the templates