Skip to content

Commit

Permalink
Update Azure tags handler (#11629)
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexey-Ayupov authored Feb 20, 2025
1 parent bca30bf commit c40b724
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions images.CI/linux-and-win/build-image.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ $SensitiveData = @(
': ->'
)

$azure_tags = ($Tags.GetEnumerator() | ForEach-Object { "{0}={1}" -f $_.Key, $_.Value }) -join ","
$azure_tags = $Tags | ConvertTo-Json -Compress

Write-Host "Show Packer Version"
packer --version
Expand All @@ -60,7 +60,7 @@ packer build -var "client_id=$ClientId" `
-var "virtual_network_resource_group_name=$VirtualNetworkRG" `
-var "virtual_network_subnet_name=$VirtualNetworkSubnet" `
-var "allowed_inbound_ip_addresses=$($AllowedInboundIpAddresses)" `
-var "azure_tags={$azure_tags}" `
-var "azure_tags=$azure_tags" `
-color=false `
$TemplatePath `
| Where-Object {
Expand Down

0 comments on commit c40b724

Please sign in to comment.