Skip to content

Commit

Permalink
Update create-resource-group-with-tags.ps1
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathan-vella authored Apr 26, 2024
1 parent 5968526 commit 2913b76
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
# Define variables
$name = "rg-<unique>"
$location = "eastus"
$tags = "@{environment=dev; costcenter=shared; workload=aks-demo; owner=jonathan}"
$tags = @{environment= "dev"; costcenter= "shared"; workload="aks-demo"; owner="jonathan"}

# Create a Resource Group with Tags
New-AzResourceGroup -Name $name -Location $locationlocation> -Tag $tags
New-AzResourceGroup -Name $name -Location $location -Tag $tags

# Add a new set of tags to a resource group, use:
$newtags = @{"Dept"="Finance"; "Status"="Normal"}
Expand Down

0 comments on commit 2913b76

Please sign in to comment.