Skip to content

Commit

Permalink
Fixed deployment scope
Browse files Browse the repository at this point in the history
  • Loading branch information
jamasten committed Dec 12, 2024
1 parent 179cb8e commit 25478b8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/bicep/add-ons/tier3/modules/virtual-network-links.bicep
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
param azureFirewallSku string
param deploymentNameSuffix string
param hubResourceGroupName string
param hubSubscriptionId string
param privateDnsZoneNames array
param virtualNetworkName string
param virtualNetworkResourceGroupName string
param virtualNetworkSubscriptionId string
param workloadShortName string

module virtualNetworkLinks '../../../modules/virtual-network-link.bicep' = if (azureFirewallSku == 'Basic') {
scope: resourceGroup(hubSubscriptionId, hubResourceGroupName)
name: 'deploy-vnet-links-${workloadShortName}-rg-${deploymentNameSuffix}'
params: {
privateDnsZoneNames: privateDnsZoneNames
Expand Down

0 comments on commit 25478b8

Please sign in to comment.