You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/azure-resource-manager/management/tag-resources.md
+8-10Lines changed: 8 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ description: Shows how to apply tags to organize Azure resources for billing and
4
4
ms.topic: conceptual
5
5
ms.date: 03/20/2020
6
6
---
7
-
# Use tags to organize your Azure resources, resource groups, and subscriptions
7
+
# Use tags to organize your Azure resourcesand management hierarchy
8
8
9
9
You apply tags to your Azure resources, resource groups, and subscriptions to logically organize them into a taxonomy. Each tag consists of a name and a value pair. For example, you can apply the name "Environment" and the value "Production" to all the resources in production.
10
10
@@ -14,7 +14,9 @@ For recommendations on how to implement a tagging strategy, see [Resource naming
14
14
15
15
## Required access
16
16
17
-
To apply tags to resources, the user must have write access to that resource type. To apply tags to all resource types, use the [Contributor](../../role-based-access-control/built-in-roles.md#contributor) role. To apply tags to only one resource type, use the contributor role for that resource. For example, to apply tags to virtual machines, use the [Virtual Machine Contributor](../../role-based-access-control/built-in-roles.md#virtual-machine-contributor).
17
+
To apply tags to a resource, you must have write access to the **Microsoft.Resources/tags** resource type. The **Tag Contributor** role lets you apply tags to an entity without having access to the entity itself.
18
+
19
+
The [Contributor](../../role-based-access-control/built-in-roles.md#contributor) role also grants the required access to apply tags to any entity. To apply tags to only one resource type, use the contributor role for that resource. For example, to apply tags to virtual machines, use the [Virtual Machine Contributor](../../role-based-access-control/built-in-roles.md#virtual-machine-contributor).
Tags applied to the resource group or subscription aren't inherited by the resources. To apply tags from a subscription or resource group to the resources, see [Azure Policies - tags](tag-policies.md).
158
-
159
157
### List tags
160
158
161
159
To get the tags for a resource, resource group, or subscription, use the [Get-AzTag](/powershell/module/az.resources/get-aztag) command and pass in the resource ID for the entity.
@@ -258,10 +256,6 @@ az group update -n examplegroup --set tags.'Status'='Approved'
258
256
259
257
Currently, Azure CLI doesn't support applying tags to subscriptions.
260
258
261
-
### Inherit tags
262
-
263
-
Tags applied to the resource group or subscription aren't inherited by the resources. To apply tags from a subscription or resource group to the resources, see [Azure Policies - tags](tag-policies.md).
264
-
265
259
### List tags
266
260
267
261
To see the existing tags for a resource, use:
@@ -563,6 +557,10 @@ To work with tags through the Azure REST API, use:
563
557
*[Tags - Get At Scope](/rest/api/resources/tags/getatscope) (GET operation)
564
558
*[Tags - Delete At Scope](/rest/api/resources/tags/deleteatscope) (DELETE operation)
565
559
560
+
## Inherit tags
561
+
562
+
Tags applied to the resource group or subscription aren't inherited by the resources. To apply tags from a subscription or resource group to the resources, see [Azure Policies - tags](tag-policies.md).
563
+
566
564
## Tags and billing
567
565
568
566
You can use tags to group your billing data. For example, if you're running multiple VMs for different organizations, use the tags to group usage by cost center. You can also use tags to categorize costs by runtime environment, such as the billing usage for VMs running in the production environment.
Copy file name to clipboardExpand all lines: includes/resource-manager-tag-resources.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,6 +10,8 @@
10
10
ms.custom: include file
11
11
---
12
12
13
+
If a user doesn't have the required access for applying tags, you can assign the **Tag Contributor** role to the user. For more information, see [Tutorial: Grant a user access to Azure resources using RBAC and the Azure portal](../..//role-based-access-control/quickstart-assign-role-user-portal.md).
14
+
13
15
1. To view the tags for a resource or a resource group, look for existing tags in the overview. If you have not previously applied tags, the list is empty.
14
16
15
17

0 commit comments