您现在访问的是微软AZURE全球版技术文档网站,若需要访问由世纪互联运营的MICROSOFT AZURE中国区技术文档网站,请访问 https://docs.azure.cn.

定义标记策略Define your tagging strategy

将元数据标记应用于云资源时,可以添加无法在资源名称中添加的资产相关信息。When you apply metadata tags to your cloud resources, you can include information about those assets that couldn't be included in the resource name. 可以使用此类信息对资源执行更复杂的筛选和报告操作。You can use that information to perform more sophisticated filtering and reporting on resources. 建议在这些标记中添加有关资源的关联工作负荷或应用程序、运营需求和所有权信息的上下文。You want these tags to include context about the resource's associated workload or application, operational requirements, and ownership information. IT 或业务团队可以使用此类信息来查找资源,或生成资源使用情况和计费报告。This information can be used by IT or business teams to find resources or generate reports about resource usage and billing.

向资源应用什么标记,以及什么标记是必需或可选的,都因组织而异。What tags you apply to resources and what tags are required or optional differs among organizations. 下面的列表举例说明了捕获资源的重要上下文和相关信息的常见标记。The following list provides examples of common tags that capture important context and information about a resource. 请从此列表入手,制定你自己的标记约定。Use this list as a starting point to establish your own tagging conventions.

建议的最小标记Minimum suggested tags

以下标记将指导实现和处理所有后续的云采用框架方法。The following tags will guide implementation and processes in all subsequent Cloud Adoption Framework methodologies. 这些方法中的许多最佳实践都说明了基于以下标记的云操作和管理的自动化。Many of the best practices in those methodologies demonstrate automation of cloud operations and governance based on the following tags.

标记名称Tag Name 说明Description 键和示例值Key and example values
工作负荷名称Workload name 资源支持的工作负荷的名称。Name of the workload the resource supports. WorkloadNameWorkloadName

  • ControlCharts
  • 数据分类Data classification 此资源托管的数据的敏感性。Sensitivity of data hosted by this resource. DataClassificationDataClassification

  • Non-business
  • Public
  • General
  • Confidential
  • Highly confidential
  • 业务关键性Business criticality 资源或支持的工作负荷的业务影响。Business impact of the resource or supported workload. 重要性Criticality

  • Low
  • Medium
  • High
  • Business unit-critical
  • Mission-critical
  • 业务部门Business unit 拥有资源所属订阅或工作负荷的公司的顶级部门。Top-level division of your company that owns the subscription or workload that the resource belongs to. 在规模较小的组织中,此标记可能表示一个企业/共享顶级组织元素。In smaller organizations, this tag might represent a single corporate or shared top-level organizational element. BusinessUnitBusinessUnit

  • Finance
  • Marketing
  • Product XYZ
  • Corp
  • Shared
  • 操作承诺Operations commitment 为此工作负荷或资源提供的操作支持级别。Level of operations support provided for this workload or resource. OpsCommitmentOpsCommitment

  • Baseline only
  • Enhanced baseline
  • Platform operations
  • Workload operations
  • 操作团队Operations team 团队负责日常操作。Team accountable for day-to-day operations. OpsTeamOpsTeam

  • Central IT
  • Cloud operations
  • ControlCharts team
  • MSP-{Managed Service Provider name}
  • 其他常见标记示例Additional common tagging examples

    下面是在 Azure 中经常使用的一些标记,可提高 Azure 资源的使用情况。The following are a number of tags commonly used across Azure to increase visibility into the usage of Azure resources.

    标记名称Tag Name 说明Description 键和示例值Key and example values
    应用程序名称Application name 如果工作负荷跨多个应用程序或服务进行细分,则增加了粒度。Added granularity, if the workload is subdivided across multiple applications or services. ApplicationNameApplicationName

  • IssueTrackingSystem
  • 审批者名称Approver name 负责审批与此资源相关的成本的人员。Person responsible for approving costs related to this resource. 审批者Approver

  • chris@contoso.com
  • 必需/获准预算Budget required/approved 分配给此应用程序、服务或工作负荷的资金。Money allocated for this application, service, or workload. BudgetAmountBudgetAmount

  • $200,000
  • 成本中心Cost center 与此资源关联的计帐成本中心。Accounting cost center associated with this resource. CostCenterCostCenter

  • 55332
  • 灾难恢复Disaster recovery 应用程序、工作负荷或服务的业务关键性。Business criticality of the application, workload, or service. DRDR

  • Mission-critical
  • Critical
  • Essential
  • 项目结束日期End date of the project 应用程序、工作负荷或服务的计划停用日期。Date when the application, workload, or service is scheduled for retirement. EndDateEndDate

  • 2023-10-15
  • ServiceDefinition.csdefEnvironment 应用程序、工作负荷或服务的部署环境。Deployment environment of the application, workload, or service. EnvEnv

  • Prod
  • Dev
  • QA
  • Stage
  • Test
  • 所有者名称Owner name 应用程序、工作负荷或服务的所有者。Owner of the application, workload, or service. 所有者Owner

  • jane@contoso.com
  • 申请者名称Requester name 请求创建此应用程序的用户。User who requested the creation of this application. 请求者Requester

  • john@contoso.com
  • 服务类Service class 应用程序、工作负荷或服务的服务级别协议级别。Service level agreement level of the application, workload, or service. ServiceClassServiceClass

  • Dev
  • Bronze
  • Silver
  • Gold
  • 项目开始日期Start date of the project 应用程序、工作负荷或服务的首次部署日期。Date when the application, workload, or service was first deployed. StartDateStartDate

  • 2020-10-15
  • 执行操作Take action

    查看 资源命名和标记决策指南Review the resource naming and tagging decision guide.

    后续步骤Next steps

    了解如何在 Azure 中的订阅之间移动资源组和资产。Learn how to move resource groups and assets between subscriptions in Azure.