Skip to content

Commit eb96a51

Browse files
committed
Merge branch 'network-september' of https://github.com/venkatsvpr/azure-powershell into network-october
2 parents 85081cf + b8326a6 commit eb96a51

File tree

29 files changed

+10008
-179
lines changed

29 files changed

+10008
-179
lines changed

src/CognitiveServices/CognitiveServices.Test/CognitiveServices.Test.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
<ItemGroup>
1414
<PackageReference Include="Microsoft.Azure.Management.CognitiveServices" Version="6.0.0-preview" />
15-
<PackageReference Include="Microsoft.Azure.Management.Network" Version="19.16.0-preview" />
15+
<PackageReference Include="Microsoft.Azure.Management.Network" Version="19.16.1-preview" />
1616
</ItemGroup>
1717

1818
</Project>

src/Compute/Compute.Test/Compute.Test.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
<PackageReference Include="Microsoft.Azure.Graph.RBAC" Version="3.4.0-preview" />
1515
<PackageReference Include="Microsoft.Azure.Management.Compute" Version="29.1.0" />
1616
<PackageReference Include="Microsoft.Azure.Management.KeyVault" Version="2.4.2" />
17-
<PackageReference Include="Microsoft.Azure.Management.Network" Version="19.16.0-preview" />
17+
<PackageReference Include="Microsoft.Azure.Management.Network" Version="19.16.1-preview" />
1818
</ItemGroup>
1919

2020
<ItemGroup>

src/DataLakeStore/DataLakeStore.Test/DataLakeStore.Test.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
<ItemGroup>
1414
<PackageReference Include="Microsoft.Azure.Management.DataLake.Store" Version="2.4.2-preview" />
15-
<PackageReference Include="Microsoft.Azure.Management.Network" Version="19.16.0-preview" />
15+
<PackageReference Include="Microsoft.Azure.Management.Network" Version="19.16.1-preview" />
1616
</ItemGroup>
1717

1818
<ItemGroup>

src/Dns/Dns.Test/Dns.Test.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
<ItemGroup>
1414
<PackageReference Include="Microsoft.Azure.Management.Dns" Version="3.0.1" />
15-
<PackageReference Include="Microsoft.Azure.Management.Network" Version="19.16.0-preview" />
15+
<PackageReference Include="Microsoft.Azure.Management.Network" Version="19.16.1-preview" />
1616
</ItemGroup>
1717

1818
</Project>

src/KeyVault/KeyVault.Test/KeyVault.Test.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
<PackageReference Include="Microsoft.Azure.KeyVault" Version="3.0.1" />
1515
<PackageReference Include="Microsoft.Azure.KeyVault.WebKey" Version="3.0.1" />
1616
<PackageReference Include="Microsoft.Azure.Management.KeyVault" Version="2.4.2" />
17-
<PackageReference Include="Microsoft.Azure.Management.Network" Version="19.16.0-preview" />
17+
<PackageReference Include="Microsoft.Azure.Management.Network" Version="19.16.1-preview" />
1818
</ItemGroup>
1919

2020
<ItemGroup>

src/NetAppFiles/NetAppFiles.Test/NetAppFiles.Test.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
<ItemGroup>
1414
<PackageReference Include="Microsoft.Azure.Management.NetApp" Version="1.1.0" />
15-
<PackageReference Include="Microsoft.Azure.Management.Network" Version="19.16.0-preview" />
15+
<PackageReference Include="Microsoft.Azure.Management.Network" Version="19.16.1-preview" />
1616
</ItemGroup>
1717

1818
</Project>

src/Network/Network.Test/Network.Test.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
<ItemGroup>
1616
<PackageReference Include="Microsoft.Azure.Graph.RBAC" Version="3.4.0-preview" />
17-
<PackageReference Include="Microsoft.Azure.Management.Network" Version="19.16.0-preview" />
17+
<PackageReference Include="Microsoft.Azure.Management.Network" Version="19.16.1-preview" />
1818
<PackageReference Include="Microsoft.Azure.Insights" Version="0.16.0-preview" />
1919
<PackageReference Include="Microsoft.Azure.Management.Compute" Version="29.1.0" />
2020
<PackageReference Include="Microsoft.Azure.Management.ContainerInstance" Version="2.0.0" />

src/Network/Network.Test/ScenarioTests/ApplicationGatewayTests.ps1

