Skip to content

Commit 49dda47

Browse files
committed
add python tags
1 parent 88571fa commit 49dda47

File tree

7 files changed

+539
-6
lines changed

7 files changed

+539
-6
lines changed

articles/azure-resource-manager/management/tag-resources-bicep.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: Tag resources, resource groups, and subscriptions with Bicep
33
description: Shows how to use Bicep to apply tags to Azure resources.
44
ms.topic: conceptual
5-
ms.date: 04/11/2023
5+
ms.date: 04/19/2023
66
---
77

88
# Apply tags with Bicep

articles/azure-resource-manager/management/tag-resources-cli.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: Tag resources, resource groups, and subscriptions with Azure CLI
33
description: Shows how to use Azure CLI to apply tags to Azure resources.
44
ms.topic: conceptual
5-
ms.date: 04/11/2023
5+
ms.date: 04/19/2023
66
---
77

88
# Apply tags with Azure CLI

articles/azure-resource-manager/management/tag-resources-portal.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: Tag resources, resource groups, and subscriptions with Azure portal
33
description: Shows how to use Azure portal to apply tags to Azure resources.
44
ms.topic: conceptual
5-
ms.date: 04/11/2023
5+
ms.date: 04/19/2023
66
---
77

88
# Apply tags with Azure portal

articles/azure-resource-manager/management/tag-resources-powershell.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: Tag resources, resource groups, and subscriptions with Azure PowerShell
33
description: Shows how to use Azure PowerShell to apply tags to Azure resources.
44
ms.topic: conceptual
5-
ms.date: 04/11/2023
5+
ms.date: 04/19/2023
66
---
77

88
# Apply tags with Azure PowerShell
@@ -37,6 +37,7 @@ If you run the command again, but this time with different tags, notice that the
3737

3838
```azurepowershell-interactive
3939
$tags = @{"Team"="Compliance"; "Environment"="Production"}
40+
$resource = Get-AzResource -Name demostorage -ResourceGroup demoGroup
4041
New-AzTag -ResourceId $resource.id -Tag $tags
4142
```
4243

@@ -52,6 +53,7 @@ To add tags to a resource that already has tags, use `Update-AzTag`. Set the `-O
5253

5354
```azurepowershell-interactive
5455
$tags = @{"Dept"="Finance"; "Status"="Normal"}
56+
$resource = Get-AzResource -Name demostorage -ResourceGroup demoGroup
5557
Update-AzTag -ResourceId $resource.id -Tag $tags -Operation Merge
5658
```
5759

@@ -71,6 +73,7 @@ Each tag name can have only one value. If you provide a new value for a tag, it
7173

7274
```azurepowershell-interactive
7375
$tags = @{"Status"="Green"}
76+
$resource = Get-AzResource -Name demostorage -ResourceGroup demoGroup
7477
Update-AzTag -ResourceId $resource.id -Tag $tags -Operation Merge
7578
```
7679

@@ -88,6 +91,7 @@ When you set the `-Operation` parameter to `Replace`, the new set of tags replac
8891

8992
```azurepowershell-interactive
9093
$tags = @{"Project"="ECommerce"; "CostCenter"="00123"; "Team"="Web"}
94+
$resource = Get-AzResource -Name demostorage -ResourceGroup demoGroup
9195
Update-AzTag -ResourceId $resource.id -Tag $tags -Operation Replace
9296
```
9397

@@ -194,6 +198,7 @@ To remove specific tags, use `Update-AzTag` and set `-Operation` to `Delete`. Pa
194198

195199
```azurepowershell-interactive
196200
$removeTags = @{"Project"="ECommerce"; "Team"="Web"}
201+
$resource = Get-AzResource -Name demostorage -ResourceGroup demoGroup
197202
Update-AzTag -ResourceId $resource.id -Tag $removeTags -Operation Delete
198203
```
199204

0 commit comments

Comments
 (0)