Quantcast
Channel: VMware Communities : All Content - vRealize Automation Tools
Viewing all 9859 articles
Browse latest View live

Custom Resource with Custom Types

$
0
0

Am I doing this correctly?

 

Here is my custom resource:

and the vro dynamic type is:

and my create workflow is basically:

 

 

var theobject = DynamicTypesManager.makeObject("DionsCustomTest", "Test", certname, certname, newArray());

 

theobject.setProperty('testname', certname);

 

but it appears theobject value is always null.

 

What am I missing? 

 

Adding .package file with workflows.

 

Any assistance would be apprecated.  Any working examples I can learn from would also be appreciated.

 

Regards

 

Dion


Run Ansible Role from VRA8 Blueprint

$
0
0

Hi Guys,

 

Could you please help me to create VRA8 blueprint for following details , I am able to get input as boolean,  but not sure how to pass this to ansible and run ansible command

1- Blueprint user input with check

      1- role1

      2- role2

      3- role3

 

2- VM created

3- run the command from ansible server -    ansible-playbook -i 178.23.152.32, -e role_list='role1, role2, role3" /home/ansible/execute_test.yml

 

 

Input  values in varible and pass to ansible as role and this command from ansible server. so if it's selected pass it , if not don't pass any roles ..

just run the ansible command so it will run the defaults.

 

 

Please help for this bluprint

Pass input from blueprint to image cloud configuration

$
0
0

I am looking to build an agnostic blueprint. With that I would like to run cloud init  or cloudbase init command's per image mapping to initialise the machine

 Can I expose inputs from the blueprint to run cloud-config commands on the image cloud configuration.

e.g. set_hostame: '{input.suppliedhostname}'

i know I can do this in the blueprint itself but this if I want to have the blueprint OS agnostic then I need to tie to the image mapping.

Vrealize Automation 8.1: Provision Virtual Machine on specific hosts instead of Cluster

$
0
0

I have a environment where my workload cluster is stretched across 2 physical location. 1st DC is active and 2nd DC is passive. However the management and workload cluster are streched across.

 

4 Hosts are in DC1 and 4 hosts in DC2. Total 8 hosts in streched cluster.

 

With VRA 8.1 i can chose cloud zone with specific cluster (if DRS enabled), not hosts.

 

So if i am provisioning VM using blueprint in vra 8.1 the provisining is happening on cluj\ster level and based on performance it choses any host , sometimes of DC2 also.

 

I want my provisioning to get limited to DC1 hosts only from vRA 8.1

 

I tried a lot but not getting any option on vra 8.1 on how to restrict this provisioning on limited no of hosts.

 

Please guide.

Skip/block vRA portal landing page

$
0
0

Can we skip vRA landing page in 7.6 version or block the landing page port for end users? If so how can we achieve it?

 

vROPS 7.5 Dashboard Configuration

$
0
0

Hello world!

Today I spent the most of the day configuring vROPs 7.5 environment:

- Adding Custom Groups

- Adding Custom Applications

- Adding Dashboards (Things in common: Widgets, Metrics)

- Modifying the Project Manager's Dashboard.

 

I did the same 4 activities for 13 new Applications published by the customer, and I was wondering if there is a way to automate this kind of stuff with scripting and just capturing the VMs I require to add in the new dashboards based on developers' documentation (I assume yes, but I don't know how neither what do I need to accomplish that).

The thing is developers are deploying new apps so, in the near future I'll need to add more Dashboards. Meanwhile, I'd like to learn and configure scripting if possible or making test with dummy dashboards.

I hope you can help me, telling how can I get started with scripting skill if this is possible.

Regards! 

vRO 8.1, Regular Expression specifications.

$
0
0

I am having issues trying to parse some text with regular expressions in a vRO 8.1 workflow.

 

This is suppose to get the prefix for a network. For example in 10.0.0.1/24 it should populate the variable v4Prefix with "24".

 

const ipv4Network = /^.*\/(\d+)$/g;

 

const v4Prefix = context.ipv4cidr.match(ipv4Network);