Lines changed: 14 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -1994,9 +1994,7 @@ function Test-ApplicationGatewayTopLevelFirewallPolicy
19941994

19951995
# Add unsupported
19961996
Assert-ThrowsLike { Add-AzApplicationGatewayBackendAddressPool -ApplicationGateway $appgw -Name $poolName02 -BackendIPAddresses www.microsoft.com -BackendFqdns www.bing.com } "*At most one of*can be specified*"
1997-
19981997
Add-AzApplicationGatewayBackendAddressPool -ApplicationGateway $appgw -Name $poolName02 -BackendFqdns www.bing.com,www.microsoft.com
1999-
20001998
$appgw = Set-AzApplicationGateway -ApplicationGateway $appgw
20011999

20022000
Assert-NotNull $appgw.HttpListeners[0].CustomErrorConfigurations
@@ -2018,45 +2016,33 @@ function Test-ApplicationGatewayTopLevelFirewallPolicy
20182016
$listener01 = Get-AzApplicationGatewayHttpListener -ApplicationGateway $appgw -Name $listener01Name
20192017
Set-AzApplicationGatewayAutoscaleConfiguration -ApplicationGateway $appgw -MinCapacity 2
20202018
Set-AzApplicationGatewayHttpListenerCustomError -HttpListener $listener01 -StatusCode HttpStatus403 -CustomErrorPageUrl $customError403Url02
2021-
Set-AzApplicationGatewayWebApplicationFirewallConfiguration -ApplicationGateway $appgw -Enabled $true -FirewallMode Prevention -RuleSetType "OWASP" -RuleSetVersion "3.0" -RequestBodyCheck $true -MaxRequestBodySizeInKb 80 -FileUploadLimitInMb 70
2019+
Set-AzApplicationGatewayWebApplicationFirewallConfiguration -ApplicationGateway $appgw -Enabled $true -FirewallMode Prevention -RuleSetType "OWASP" -RuleSetVersion "3.0" -RequestBodyCheck $true -MaxRequestBodySizeInKb 70 -FileUploadLimitInMb 80
20222020
Set-AzApplicationGatewayTrustedRootCertificate -ApplicationGateway $appgw -Name $trustedRootCertName -CertificateFile $certFilePath2
20232021
$appgw = Set-AzApplicationGateway -ApplicationGateway $appgw
20242022

20252023
# WAF Policy and Custom Rule
20262024
$variable = New-AzApplicationGatewayFirewallMatchVariable -VariableName RequestHeaders -Selector Content-Length
20272025
$condition = New-AzApplicationGatewayFirewallCondition -MatchVariable $variable -Operator GreaterThan -MatchValue 1000 -Transform Lowercase -NegationCondition $False
20282026
$rule = New-AzApplicationGatewayFirewallCustomRule -Name example -Priority 2 -RuleType MatchRule -MatchCondition $condition -Action Block
2029-
2030-
$policySettings = New-AzApplicationGatewayFirewallPolicySettings -Mode Prevention -State Enabled -RequestBodyCheck -FileUploadLimitInMb 70 -MaxRequestBodySizeInKb 80
2027+
$policySettings = New-AzApplicationGatewayFirewallPolicySetting -Mode Prevention -State Enabled -FileUploadLimitInMb 80 -MaxRequestBodySizeInKb 70
20312028
$managedRuleSet = New-AzApplicationGatewayFirewallPolicyManagedRuleSet -RuleSetType "OWASP" -RuleSetVersion "3.0"
2032-
$managedRules = New-AzApplicationGatewayFirewallPolicyManagedRules -ManagedRuleSets $managedRuleSet
2033-
New-AzApplicationGatewayFirewallPolicy -Name $wafPolicy -ResourceGroupName $rgname -Location $location -ManagedRules $managedRules
2034-
2035-
$policy = Get-AzApplicationGatewayFirewallPolicy -Name $wafPolicy -ResourceGroupName $rgname
2036-
$policy.CustomRules = $rule
2037-
Set-AzApplicationGatewayFirewallPolicy -InputObject $policy
2038-
2029+
$managedRule = New-AzApplicationGatewayFirewallPolicyManagedRule -ManagedRuleSet $managedRuleSet
2030+
New-AzApplicationGatewayFirewallPolicy -Name $wafPolicy -ResourceGroupName $rgname -Location $location -ManagedRule $managedRule
2031+
20392032
# Get Application Gateway
20402033
$appgw = Get-AzApplicationGateway -Name $appgwName -ResourceGroupName $rgname
20412034
$appgw.FirewallPolicy = $policy
20422035
$appgw = Set-AzApplicationGateway -ApplicationGateway $appgw
2036+
2037+
$policy = Get-AzApplicationGatewayFirewallPolicy -Name $wafPolicy -ResourceGroupName $rgname
2038+
$policy.CustomRules = $rule
2039+
Set-AzApplicationGatewayFirewallPolicy -InputObject $policy
20432040

