Azure Fundamentals (AZ-900)

Last Updated: 1/19/2023

Tags

  • As your cloud usage grows, it's important to stay organized.
  • A good organization strategy helps you understand your cloud usage and can help you manage costs.

Organize Resources

  • Place them in their own subscriptions.
  • Use resource groups to manage related resources.
  • Use Resource tags.

Tags and Benefits

  • Tags provide extra information, or metadata, about your resources.
  • Tags are useful for
    • Resource management: Tags enable you to locate and act on resources that are associated with specific workloads, environments, business units, and owners.
    • Cost management and optimization: Tags enable you to group resources so that you can report on costs, allocate internal cost centers, track budgets, and forecast estimated cost.
    • Operations management: Tags enable you to group resources according to how critical their availability is to your business.
    • Security: Tags enable you to classify data by its security level, such as public or confidential.
    • Governance and regulatory compliance: Tags enable you to identify resources that align with governance or regulatory compliance requirements, such as ISO 27001. Tags can also be part of your standards enforcement efforts. For example, you might require that all resources be tagged with an owner or department name.
    • Workload optimization and automation: Tags can help you visualize all of the resources that participate in complex deployments. For example, you might tag a resource with its associated workload or application name and use software such as Azure DevOps to perform automated tasks on those resources.

Manage Resource Tags

  • You can add, modify, or delete resource tags through Windows PowerShell, the Azure CLI, Azure Resource Manager templates, the REST API, or the Azure portal.
  • You can use Azure Policy to enforce tagging rules and conventions.
  • Tags aren’t inherited

Tagging Structure

  • A resource tag consists of a name and a value. You can assign one or more tags to each Azure resource.
  • Example
    • AppName: The name of the application that the resource is part of.
    • CostCenter: The internal cost center code.
    • Owner: The name of the business owner who's responsible for the resource.
    • Environment: An environment name, such as "Prod," "Dev," or "Test."
    • Impact: How important the resource is to business operations, such as "Mission-critical," "High-impact," or "Low-impact."