Skip to content

Commit

Permalink
Add parAzBastionEnabled for nsg linking to subnet
Browse files Browse the repository at this point in the history
Fixes #573
  • Loading branch information
Wouter committed Jul 15, 2023
1 parent 311d113 commit 71c7fbc
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ var varSubnetProperties = [for subnet in varSubnetMap: {
}
]

networkSecurityGroup: (subnet.name == 'AzureBastionSubnet') ? {
networkSecurityGroup: (subnet.name == 'AzureBastionSubnet' && parAzBastionEnabled) ? {
id: '${resourceGroup().id}/providers/Microsoft.Network/networkSecurityGroups/${parAzBastionNsgName}'
} : (empty(subnet.networkSecurityGroupId)) ? null : {
id: subnet.networkSecurityGroupId
Expand Down

0 comments on commit 71c7fbc

Please sign in to comment.