Creating tag groups and tags
When used in policies, tags and tag groups help to determine the placement of provisioned, user-requested services within the cloud.
This topic contains the following sections:
Overview of tags and tag groups
Cloud administrators can specify tags for the following BMC Cloud Lifecycle Management objects:
- Network containers
- Compute resource pools
- Virtual disk repository pools
- Service blueprints
Cloud administrators associate tags with tag groups, which organize tags used in the cloud. For example, the cloud administrator might create a tag group named Location to group all of the tags that specify network locations. The cloud administrator might also create a tag group named SLA for the tags representing different service levels offered to tenants.
Any taggable object can be associated with the same tag group and tag. For example, a cloud administrator might apply the SLA tag group and the Bronze tag to a network container, and the Bronze tag to a compute resource pool, ensuring the placement of Bronze requests to the Bronze-tagged network container and compute resource pool.
Taggable objects can use more than one tag from the same or different tag groups. For example, the cloud administrator can tag a compute resource pool with Bronze and vSphere tags to ensure that only Bronze requests for vSphere hypervisors are provisioned to that compute resource pool. The cloud administrator might also specify that a request from the NYC location be deployed with resources in either a Bronze or Silver compute resource pool.
Consider creating all of the tag groups and tags you expect to need before applying tags to cloud resources. This ensures that you apply tags consistently, and helps you manage your policies more efficiently.
BMC recommends that you start with the following tag groups and associated tags:
The following video uses an analogy to explain tags and how BMC Cloud Lifecycle Management uses tags to determine placement when provisioning services.
Before you begin
- Tag names and tag group names can only contain alphanumeric characters, spaces, underscores, and dashes.
- Before applying tags to cloud resources, consider creating all of the tag groups and tags that you expect to need. This practice ensures that you apply tags consistently, and it helps you manage your policies more efficiently.
To create a tag group and its tags
When creating or editing one of the taggable objects listed above, click the Tag icon.
The Tags dialog box is displayed:
- To create a tag group:
Click Manage Tags.
The Manage Tags dialog box is displayed:
- Click Add Tag Group
An empty blue row for a new tag group is inserted in the Tag Groups table. .
- Click the new row in the Tag Group column and type the name for the new tag group.
- To enter a description for the tag group, click the new row in the Description column and type a description.
- Click Save Tag Group
The new tag group is saved in the Tag Groups table. .
- To add tags to the tag group:
- Click the name of the tag group to which you want to add tags.
- In the Tags table, click Add Tag
An empty blue row for a new tag is inserted in the Tags table. .
- Click the new row in the Tag column and type the name for the new tag.
- To enter a description for the tag, click the new row in the Description column and type a description.
- Click Save Tag .
- Continue to add tags to the group until you are finished.
- Click Close.
To apply a tag to an object, see Assigning a tag to an object.
If you rename a tag group or tag that has been specified in a service blueprint, you must change the reference in the service blueprint to use the new tag group.
To delete a tag group and its tags
Before deleting a tag, confirm that the tag is not being used in a service blueprint and the tag is not being used to identify options. Before deleting a tag group, confirm that no tags in the tag group are being used in a service blueprint or to identify options. You should also confirm that the tag group is not being used in a policy defined in the service governor.
- When editing one of the taggable objects listed above, click the Tag icon
The Tags dialog box is displayed: .
- Click Manage Tags.
The Manage Tags dialog box is displayed.
- Select a tag group and click Delete Tag Group
A dialog prompts you to confirm the deletion. , or select a tag and click Delete Tag .
Related BMC Communities blog entry
The following link provides supplemental information available from a blog entry in BMC Cloud Lifecycle Management Communities:
This blog entry discusses how to use Tagging to determine the placement of provisioned, user-requested services within BMC Cloud Lifecycle Management.