-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Correct IP range for Management subnet IP group (#91)
* Correct IP range for Management subnet IP group * Add comment clarifying why forwarded traffic is allowed * Add NetBIOS name resolution port to AD FW rules * Add support for application security groups on session host and Mgmt VM NICs * Register Microsoft.Storage RP in hub sub for imaging * Configure NSGs for AVD and Mgmt hub subnets * Add application security groups for AVD and Mgmt VMs * Follow normal pattern for creating subnet address prefixes
- Loading branch information
1 parent
652ff1e
commit f8968ee
Showing
10 changed files
with
201 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
54 changes: 54 additions & 0 deletions
54
research-hub/hub-modules/networking/securityRules/managementAndAvdSubnetSecurityRules.bicep
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
param deploySubnet bool | ||
param includeDnsFirewallRules bool | ||
param includeActiveDirectoryFirewallRules bool | ||
|
||
param customDnsIPs array | ||
param domainControllerIPAddresses array | ||
|
||
param applicationSecurityGroupId string | ||
|
||
var dnsSecurityRule = deploySubnet && includeDnsFirewallRules | ||
? [ | ||
{ | ||
name: 'Allow_Outbound_DNS' | ||
properties: { | ||
direction: 'Outbound' | ||
priority: 200 | ||
protocol: '*' | ||
access: 'Allow' | ||
sourceApplicationSecurityGroups: [ | ||
{ | ||
id: applicationSecurityGroupId | ||
} | ||
] | ||
sourcePortRange: '*' | ||
destinationAddressPrefixes: customDnsIPs | ||
destinationPortRanges: ['53'] | ||
} | ||
} | ||
] | ||
: [] | ||
|
||
var addcSecurityRule = deploySubnet && includeActiveDirectoryFirewallRules | ||
? [ | ||
{ | ||
name: 'Allow_Outbound_ADDC' | ||
properties: { | ||
direction: 'Outbound' | ||
priority: 210 | ||
protocol: '*' // TCP, UDP, and also allows ICMP echo, which is a benefit | ||
access: 'Allow' | ||
sourceApplicationSecurityGroups: [ | ||
{ | ||
id: applicationSecurityGroupId | ||
} | ||
] | ||
sourcePortRange: '*' | ||
destinationAddressPrefixes: domainControllerIPAddresses | ||
destinationPortRanges: ['88', '123', '135', '138', '389', '445', '636', '3268-3269', '9389', '49152-65535'] | ||
} | ||
} | ||
] | ||
: [] | ||
|
||
output securityRules array = union(dnsSecurityRule, addcSecurityRule) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.