20442041
$appgw = Get-AzApplicationGateway -Name $appgwName -ResourceGroupName $rgname
20452042
$policy = Get-AzApplicationGatewayFirewallPolicy -Name $wafPolicy -ResourceGroupName $rgname
20462043

2047-
# First Check firewall configuraiton
2048-
Assert-AreEqual $appgw.WebApplicationFirewallConfiguration.Enabled $true
2049-
Assert-AreEqual $appgw.WebApplicationFirewallConfiguration.FirewallMode "Prevention"
2050-
Assert-AreEqual $appgw.WebApplicationFirewallConfiguration.RuleSetType "OWASP"
2051-
Assert-AreEqual $appgw.WebApplicationFirewallConfiguration.RuleSetVersion "3.0"
2052-
Assert-AreEqual $appgw.WebApplicationFirewallConfiguration.DisabledRuleGroups.Count 0
2053-
Assert-AreEqual $appgw.WebApplicationFirewallConfiguration.RequestBodyCheck $true
2054-
Assert-AreEqual $appgw.WebApplicationFirewallConfiguration.MaxRequestBodySizeInKb 80
2055-
Assert-AreEqual $appgw.WebApplicationFirewallConfiguration.FileUploadLimitInMb 70
2056-
Assert-AreEqual $appgw.WebApplicationFirewallConfiguration.Exclusions.Count 0
2057-
20582044
# Second check firewll policy
2059-
Assert-AreEqual $policy.Id $appgw.FirewallPolicy.Id
2045+
# Assert-AreEqual $policy.Id $appgw.FirewallPolicy.Id
20602046
Assert-AreEqual $policy.CustomRules[0].Name $rule.Name
20612047
Assert-AreEqual $policy.CustomRules[0].RuleType $rule.RuleType
20622048
Assert-AreEqual $policy.CustomRules[0].Action $rule.Action
@@ -2077,15 +2063,15 @@ function Test-ApplicationGatewayTopLevelFirewallPolicy
20772063
$exclusionEntry = New-AzApplicationGatewayFirewallPolicyExclusion -MatchVariable RequestArgNames -SelectorMatchOperator Contains -Selector Bingo
20782064
$ruleOverrideEntry1 = New-AzApplicationGatewayFirewallPolicyManagedRuleOverride -RuleId 942100
20792065
$ruleOverrideEntry2 = New-AzApplicationGatewayFirewallPolicyManagedRuleOverride -RuleId 942110
2080-
$sqlRuleGroupOverrideEntry = New-AzApplicationGatewayFirewallPolicyManagedRuleGroupOverride -RuleGroupName REQUEST-942-APPLICATION-ATTACK-SQLI -Rules $ruleOverrideEntry1,$ruleOverrideEntry2
2066+
$sqlRuleGroupOverrideEntry = New-AzApplicationGatewayFirewallPolicyManagedRuleGroupOverride -RuleGroupName REQUEST-942-APPLICATION-ATTACK-SQLI -Rule $ruleOverrideEntry1,$ruleOverrideEntry2
20812067

20822068
$ruleOverrideEntry3 = New-AzApplicationGatewayFirewallPolicyManagedRuleOverride -RuleId 941100
2083-
$xssRuleGroupOverrideEntry = New-AzApplicationGatewayFirewallPolicyManagedRuleGroupOverride -RuleGroupName REQUEST-941-APPLICATION-ATTACK-XSS -Rules $ruleOverrideEntry3
2069+
$xssRuleGroupOverrideEntry = New-AzApplicationGatewayFirewallPolicyManagedRuleGroupOverride -RuleGroupName REQUEST-941-APPLICATION-ATTACK-XSS -Rule $ruleOverrideEntry3
20842070

