As a cloud or project administrator, you have a prescribed naming convention for resources in your environment, and you want the deployed resource to follow those conventions without user interaction. You can create a naming template for all deployments from a vRealize Automation Cloud Assembly project.
${project.name}-${resource.siteCode}-${resource.costCenter}-${endpoint.name}-${######}The identifier, provided in the template as
${######}
, shows a six digit identifier. The identifier is a counter that ensures uniqueness. The counter is global for the organization and increments across all projects, not only the current project. When you have multiple projects, do not expect a sequence from 000123 to 000124 for deployments in you current project. You can expect an increment from 000123 to 000127.
All resource names must be unique. Use the incremental number property to ensure uniqueness. The numbers increment for all deployments, including those that are named by vRealize Automation Cloud Assembly. As your system becomes more robust, and because the custom naming is applied to many resources, including virtual machines, load balancers, security groups, NATs, gateways, resource groups, and disks, the numbering might appear random, but the values still ensure uniqueness. The numbers also increment when you run a test deployment.
In addition to the examples provided here, you can also add the user name, the image that is used, other built-in options, and simple strings. As you build the template, hints regarding possible options are provided.
Remember that some of the values you see are only use case examples. You won't be able to use them letter-by-letter in your environment. Think about where you would make your own substitutions, or extrapolate from the example values, in order to fit your own cloud infrastructure and deployment management needs.
Prerequisites
- Verify that you know the naming convention that you want to use for deployments from a project.
- This procedure assumes you have or can create a simple cloud template that you use to test your custom host prefix naming.
Procedure
What to do next
Create custom naming templates for your other projects.