Purpose/Use Case
To request an appropriate number of instances for the Deployment and/or the Machine Component from ServiceNow Connector (includes vRA Nested Blueprint Scenario)
- As a ServiceNow Catalog Item Admin, I want the requester to specify the number of Deployments the requester needs during request time of the ServiceNow Catalog
- vRA will provision the correct number of deployments requested
- As a ServiceNow Catalog Item Admin, I want the requester to specify the number of instances of the Machine Component the requester needs during request time of the ServiceNow Catalog
- vRA will provision the correct number of VMs requested within the vRA Deployment
Supported Versions
All
- Please note, that during a vRA Nested Blueprint scenario, fields were hidden on the nested/child blueprint view starting from ServiceNow Connector 2018.3.0.3.
Solution
Pre-requisite in vRA for the vRA Blueprint of interest that will be requested from ServiceNow
- Verify that the vRA Blueprint's Deployment limit is not set
- If the vRA Blueprint's Deployment limit is set, an error occurs (vRO is unable to create the request in vRA)
- Sample Exception message if a Deployment limit is set and user specifies Number of Instances of the deployment:
- If the vRA Blueprint's Deployment limit is set, an error occurs (vRO is unable to create the request in vRA)
[Rest Composite Exception]: ( [Rest Error]: {Status code: 400}, {Error code: 20117} , {Error Source: null}, {Error Msg: The data specified within the request is invalid.}, {System Msg: The data specified within the request is invalid.} ) ( [Rest Error]: {Status code: 400}, {Error code: 900188} , {Error Source: null}, {Error Msg: New maximum value [3] for field [_number_of_instances] cannot be larger than the overridden maximum value [1].}, {System Msg: New maximum value [3] for field [_number_of_instances] cannot be larger than the overridden maximum value [1].} )
Import Catalog Item
- Fill out the form:
- ServiceNow Catalog Item Name
- ServiceNot Catalog Item Description
- Default Number of Deployments
- Select a ServiceNow Catalog
- Select a ServiceNow Category
- Select a ServiceNow Workflow
- Select a vRO Server
- Select a vRA Business Group
- Business Group Override
- Select a vRA Catalog Item
- Click Load Request Form
- A representation of the vRA Blueprint will appear below
Specify the number of vRA Deployments
- Select the checkbox for number_of_instances
- This will create a ServiceNow variable in which the ServiceNow admin can update (set as Mandatory, update the type and set restrictions (min/max))
- Update the ServiceNow Label as desired
Specify the number of a specific Machine Component
- Select the checkbox for _cluster
- This will create a ServiceNow variable in which the ServiceNow admin can update (set as Mandatory, update the type and set restrictions (min/max))
- Update the ServiceNow Label as desired
Modify Catalog Item Mapping
- Create appropriate ServiceNow variables on the ServiceNow Catalog
- Click on Modify Catalog Item Mapping
- Update the Catalog Item accordingly, selecting the appropriate ServiceNow Variable
- Follow references above in the Import Catalog Item section
Appendix
After specifying _number_of_instances for a Nested Blueprint
Verified via Administration > Request History and viewing the request
0 Comments