From 2913b7696343f41724c116c720532b376b686610 Mon Sep 17 00:00:00 2001 From: Jonathan Vella Date: Fri, 26 Apr 2024 12:09:48 +0300 Subject: [PATCH] Update create-resource-group-with-tags.ps1 --- .../scripts/create-resource-group-with-tags.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/102-Azure-Landing-Zones/scripts/create-resource-group-with-tags.ps1 b/102-Azure-Landing-Zones/scripts/create-resource-group-with-tags.ps1 index b233abc..642bf5b 100644 --- a/102-Azure-Landing-Zones/scripts/create-resource-group-with-tags.ps1 +++ b/102-Azure-Landing-Zones/scripts/create-resource-group-with-tags.ps1 @@ -3,10 +3,10 @@ # Define variables $name = "rg-" $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"}