Skip to content

Commit 616b3f3

Browse files
committed
add Outbound rules in NSG for Container
1 parent fc446f9 commit 616b3f3

1 file changed

Lines changed: 14 additions & 3 deletions

File tree

infra/main.bicep

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,6 @@ module avmNetworkSecurityGroup_Containers 'br/public:avm/res/network/network-sec
134134
sourcePortRange: '*'
135135
destinationPortRanges: ['443', '80']
136136
destinationAddressPrefixes: ['10.0.2.0/24']
137-
destinationAddressPrefix: '*'
138137
}
139138
}
140139
{
@@ -148,7 +147,6 @@ module avmNetworkSecurityGroup_Containers 'br/public:avm/res/network/network-sec
148147
sourcePortRange: '*'
149148
destinationPortRanges: ['30000-32767']
150149
destinationAddressPrefixes: ['10.0.2.0/24']
151-
destinationAddressPrefix: '*'
152150
}
153151
}
154152
{
@@ -159,12 +157,25 @@ module avmNetworkSecurityGroup_Containers 'br/public:avm/res/network/network-sec
159157
priority: 103
160158
protocol: '*'
161159
sourcePortRange: '*'
162-
destinationPortRange: '*'
163160
sourceAddressPrefixes: ['10.0.2.0/24']
161+
destinationPortRange: '*'
164162
destinationAddressPrefix: '*'
165163
}
166164
}
167165
//Outbound Rules
166+
{
167+
name: 'AllowOutboundToAzureServices'
168+
properties: {
169+
access: 'Allow'
170+
direction: 'Outbound'
171+
priority: 100
172+
protocol: '*'
173+
sourceAddressPrefixes: ['10.0.2.0/24']
174+
sourcePortRange: '*'
175+
destinationPortRange: '*'
176+
destinationAddressPrefix: '*'
177+
}
178+
}
168179
]
169180
}
170181
}

0 commit comments

Comments
 (0)