title | description | services | documentationcenter | author | manager | editor | ms.assetid | ms.service | ms.workload | ms.tgt_pltfrm | ms.devlang | ms.topic | ms.date | ms.author |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Add tags to a lab in Azure DevTest Labs | Microsoft Docs |
Learn how to add a tag to a lab in Azure DevTest Labs |
devtest-lab,virtual-machines |
na |
tomarcher |
douge |
dc5b327a-62e4-41bc-80ef-deb3c23d51b2 |
devtest-lab |
na |
na |
na |
article |
09/07/2017 |
tarcher |
You can create custom tags and apply them to your DevTest Labs resources to logically categorize your resources. Later, you can quickly and easily see all the resources in your subscription that have that tag. Tags are helpful when you need to organize resources for billing or management.
Resources that are supported by tags include
- Compute VMs
- NICs
- IP addresses
- Load balancers
- Storage accounts
- Managed disks
You can apply tags when you Create a lab and later manage them through the Tags blade under Configuration and settings.
Every tag is made up of a name/value pair. For example, you might create a tag with the name costcenter that has a value of 34543. A tag such as this might help you later identify lab resources that are billable to this specific area of your organization. You get to choose names and values that make sense for how you want to organize your subscription.
-
Sign in to the Azure portal.
-
If necessary, select More Services, and then select DevTest Labs from the list. Your lab might already be shown on the Dashboard under All Resources.
-
From the list of labs, select the lab in which you want to add or manage tags.
-
On the lab's Overview area, select Configuration and policies.
-
On the left under MANAGE, select Tags.
-
To create a new tag for this lab, enter a Name/Value pair and select Save. You can also select an existing tag from the list to view or manage the resources associated with that tag.
The following limitations apply to tags:
- Each resource or resource group can have a maximum of 15 tag name/value pairs. This limitation applies only to tags directly applied to the resource group or resource. A resource group can contain many resources that each have 15 tag name/value pairs.
- The tag name is limited to 512 characters, and the tag value is limited to 256 characters. For storage accounts, the tag name is limited to 128 characters, and the tag value is limited to 256 characters.
- Tags applied to the resource group are not inherited by the resources in that resource group.
Use tags to organize your Azure resources provides greater details about using tags in Azure, including how to manage tags using PowerShell or Azure CLI.
[!INCLUDE devtest-lab-try-it-out]
- You can apply restrictions and conventions across your subscription by using customized policies. A policy that you define might require that all resources have a value for a particular tag. For more information, see Set policies and schedules.
- Explore the DevTest Labs Azure Resource Manager QuickStart template gallery.