System.log("v4Prefix =" + JSON.stringify(v4Prefix));

 

 

When testing the regular expression in various other tools it will give me the prefix of 24, when I do this within the workflow v4Prefix returns the entire contents "ipv4cidr" of 10.0.0.1/24 in v4Prefix instead of just "24".

 

Does the javascript implementation within vRO have limitations and if so where can I find those detailed?

 

vRealize Automation ITSM 8.1 - Service Now integration issues

$
0
0

When a request is submitted from ServiceNow end for a server build we are getting below response code from vRA. Can you please let us know how  we can mitigate this.

 

Error: {"message":"diskGrid: Expected type ARRAY but was STRING.\n

hostname: Expected minLength 5 but the string length was 0.\n

computerOU: Expected type OBJECT but was STRING.\n

customHostname: Expected type BOOLEAN but was STRING.\n

permanentLease: Expected type BOOLEAN but was STRING.\n

ansible_windows: Expected type INTEGER but was STRING.","statusCode":400,"errorCode":0}


vRA 8.1 set dns server for nsx-t deployed network

$
0
0

Hi,

is there a way to set a dns server for a network that I deploy using vRA 8.1 with NSX-T?

I can't seem to find an option in the network profile and there is no dns server property in the rest api

for the fabric networks...

Automation for large scale VM deployments

$
0
0

Hello all:

 

I am making this post as I need some guidance, I am currently in an environment where there are say ~20 hosts and ~500 VMs. For various reasons we are going to be ramping up. We are building out many additional hosts and possibly a 100 new VMs of the same specs, can be from the same base image.

 

My goal is to master a deployment tool (preferably something universal) to deploy hundreds of VMware guest machines off a golden standard image or template. I am fairly ok with and love Powershell and PowerCLI. I am familiar with Microsoft SCCM OSD task sequences to deploy a single VM at a time as well as the basic VMware methods using a template and simple customization. However my lnowledge is still limited to using one liner PowerCLI commands to build each machine.

 

I need some "visionary" guidance, should I look to VRA, Ansible, Packer or what combination would you suggest. I want to learn a set of universal tools that will enable me, when faced with a request to provision 100 machines, to do a couple of days of work planning, writing up text files (autoattend, yaml, or whatever) and then send forth the commands, to build out those VMs with customized IPs, hostnames, based on a specific template/ISO or image, have them join a doman etc. And walk away and grab a coffee, come back to my "desk" and watch them deploy.

 

I know I will have to invest time and effort into learning it, but I just want to know what to learn?

Much appreciated.

vRA8.1 integration with embedded vRO not working

$
0
0

Hi,

 

I am using vRA 8.1 and embedded vRO. I am running the workflow "

Add a vCenter Server instance". It shows up no error. However I am unable to see all the resources under Inventory. Any Idea what i am missing here?

 

Regards,

Shilpa Nagaraja

Capture blueprint input array in inputProperties payload

$
0
0

Is it possible to capture blueprint input array values and pass over to actions\workflows\external as custom properties in the inputProperies payload?

 

I'm requesting disk drive parametres using an array;

 

 

 

It's working OK for all inputs (strings or boolean) but not for the disk array. No errors, but the array values don't make it to customProperties.

 

Thanks.

[vRA 7.5] - Deployment & Virtual machine not the same Business Group.

$
0
0

Hello,

 

we search on which API element (vcac:machine, subtenant, or whatever.....) the Business Group of "Virtual Machine" seen in the UI can be found :

 

 

Thx for your help.

Configuring Harbor as a Docker Registry on vRA8 Code Stream

$
0
0

I'm trying to configure harbor as a docker registry as a vra 8 Code Stream endpoint but it seems that I'm not putting the correct url or it's not supported.

I was able to configure the public Docker Hub in vRA Code Stream.

I'm now trying to configure the harbor registry. I'm trying with the url for my test project repositories but I'm getting this error:

Malformed Repo URL: Please follow the suggested pattern

 

I'm using the url from the harbor registry repository that is something like this:

https://harborfqdn/harbor/projects/35/repositories/testpks%2Fhello

I tried to remove the %2Fhello or to put ":hello" but I get the same error:

 

If i put the url in a format that vra8 seems to accept like https://harborfqdn/repositories/testpks/hello

I get an error as that page return a 404:

Validation Failed as user details or Repo Url is incorrect

 

Anyone was able to use Harbor Registry with VRA 8 Code Stream?

Conditions in Blueprint Code

$
0
0

New to vRA8 and still learning the syntax for blueprint as code.  The code below takes the input of the OS from the users and changes the customization spec to be used based on that input.  That works great when you only have two OS' to pick from.  But how do I modify something like that to work with more than two OS?  It seems like conditions can only be A or B based on match.  Is there a way to rework that to work for multiple OS choices?

customizationSpec: ${input.OS,"Windows 2016")? "Win2016" : "Win2019"}


