HI
I am trying to automate the deployment of DLR and then connect it to the logical swicth using orchestrator workflow.
But dont getting an option to automate the DLR deployment.
Any help or guidance is appreciated.
HI
I am trying to automate the deployment of DLR and then connect it to the logical swicth using orchestrator workflow.
But dont getting an option to automate the DLR deployment.
Any help or guidance is appreciated.
I am planning to create a action which will basically login to NSX using REST API and then create a array which will store the value for transportzone.
I created a workflow with REST api for testing and it worked.
Now i am trying to create the action using the same working code.
But i am not able to understand how i will connect using REST in this mode ,
I cannt get a option to select my NSX manager which i have added in orchestrator because there is not option to select the defined REST API.
What can i do in code in order to have the REST API enabled
I am apasting the code that i am trying to use.I am new to programming and hence if there is any mistake in the code plz let me know.
/ Return a list of all the EDGE-IDs in XML format (string)
// Note: this works only with the first PAGE of the edge, 200 edges per page
// Prepare request
var arrAuthenticationParams;
arrAuthenticationParams = ["Shared Session", "admin", "PXXXXX"];
var objRESTAuthentication;
objRESTAuthentication = RESTAuthenticationManager.createAuthentication("Basic", arrAuthenticationParams);
var host_url = 'https://NSX IP Address/api'
var nsxManagerRestHost = RESTHost(host_url);
var request = nsxManagerRestHost.createRequest("GET","/2.0/vdn/scopes");
request.contentType = "application/xml";
// Esecute request
System.debug("Querying list of first 200 EDGEs");
//System.debug("Request URL: " + request.fullUrl);
var response = request.execute();
// Evaluate the response
//System.debug("Response Status Code: " + response.statusCode);
if (response.statusCode == 200) {
//System.debug("EDGE list is " + response.contentAsString);
System.debug("Response is Success!");
}
else {
throw("Failed to get EDGE list! ");
}
// Return XML response
//edgeList = response.contentAsString;
edgeList = response.contentAsString;
System.debug ("Reslut:" + edgeList);
return edgeList;
This is a plug-in to handle vCenter tags.
It works with leveraging vCenter 6 vAPI. vCenter 6 is the first vCenter version providing a public API for tagging. Earlier versions only supported PowerCLI commandlets or private APIs (that James reverse engineered here : Native vRO vCenter Tagging - No Powershell).
See the video to see what it can do.
The plug-in was generated using the Dynamic Types plug-in generator package (check latest version in Flowgrab "All versions") and can be extended with it.
It can be used with vRealize Automation "Anything as a service" (For example attaching a tag to an object that would enable a given service).
The workflows are not checking if you attach a particular object type to a tag that has a parent category not supporting it.
The install workflow may fail to delete the resource element that were imported. It is not affecting the plug-in functionality but may affect a future upgrade. I have a bug opened about this with engineering. You can delete these resource elements with renaming them in the vCO client and deleting them.
I only tested it with vRO 6 + vCenter 6 (since vCenter 6 is required and since passing vCenter objects to the plug-in is likely a requirement if you need to tag vCenter objects).
Use at your own risk. I made this as a first step to learn how to use vAPI and provide native vCenter tag orchestration.
The plug-in can be downloaded from Sample Exchange
I'm fairly familiar with using the event broker, however I cannot seem to find the right conditions to launch a vRO workflow when deleting a VM. I only want to run this workflow when the VM is being removed from vCenter rather than being archived. Does anyone know what these conditions are?
Thanks in advance.
Hi,
i'm new on the VRO.
I'm trying to figure out how can i call a IAAS blueprint from XAAS blueprint.
I have some IAAS blueprint with properties i need (Like CPU, Memory, custom properties). The only thing that i found to list this properties is JSON code. I just want to use with VRO java script.
I want to display them and put more properties from the user input to run the blueprint.
Please help,
Thanks.
VMware is moving away from custom attributes and toward the categories and tags. currently vCO has vCenter workflows for creating custom attributes, however, I have not found anything on automating the creation and assignment of tags with virtual machines.
ultimately, I would like to specify the category via vCAC at time of provisioning. tag could be billing dept. and the response either if tag exists (ie Engineering) then it would associate the tag (engineering) to the category (billing dept). However if the tag doesn't exist, then a new tag would be created and associated to the VM.
thoughts?
Since VMware PowerCLI version 5.5R1 and up there are a number of commands available to work with tags, such as:
Hi,
i have to solve a problem.
My vCenter is full of tags and now it's time for an automatic deployment. So i have to read out the tags. But i only find VcTag.key. In the Logs it returned a null.
I saw from the vcoteam, the plugin, but only to set tags, my goal is to read out it and convert it to strings.
Can you give my any advice?
Thanks!
Hi guys,
I'm trying to associate a vCenter tag to some VMs using the vAPI in orchestrator.
I've found the "com_vmware_cis_tagging_tag_association" object that has the attach method. The input parametes to the method are tag_id (string) and object_id (com_vmware_vapi_std_dynamic_id).
I've found a way to get the tag_id but I was not able to get the object_id. How can I get an object of the type "com_vmware_vapi_std_dynamic_id" from a VcVirtualMachine?
Thanks.
VcPlugin.getAllVirtualMachines(null, "xpath:name='" + vmName + "'")
generating this error jxpath expression {} does not evaluate to boolean
after upgrading vSphere plugin to 6.5.0.4658893
Worked with the version that shipped with the 7.2 appliance but this newer plugin is listed on the appliance download page... Can someone confirm this bug and make a tech preview with a fix available or let me know what I might need to modify in my code? I'm off to scour the docs to see if the syntax has changed.
Thanks!
The attached workflow retrieves some system info from Orchestrator, then performs a simple GET request to /vco/api/about and parses the result to return the version and build number.
Get URL Code:
var vROIP = Config.getNetworkInterfaces().getBindInterface(); var vROPort = Config.getNetworkInterfaces().getBindPort(); var getUrl = "https://"+vROIP+":"+vROPort+"/vco/api/about";
Parse Results Code:
System.debug(aboutResult); System.debug("============"); var aboutObj = JSON.parse(aboutResult); System.debug("Version: "+aboutObj["version"]); var version = aboutObj["version"]; System.debug("Build Number: "+aboutObj["build-number"]); var build = aboutObj["build-number"]; System.debug("Build Date: "+aboutObj["build-date"]); System.debug("API Version: "+aboutObj["api-version"]);
Workflow Output parameters:
version (string)
build (string)
I am "Invoking an external script". I have created and passed the VM name as an argument to the PS script. When I run the script on the PS host itself, it runs with no issues. However, when I run it as part of the event broker I get an error.
Here is the script. Pls note that XXX values are where I remarked out identifying information.
param (
$HostName
)
$localuser = "XXX"
$pwdTxt = Get-Content "XXX.txt"
$securePwd = $pwdTxt | ConvertTo-SecureString
$localCred = New-Object System.Management.Automation.PSCredential -ArgumentList $localuser, $securePwd
$domainuser = "XXX"
$pwdTxt2 = Get-Content "XXX2.txt"
$securePwd2 = $pwdTxt2 | ConvertTo-SecureString
$domainCred = New-Object System.Management.Automation.PSCredential -ArgumentList $domainuser, $securePwd2
add-computer -ComputerName $HostName -LocalCredential $localCred –domainname XXX -Credential $domainCred -OUPath XXX
As I mentioned, when running it from the PS server, it runs fine. However, when I run it as part of a vRO workflow, I get an error that my passwords are NULL. Its almost like it can't read the password files, but I checked permissions and they are wide open for testing purposes.
I would like to add a piece to my blueprint to select multiple Active Directory users and groups to the local admin group on a server after its built. Not finding much on google either. Has anyone done anything like this?
We recently deployed vRA in our environment and got everything working with VMware Professional Services. That engagement is over and we have decided to implement a new flavor of windows in our catalog. I have installed the VRM Guest Agent on the template, and have it communicating. However, any action that makes a change will not work. I keep getting errors like this:
2017-02-01 11:00:17.163] [I] Set-ItemProperty : Requested registry access is not allowed.
At C:\Windows\TEMP\vmware36\vco_vmware217.ps1:20 char:3
+ Set-ItemProperty -Path $TLSClient -Name $name -Value $SetValue
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : PermissionDenied: (HKEY_LOCAL_MACH...\TLS 1.0\Cl
ient:String) [Set-ItemProperty], SecurityException
+ FullyQualifiedErrorId : System.Security.SecurityException,Microsoft.Powe
rShell.Commands.SetItemPropertyCommand
The account we are using is a local admin on the box. The script runs fine from the local box in an elevated powershell session. A little digging on google turns up that the script in the guest agent isn't running elevated.
How do i fix this? I've followed several blogs to install the agent, but can't seem to figure this out.
Any help is greatly appreciated!
Thanks.
We've just finished upgrading our 7.0.1 servers to 7.2 and sync appears to be broken with our 6.0.5 servers. Can anyone confirm if this works or if this is an issue. I see that previous versions of 6.x and 7.x have experienced sync issues but I don't see anything specifically for the most recent versions.
Hi,
Using an Orchestrator workflow, I can set an icon on a vRA catalog Service, or on a vRA Catalog Item.
However, I can't figure out how to set an icon on a vRA Resource Action using a vRO workflow...
Is this possible? Has anyone done this before?
Many thanks!
Ed
Hi guys,
I'm trying to invoke a soap operation. I ran the configuration workflow adding the soap host (wsdl: https://xxx) and selected to import the certificate. At the vco control center I see the certificate at trusted ssl certificates, but when I ran some operation workflow I get the error: java.security.cert.CertificateException: Certificate is not in CA store.
Any ideas? what am I doing wrong?
thanks.
Looking at sample workflows that came with AD plugin 3.0.2. Are they compatible with LDAPS? I couldn't get it to connect with SSL. Throws java.net.SocketException: Connection reset. Default LDAP works fine though and LDAPS from another (non-orchestrator) machine works with the same remote. Any clues where can I look further?
Hi All,
I need to skip certain actions in MachineDisposing state if the vm has gone through UnprovisionMachine state. Is there anyway to find out if the machine has executed WFStubUnprovisionMachine stub workflow in WFStubMachineDisposing workflow.
Any help appreciated.