Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug - vwanConnectivity] outAzFwPrivateIps output index error #787

Merged
merged 2 commits into from
Jun 5, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -338,6 +338,11 @@ var varZtnP1Trigger = (parDdosEnabled && !(contains(map(parVirtualWanHubs, hub =
// Azure Firewalls in Hubs
var varAzureFirewallInHubs = filter(parVirtualWanHubs, hub => hub.parAzFirewallEnabled == true)

var azureFirewallInHubsIndex = [for index in varAzureFirewallInHubs: {
index: indexOf(parVirtualWanHubs, index)
parHubLocation: index.parHubLocation
}]

// Virtual WAN resource
resource resVwan 'Microsoft.Network/virtualWans@2023-04-01' = {
name: parVirtualWanName
Expand Down Expand Up @@ -608,6 +613,6 @@ output outPrivateDnsZones array = (parPrivateDnsZonesEnabled ? modPrivateDnsZone
output outPrivateDnsZonesNames array = (parPrivateDnsZonesEnabled ? modPrivateDnsZones.outputs.outPrivateDnsZonesNames : [])

// Output Azure Firewall Private IP's
output outAzFwPrivateIps array = [for (hub, i) in varAzureFirewallInHubs: {
'${parVirtualWanHubName}-${hub.parHubLocation}': resAzureFirewall[i].properties.hubIPAddresses.privateIPAddress
output outAzFwPrivateIps array = [for (hub, i) in azureFirewallInHubsIndex: {
'${parVirtualWanHubName}-${hub.parHubLocation}': resAzureFirewall[hub.index].properties.hubIPAddresses.privateIPAddress
}]
Loading