Skip to content

Commit

Permalink
update tags logic
Browse files Browse the repository at this point in the history
  • Loading branch information
Justin Chen committed Mar 8, 2024
1 parent 32f44e1 commit ced6e31
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions EnableAzureArc.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -84,13 +84,11 @@ $location = $arcInfo.Location
$PrivateLinkScopeId = $arcInfo.PrivateLinkScopeId

$tags = @{ # Tags to be added to the Arc servers
Department = "Department"
deployedBY = "GPO"
Responsible = "Responsible"
DeployedBy = "GPO"
}

if($arcInfo.Tags){
$tags = $arcInfo.Tags
$arcInfo.Tags.psobject.properties | Foreach { $tags[$_.Name] = $_.Value }
}

$workfolder = "$env:SystemDrive\temp"
Expand Down

0 comments on commit ced6e31

Please sign in to comment.