20852071
$managedRuleSet = New-AzApplicationGatewayFirewallPolicyManagedRuleSet -RuleSetType "OWASP" -RuleSetVersion "3.0" -RuleGroupOverride $sqlRuleGroupOverrideEntry,$xssRuleGroupOverrideEntry
2086-
$managedRules = New-AzApplicationGatewayFirewallPolicyManagedRules -ManagedRuleSet $managedRuleSet -Exclusions $exclusionEntry
2072+
$managedRules = New-AzApplicationGatewayFirewallPolicyManagedRule -ManagedRuleSet $managedRuleSet -Exclusion $exclusionEntry
20872073
$policy = Get-AzApplicationGatewayFirewallPolicy -Name $wafPolicy -ResourceGroupName $rgname
2088-
$policySettings = New-ApplicationGatewayFirewallPolicySettings -Mode Prevention -State Enabled -RequestBodyCheck $true -FileUploadLimitInMb 750 -RequestBodyCheck 128
2074+
$policySettings = New-ApplicationGatewayFirewallPolicySetting -Mode Prevention -State Enabled -FileUploadLimitInMb 750 -MaxRequestBodySizeInKb 128
20892075
$policy.managedRules = $managedRules
20902076
$policy.PolicySettings = $policySettings
20912077
Set-AzApplicationGatewayFirewallPolicy -InputObject $policy
@@ -2100,31 +2086,6 @@ function Test-ApplicationGatewayTopLevelFirewallPolicy
21002086
Assert-AreEqual $policy.PolicySettings.RequestBodyCheck $policySettings.RequestBodyCheck
21012087
Assert-AreEqual $policy.PolicySettings.Mode $policySettings.Mode
21022088
Assert-AreEqual $policy.PolicySettings.State $policySettings.State
2103-
2104-
# Set non-exiting
2105-
Assert-ThrowsLike { Set-AzApplicationGatewayHttpListenerCustomError -HttpListener $listener01 -StatusCode HttpStatus408 -CustomErrorPageUrl $customError403Url02 } "*does not exist*"
2106-
Assert-ThrowsLike { Set-AzApplicationGatewayTrustedRootCertificate -ApplicationGateway $appgw -Name "fakeName" -CertificateFile $certFilePath } "*does not exist*"
2107-
2108-
# Get Application Gateway backend health with expanded resource
2109-
$job = Get-AzApplicationGatewayBackendHealth -Name $appgwName -ResourceGroupName $rgname -ExpandResource "backendhealth/applicationgatewayresource" -AsJob
2110-
$job | Wait-Job
2111-
$backendHealth = $job | Receive-Job
2112-
Assert-NotNull $backendHealth.BackendAddressPools[0].BackendAddressPool.Name
2113-
2114-
$appgw = Set-AzApplicationGateway -ApplicationGateway $appgw
2115-
Assert-AreEqual $appgw.AutoscaleConfiguration.MinCapacity 2
2116-
2117-
# Remove
2118-
Remove-AzApplicationGatewayTrustedRootCertificate -ApplicationGateway $appgw -Name $trustedRootCertName
2119-
Remove-AzApplicationGatewayBackendHttpSettings -ApplicationGateway $appgw -Name $poolSetting02Name
2120-
Remove-AzApplicationGatewayRequestRoutingRule -ApplicationGateway $appgw -Name $rule02Name
2121-
Remove-AzApplicationGatewayHttpListener -ApplicationGateway $appgw -Name $listener02Name
2122-
$appgw = Set-AzApplicationGateway -ApplicationGateway $appgw
2123-
2124-
Assert-Null $appgw.TrustedRootCertificates
2125-
Assert-AreEqual $appgw.BackendHttpSettingsCollection.Count 1
2126-
Assert-AreEqual $appgw.RequestRoutingRules.Count 1
2127-
Assert-AreEqual $appgw.HttpListeners.Count 2
21282089
}
21292090
finally
21302091
{

src/Network/Network.Test/SessionRecords/Commands.Network.Test.ScenarioTests.ApplicationGatewayTests/TestTopLevelWafResourceWithApplicationGateway.json

Lines changed: 9782 additions & 0 deletions
Large diffs are not rendered by default.

src/Network/Network/Az.Network.psd1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,11 +112,11 @@ CmdletsToExport = 'Add-AzApplicationGatewayAuthenticationCertificate',
112112
'Remove-AzApplicationGatewayFirewallPolicy',
113113
'Set-AzApplicationGatewayFirewallPolicy',
114114
'New-AzApplicationGatewayFirewallPolicyExclusion',
115+
'New-AzApplicationGatewayFirewallPolicyManagedRule',
115116
'New-AzApplicationGatewayFirewallPolicyManagedRuleOverride',
116117
'New-AzApplicationGatewayFirewallPolicyManagedRuleGroupOverride',
117118
'New-AzApplicationGatewayFirewallPolicyManagedRuleSet',
118-
'New-AzApplicationGatewayFirewallPolicyManagedRules',
119-
'New-AzApplicationGatewayFirewallPolicySettings',
119+
'New-AzApplicationGatewayFirewallPolicySetting',
120120
'Add-AzApplicationGatewayFrontendIPConfig',
121121
'Get-AzApplicationGatewayFrontendIPConfig',
122122
'New-AzApplicationGatewayFrontendIPConfig',

src/Network/Network/FirewallPolicy/ManagedRules/NewAzureApplicationGatewayFirewallPolicyManagedRulesCommand.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
namespace Microsoft.Azure.Commands.Network
1919
{
20-
[Cmdlet("New", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "ApplicationGatewayFirewallPolicyManagedRules"), OutputType(typeof(PSApplicationGatewayFirewallPolicyManagedRules))]
20+
[Cmdlet("New", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "ApplicationGatewayFirewallPolicyManagedRule"), OutputType(typeof(PSApplicationGatewayFirewallPolicyManagedRules))]
2121
public class NewAzureApplicationGatewayFirewallPolicyManagedRulesCommand : AzureApplicationGatewayFirewallPolicyManagedRules
2222
{
2323
public override void ExecuteCmdlet()

src/Network/Network/FirewallPolicy/PolicySettings/AzureApplicationGatewayFirewallPolicySettings.cs renamed to src/Network/Network/FirewallPolicy/PolicySettings/AzureApplicationGatewayFirewallPolicySetting.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
namespace Microsoft.Azure.Commands.Network
2020
{
21-
public class AzureApplicationGatewayFirewallPolicySettings : NetworkBaseCmdlet
21+
public class AzureApplicationGatewayFirewallPolicySetting : NetworkBaseCmdlet
2222
{
2323
[Parameter(
2424
HelpMessage = "Web Application Firewall Mode.")]
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717

1818
namespace Microsoft.Azure.Commands.Network
1919
{
20-
[Cmdlet("New", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "ApplicationGatewayFirewallPolicySettings"), OutputType(typeof(PSApplicationGatewayFirewallPolicySettings))]
21-
public class NewAzureApplicationGatewayFirewallPolicySettingsCommand : AzureApplicationGatewayFirewallPolicySettings
20+
[Cmdlet("New", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "ApplicationGatewayFirewallPolicySetting"), OutputType(typeof(PSApplicationGatewayFirewallPolicySettings))]
21+
public class NewAzureApplicationGatewayFirewallPolicySettingCommand : AzureApplicationGatewayFirewallPolicySetting
2222
{
2323
public override void ExecuteCmdlet()
2424
{

src/Network/Network/Network.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
<ItemGroup>
1414
<PackageReference Include="AutoMapper" Version="6.2.2" />
15-
<PackageReference Include="Microsoft.Azure.Management.Network" Version="19.16.0-preview" />
15+
<PackageReference Include="Microsoft.Azure.Management.Network" Version="19.16.1-preview" />
1616
</ItemGroup>
1717

1818
<ItemGroup>

src/Network/Network/help/New-AzApplicationGatewayFirewallPolicy.md

Lines changed: 31 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,9 @@ Creates a application gateway firewall policy.
1414

1515
```
1616
New-AzApplicationGatewayFirewallPolicy -Name <String> -ResourceGroupName <String> -Location <String>
17-
[-ManagedRule <PSApplicationGatewayFirewallPolicyManagedRules>] [-PolicySetting <PSApplicationGatewayFirewallPolicySettings>]
18-
[-CustomRule <PSApplicationGatewayFirewallCustomRule[]>] [-Tag <Hashtable>] [-Force] [-AsJob]
17+
[-CustomRule <PSApplicationGatewayFirewallCustomRule[]>]
18+
[-PolicySetting <PSApplicationGatewayFirewallPolicySettings>]
19+
[-ManagedRule <PSApplicationGatewayFirewallPolicyManagedRules>] [-Tag <Hashtable>] [-Force] [-AsJob]
1920
[-DefaultProfile <IAzureContextContainer>] [-WhatIf] [-Confirm] [<CommonParameters>]
2021
```
2122

@@ -63,73 +64,73 @@ Accept pipeline input: True (ByPropertyName)
6364
Accept wildcard characters: False
6465
```
6566
66-
### -ManagedRule
67-
Managed Rule Setting
67+
### -DefaultProfile
68+
The credentials, account, tenant, and subscription used for communication with Azure.
6869
6970
```yaml
70-
Type: Microsoft.Azure.Commands.Network.Models.PSApplicationGatewayFirewallPolicyManagedRule
71+
Type: Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer
7172
Parameter Sets: (All)
72-
Aliases:
73+
Aliases: AzContext, AzureRmContext, AzureCredential
7374

7475
Required: False
7576
Position: Named
7677
Default value: None
77-
Accept pipeline input: True (ByPropertyName)
78+
Accept pipeline input: False
7879
Accept wildcard characters: False
7980
```
8081
81-
### -PolicySetting
82-
Policy Settings for Web Application Firewall
82+
### -Force
83+
Do not ask for confirmation if you want to overwrite a resource
8384
8485
```yaml
85-
Type: Microsoft.Azure.Commands.Network.Models.PSApplicationGatewayFirewallPolicySettings
86+
Type: System.Management.Automation.SwitchParameter
8687
Parameter Sets: (All)
8788
Aliases:
8889

8990
Required: False
9091
Position: Named
9192
Default value: None
92-
Accept pipeline input: True (ByPropertyName)
93+
Accept pipeline input: False
9394
Accept wildcard characters: False
9495
```
9596
96-
### -DefaultProfile
97-
The credentials, account, tenant, and subscription used for communication with Azure.
97+
### -Location
98+
location.
9899
99100
```yaml
100-
Type: Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer
101+
Type: System.String
101102
Parameter Sets: (All)
102-
Aliases: AzContext, AzureRmContext, AzureCredential
103+
Aliases:
103104

104-
Required: False
105+
Required: True
105106
Position: Named
106107
Default value: None
107-
Accept pipeline input: False
108+
Accept pipeline input: True (ByPropertyName)
108109
Accept wildcard characters: False
109110
```
110111
111-
### -Force
112-
Do not ask for confirmation if you want to overwrite a resource
112+
### -ManagedRule
113+
Managed Rule Setting
113114
114115
```yaml
115-
Type: System.Management.Automation.SwitchParameter
116+
Type: Microsoft.Azure.Commands.Network.Models.PSApplicationGatewayFirewallPolicyManagedRules
116117
Parameter Sets: (All)
117118
Aliases:
118119

119120
Required: False
120121
Position: Named
121122
Default value: None
122-
Accept pipeline input: False
123+
Accept pipeline input: True (ByPropertyName)
123124
Accept wildcard characters: False
124125
```
125126
126-
### -Location
127-
location.
127+
### -Name
128+
The resource name.
128129
129130
```yaml
130131
Type: System.String
131132
Parameter Sets: (All)
132-
Aliases:
133+
Aliases: ResourceName
133134

134135
Required: True
135136
Position: Named
@@ -138,15 +139,15 @@ Accept pipeline input: True (ByPropertyName)
138139
Accept wildcard characters: False
139140
```
140141
141-
### -Name
142-
The resource name.
142+
### -PolicySetting
143+
Policy Settings for Web Application Firewall
143144
144145
```yaml
145-
Type: System.String
146+
Type: Microsoft.Azure.Commands.Network.Models.PSApplicationGatewayFirewallPolicySettings
146147
Parameter Sets: (All)
147-
Aliases: ResourceName
148+
Aliases:
148149

149-
Required: True
150+
Required: False
150151
Position: Named
151152
Default value: None
152153
Accept pipeline input: True (ByPropertyName)
@@ -215,7 +216,7 @@ Accept wildcard characters: False
215216
```
216217
217218
### CommonParameters
218-
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).
219+
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216).
219220
220221
## INPUTS
221222

0 commit comments

Comments
 (0)