File tree Expand file tree Collapse file tree 2 files changed +12
-18
lines changed
src/ResourceManager/Network/Commands.Network Expand file tree Collapse file tree 2 files changed +12
-18
lines changed Original file line number Diff line number Diff line change @@ -25,11 +25,11 @@ private static IEnumerable<string> GetAzureFirewallAllowedFqdnTags()
25
25
{
26
26
return new List < string >
27
27
{
28
- "Windows Update " ,
29
- "Windows Diagnostics " ,
30
- "App Service Environment " ,
31
- "Microsoft Active Protection Service " ,
32
- "Azure Backup "
28
+ "WindowsUpdate " ,
29
+ "WindowsDiagnostics " ,
30
+ "AppServiceEnvironment " ,
31
+ "MicrosoftActiveProtectionService " ,
32
+ "AzureBackup "
33
33
} ;
34
34
}
35
35
@@ -42,19 +42,13 @@ public static List<string> MapUserInputToAllowedFqdnTags(IEnumerable<string> use
42
42
43
43
var allowedFqdnTags = GetAzureFirewallAllowedFqdnTags ( ) ;
44
44
45
- // Accept both the full version from user and the version without spaces, both case insensistive
45
+ // Accept user input case insensistive
46
46
var userAcceptedFqdnTags = allowedFqdnTags . Aggregate (
47
47
new Dictionary < string , string > ( ) ,
48
48
( userAcceptedVersions , allowedFqdnTag ) =>
49
49
{
50
50
userAcceptedVersions . Add ( allowedFqdnTag . ToUpper ( ) , allowedFqdnTag ) ;
51
51
52
- if ( allowedFqdnTag . Contains ( " " ) )
53
- {
54
- var tagWithoutSpaces = allowedFqdnTag . Replace ( " " , string . Empty ) ;
55
- userAcceptedVersions . Add ( tagWithoutSpaces . ToUpper ( ) , allowedFqdnTag ) ;
56
- }
57
-
58
52
return userAcceptedVersions ;
59
53
} ) ;
60
54
Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ This example creates a rule which will allow all HTTPS traffic on port 443 from
44
44
45
45
### 2: Create a rule to allow WindowsUpdate for 10.0.0.0/24 subnet
46
46
```
47
- New-AzureRmFirewallApplicationRule -Name "windows-update-rule" -FqdnTag "Windows Update" -SourceAddress "10.0.0.0/24"
47
+ New-AzureRmFirewallApplicationRule -Name "windows-update-rule" -FqdnTag WindowsUpdate -SourceAddress "10.0.0.0/24"
48
48
```
49
49
50
50
This example creates a rule which will allow traffic for Windows Updates for 10.0.0.0/24 domain.
@@ -84,11 +84,11 @@ Accept wildcard characters: False
84
84
### -FqdnTag
85
85
Specifies a list of FQDN Tags for this rule. The available tags are:
86
86
87
- - Windows Update
88
- - Windows Diagnostics
89
- - App Service Environment
90
- - Microsoft Active Protection Service
91
- - Azure Backup
87
+ - WindowsUpdate
88
+ - WindowsDiagnostics
89
+ - AppServiceEnvironment
90
+ - MicrosoftActiveProtectionService
91
+ - AzureBackup
92
92
93
93
` ` ` yaml
94
94
Type : System.Collections.Generic.List`1[System.String]
You can’t perform that action at this time.
0 commit comments