Skip to content

Commit

Permalink
Add if (parAzBastionEnabled) to nsg create bastion
Browse files Browse the repository at this point in the history
Fixes Azure#573
  • Loading branch information
Wouter committed Jul 14, 2023
1 parent 366d48e commit 311d113
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@ resource resBastionSubnetRef 'Microsoft.Network/virtualNetworks/subnets@2021-08-
name: 'AzureBastionSubnet'
}

resource resBastionNsg 'Microsoft.Network/networkSecurityGroups@2021-08-01' = {
resource resBastionNsg 'Microsoft.Network/networkSecurityGroups@2021-08-01' = if (parAzBastionEnabled) {
name: parAzBastionNsgName
location: parLocation
tags: parTags
Expand Down

0 comments on commit 311d113

Please sign in to comment.