Guest Script Manager Version Control

$
0
0

cdecanini_, or anyone for that matter, I am trying to find a way to automatically increase the version of the script resource when an edit is performed. Do you know of a way?

My team currently uses Guest script manager for all of our script management in VRO and while we each have our own personal repos, it would be nice to be able to revert a script version.

How to take a second snapshot?

$
0
0

Hello

I'm using vRA 7.6.

The "Take a snapshot" action was added for the deployed VM.

I can't take a second snapshot after the first snapshot was created. Only actions that delete and revert snapshot are displayed.

 

 

Is there any solution?

Thank you !

snapshot 01.pngsnaphost 02.png

vRA 8.1 - How to use project custom properties in custom form with vRO external action ?

$
0
0

Hi all,

 

I'm new to vRA 8.1, and I'm pretty happy of lots of things improved !

 

But while trying to reproduce my Blueprint and its Custom Form from vRA 7.5 to vRA 8.1, I'm struggling with something that was not difficult previously.

I need to fill a dropdown list with a REST API call from an external vRO action.

The REST Host was successfully added in vRO (this is one of the inputs for this action and it's working fine).

I need two others inputs to filter the content of the list that I'll display on form:

- environment of blueprint (easy as I added it in the inputs section of the Blueprint, I just select it in Fields)

- the group that is granted to acces only some items in the original list and here is my problem...

 

This group should be different for each project as projects replace Business Groups.

So I set a custom property in my project with one of the possible values, but I'm struggling retrieving this property in the custom form designer or inside my vRO external action.

 

In vRA 7.5, I was passing the Business Group name to my vRO external action and then used the action System.getModule("com.vmware.library.vcaccafe.subtenant").getCustomPropertyNames(subtenant) to retrieve all properties of the BG and then retrieve my property value.

But now it's just becoming a nightmare on the vRO side...

  • No vRA plugin...
  • No action containing the word 'project'
  • API explorer not organized to list vRA capabilities

 

I found this action that I could use: com.vmware.library.customProperties.getCustomProperty but its input is object type and I don't see any trace of method somewhere to get my project in the API so how can achieve that ????!!

 

I was curious enough to find something in API and did a test using Server.getObjectsWithCustomPropertyKey(myCustomProperty) and it return an empty object

 

Please help me I'm getting very confused

 

 

Cheers,

 

Tim

 

 

vRO 8.1 Workflow, creating text file to persist on guest os during provisioning

$
0
0

I am trying to figure out how to programmatically create a text file on a guest os (provisioned vm) with specific data to that build. A simple example (tho not for my use case) would be..

 

file: /etc/motd

with contents of : "VM created on " + date();

 

Can someone point me in the right direction? All I've been able to find so far is how to copy files from vRO->guest (static files) but thats not what im looking for. I would like to create the file (dependent on OS) during provisioning with specific content.

Vra 8 rest api not sync with gui

$
0
0

Hello

On vra 8 I power of/ power off or delete machine from rest api and it not showed in user interface immediately, only after 10 minutes

 

someone maybe know what to do.

Viewing all 9859 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>