-
Notifications
You must be signed in to change notification settings - Fork 0
/
nsg-app04-prod.bicep
34 lines (32 loc) · 1.02 KB
/
nsg-app04-prod.bicep
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
@description('Name of the Azure Network Security Group')
param nsgName string = 'app04-prod-nsg'
param location string = resourceGroup().location
resource app04nsg 'Microsoft.Network/networkSecurityGroups@2022-07-01' = {
name: nsgName
location: location
properties: {
securityRules: [
{
name: 'anyToWeb-inbound'
properties: {
access: 'Allow'
description: 'Allows inbound web access to the web servers'
destinationAddressPrefix: '10.10.14.0/28'
destinationPortRange: '443'
direction: 'inbound'
priority: 1010
protocol: 'TCP'
sourceAddressPrefix: '*'
sourcePortRange: '*'
}
}
]
}
}
// Deploy shared NSG rules
module sharedInboundRules './shared/shared/bicep/nsg-shared-inbound-rules.bicep' = {
name: 'in-rules-deploy'
params: {
nsgName: app04nsg.name
}
}