<h2>Tag-based discovery in Service Mapping</h2><br/><div style="overflow-x:auto"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"><head><meta content="text/html; charset=UTF-8" /><meta name="copyright" content="(C) Copyright 2025" /><meta name="DC.rights.owner" content="(C) Copyright 2025" /><meta name="generator" content="DITA-OT" /><meta name="DC.type" content="concept" /><meta name="DC.title" content="Tag-based discovery in Service Mapping" /><meta name="abstract" content="If your organization uses tags for asset management, you can use these tags to map application services." /><meta name="description" content="If your organization uses tags for asset management, you can use these tags to map application services." /><meta name="DC.relation" scheme="URI" content="tag_discovery_configuration.html" /><meta name="DC.relation" scheme="URI" content="../../it-operations-management/concept/tag-governance.html" /><meta name="DC.creator" content="ServiceNow" /><meta name="DC.date.created" content="2023-08-03" /><meta name="DC.date.modified" content="2024-02-01" /><meta name="DC.format" content="XHTML" /><meta name="DC.identifier" content="tag-based-mapping" /><link rel="stylesheet" type="text/css" href="../../../CSS/commonltr.css" /><title>Tag-based discovery in Service Mapping</title></head><body id="tag-based-mapping"> <h1 class="title topictitle1" id="ariaid-title1">Tag-based discovery in Service Mapping</h1> <div class="body conbody"><p class="shortdesc"><span class="ph">If your organization uses tags for asset management, you can use these tags to map application services.</span></p> <p class="p">A tag is a label that consists of a key-value pair. Your organization may use tags to categorize its assets, to enhance query and reporting capabilities. <span class="ph">Discovery</span> and <span class="ph">Cloud Provisioning and Governance</span> can discover tags used by all major cloud providers and container ecosystems. Once the tags are discovered, <span class="ph">Service Mapping</span> can create application services based on these tags. Typically organizations use tagging in virtualized, hyper-converged, or multi-cloud infrastructures.</p> <div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="tag-based-mapping__table_rk2_zmq_vjb" class="table" frame="border" border="1" rules="all"><caption><span class="tablecap"><span class="table--title-label">Table 1. </span>Example of using tagging in organization infrastructure</span></caption><colgroup><col style="width:33.33333333333333%" /><col style="width:33.33333333333333%" /><col style="width:33.33333333333333%" /></colgroup><thead class="thead" style="text-align:left;"><tr class="row"><th class="entry cellrowborder" style="vertical-align:top;" id="d291273e66">Segment</th><th class="entry cellrowborder" style="vertical-align:top;" id="d291273e69">Technology providers</th><th class="entry cellrowborder" style="vertical-align:top;" id="d291273e72">What is tagged</th></tr></thead><tbody class="tbody"><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d291273e66 ">Cloud</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d291273e69 ">Amazon Web Services (AWS), Azure, Google Cloud Platform (GCP), IBM Cloud Platform</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d291273e72 ">IaaS, PaaS, FaaS, CaaS resources</td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d291273e66 ">Hyper-converged</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d291273e69 ">Nutanix</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d291273e72 ">Virtual machines</td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d291273e66 ">Containers</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d291273e69 ">Kubernetes, OpenShift Container Platform, AWS ECS</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d291273e72 ">Containers</td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d291273e66 ">Virtualization</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d291273e69 ">VMware vCenter</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d291273e72 ">Virtual machines</td></tr></tbody></table> </div> <p class="p"><span class="ph">Unlike other mapping methods, tag-based mapping does not require configuring credentials or providing users with elevated rights. <span class="ph" id="tag-based-mapping__tag-based-advant-en-masse">You can effectively use tags to map multiple application services.</span> </span></p> <div class="p">The tag-based discovery and mapping process consists of the following stages:<ol class="ol" id="tag-based-mapping__ol_yqz_qdj_1jb"><li class="li"><span class="ph">Discovery</span> and <span class="ph">Cloud Provisioning and Governance</span> discover tags for cloud and resource CIs and then populate data for discovered tags into the Key Value [cmdb_key_value] table.</li><li class="li"><span class="ph">The administrator creates CI tag categories and defines tag keys that the categories contain. Tag categories contain tags with similar use, for example, tags related to different types of environments, if the organization uses "production" and "staging" tag values.</span></li><li class="li">The administrator creates a tag-based service family and selects tag categories to use for its mapping. Only CIs that have discovered tag values for the selected tag categories become part of application services. The administrator can narrow the criteria down by defining the tag values in addition to tag categories. In this case, <span class="ph">Service Mapping</span> uses only CIs that have the matching values to create application services. CIs that have more than one tags assigned to them, can be part of multiple services.<div class="note"><span class="notetitle">Note:</span> <span class="ph">When creating a service family for mapping services based on tags in domain-separated environment, you must pick the relevant leaf domain. </span> <span class="ph"> <span class="ph">Service Mapping</span> populates tag-based services based on this service family only with CIs belonging to the leaf domain to which the service family belongs.</span></div> </li><li class="li"><span class="ph">Service Mapping</span> queries the <span class="ph">CMDB</span> for CIs with tag values that match the tag definitions for this tag-based service family.</li><li class="li"><span class="ph">Service Mapping</span> creates service candidates based on the defined tags.<p class="p"><span class="ph"> <span class="ph">Service Mapping</span> populates tag-based services based on this service family only with CIs belonging to the leaf domain to which the service family belongs.</span></p> </li><li class="li">The administrator selects the service candidates to map and starts the mapping process.</li><li class="li"><span class="ph">Service Mapping</span> adds new application services to the Tag-Based Application Service [cmdb_ci_service_by_tags] table.<div class="note important"><span class="importanttitle">Important:</span> <span class="ph">Tag-based application services may not include relevant CIs, if these CIs do not have the correct tags assigned to them.</span></div> </li><li class="li"><span class="ph">Service Mapping</span> maps application services by creating connections between tagged CIs based on CI relationships. The Traversal Rules for Application Services [svc_traversal_rules] table contains information used for creating tag-based application services.<div class="note"><span class="notetitle">Note:</span> <span class="ph"> <span class="ph">Service Mapping</span> includes CIs that are part of these relationships even if these CIs do not have tags assigned to them. </span></div> </li></ol> </div> <p class="p">You can create single tag-based application services using the <span class="ph">Common Service Data Model</span> (<span class="ph">CSDM</span>) flow as described in <a class="xref" href="../product/configuration-management/task/populate-app-service-tags.html" target="_blank" rel="noopener noreferrer">Populate application services using tags</a>.</p> <p class="p">To create multiple tag-based services, follow the procedure covered in <a class="xref" href="../task/map-service-tag.html" title="Use tags that help categorize and organize configuration items (CIs) in your organization to map application services. Tag-based mapping doesn't require configuring credentials or providing users with elevated rights.">Map application services using tags with classic Service Mapping</a>.</p> </div> <div class="related-links"> <div class="linklist relinfo relconcepts"><strong>Related concepts</strong><br /> <ul class="linklist"><li class="linklist"><a class="link" href="tag_discovery_configuration.html" title="You can refine the default configuration to control which CIs Service Mapping includes in application services during the tag-based discovery process.">Tag-based discovery configuration</a></li><li class="linklist"><a class="link" href="../../it-operations-management/concept/tag-governance.html" title="Use the ServiceNow Tag Governance app to identify on-premises or cloud resources that are inconsistent and don't comply with the tag policies of your organization.">Tag Governance</a></li></ul></div> </div> </body></html></div>