Skip to content

Commit 1728ebb

Browse files
authored
Merge pull request #9100 from pichandwork/pichand/waf_rename_cmdlets
Rename WAF cmdlets from *-AzFrontDoor* to *-AzFrontDoorWaf*
2 parents cce228d + 9898839 commit 1728ebb

25 files changed

+176
-153
lines changed

src/Accounts/Accounts/AzureRmAlias/Mappings.json

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -947,14 +947,15 @@
947947
"New-AzFrontDoorFrontendEndpointObject": "New-AzureRmFrontDoorFrontendEndpointObject",
948948
"New-AzFrontDoorHealthProbeSettingObject": "New-AzureRmFrontDoorHealthProbeSettingObject",
949949
"New-AzFrontDoorLoadBalancingSettingObject": "New-AzureRmFrontDoorLoadBalancingSettingObject",
950-
"New-AzFrontDoorMatchConditionObject": "New-AzureRmFrontDoorMatchConditionObject",
951-
"New-AzFrontDoorCustomRuleObject": "New-AzureRmFrontDoorCustomRuleObject",
952-
"New-AzFrontDoorManagedRuleObject": "New-AzureRmFrontDoorManagedRuleObject",
953-
"New-AzFrontDoorFireWallPolicy": "New-AzureRmFrontDoorFireWallPolicy",
954-
"Get-AzFrontDoorFireWallPolicy": "Get-AzureRmFrontDoorFireWallPolicy",
955-
"Set-AzFrontDoorFireWallPolicy": "Set-AzureRmFrontDoorFireWallPolicy",
956-
"Remove-AzFrontDoorFireWallPolicy": "Remove-AzureRmFrontDoorFireWallPolicy",
957-
"New-AzFrontDoorRuleGroupOverrideObject": "New-AzureRmFrontDoorRuleGroupOverrideObject",
950+
"New-AzFrontDoorWafMatchConditionObject": "New-AzureRmFrontDoorMatchConditionObject",
951+
"New-AzFrontDoorWafCustomRuleObject": "New-AzureRmFrontDoorCustomRuleObject",
952+
"New-AzFrontDoorWafManagedRuleObject": "New-AzureRmFrontDoorManagedRuleObject",
953+
"New-AzFrontDoorWafManagedRuleOverrideObject": "New-AzureRmFrontDoorManagedRuleOverrideObject",
954+
"New-AzFrontDoorWafPolicy": "New-AzureRmFrontDoorFireWallPolicy",
955+
"Get-AzFrontDoorWafPolicy": "Get-AzureRmFrontDoorFireWallPolicy",
956+
"Set-AzFrontDoorWafPolicy": "Set-AzureRmFrontDoorFireWallPolicy",
957+
"Remove-AzFrontDoorWafPolicy": "Remove-AzureRmFrontDoorFireWallPolicy",
958+
"New-AzFrontDoorWafRuleGroupOverrideObject": "New-AzureRmFrontDoorRuleGroupOverrideObject",
958959
"Remove-AzFrontDoorContent": "Remove-AzureRmFrontDoorContent",
959960
"Enable-AzFrontDoorCustomDomainHttps": "Enable-AzureRmFrontDoorCustomDomainHttps",
960961
"Disable-AzFrontDoorCustomDomainHttps": "Disable-AzureRmFrontDoorCustomDomainHttps",

src/FrontDoor/FrontDoor.Test/ScenarioTests/WebApplicationFireWallPolicyTests.ps1

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -22,16 +22,16 @@ function Test-PolicyCrud
2222
$resourceGroup = TestSetup-CreateResourceGroup
2323
$resourceGroupName = $resourceGroup.ResourceGroupName
2424
$tags = @{"tag1" = "value1"; "tag2" = "value2"}
25-
$matchCondition1 = New-AzFrontDoorMatchConditionObject -MatchVariable RequestHeader -OperatorProperty Contains -Selector "UserAgent" -MatchValue "Windows"
26-
$customRule1 = New-AzFrontDoorCustomRuleObject -Name "Rule1" -RuleType MatchRule -MatchCondition $matchCondition1 -Action Block -Priority 2
25+
$matchCondition1 = New-AzFrontDoorWafMatchConditionObject -MatchVariable RequestHeader -OperatorProperty Contains -Selector "UserAgent" -MatchValue "Windows"
26+
$customRule1 = New-AzFrontDoorWafCustomRuleObject -Name "Rule1" -RuleType MatchRule -MatchCondition $matchCondition1 -Action Block -Priority 2
2727

28-
$ruleOverride = New-AzFrontDoorManagedRuleOverrideObject -RuleId "942100" -Action Log
29-
$override1 = New-AzFrontDoorRuleGroupOverrideObject -RuleGroupName SQLI -ManagedRuleOverride $ruleOverride
30-
$managedRule1 = New-AzFrontDoorManagedRuleObject -Type DefaultRuleSet -Version "preview-0.1" -RuleGroupOverride $override1
28+
$ruleOverride = New-AzFrontDoorWafManagedRuleOverrideObject -RuleId "942100" -Action Log
29+
$override1 = New-AzFrontDoorWafRuleGroupOverrideObject -RuleGroupName SQLI -ManagedRuleOverride $ruleOverride
30+
$managedRule1 = New-AzFrontDoorWafManagedRuleObject -Type DefaultRuleSet -Version "preview-0.1" -RuleGroupOverride $override1
3131

32-
New-AzFrontDoorFireWallPolicy -Name $Name -ResourceGroupName $resourceGroupName -Customrule $customRule1 -ManagedRule $managedRule1 -EnabledState Enabled -Mode Prevention
32+
New-AzFrontDoorWafPolicy -Name $Name -ResourceGroupName $resourceGroupName -Customrule $customRule1 -ManagedRule $managedRule1 -EnabledState Enabled -Mode Prevention
3333

34-
$retrievedPolicy = Get-AzFrontDoorFireWallPolicy -Name $Name -ResourceGroupName $resourceGroupName
34+
$retrievedPolicy = Get-AzFrontDoorWafPolicy -Name $Name -ResourceGroupName $resourceGroupName
3535
Assert-NotNull $retrievedPolicy
3636
Assert-AreEqual $Name $retrievedPolicy.Name
3737
Assert-AreEqual $customRule1.Name $retrievedPolicy.CustomRules[0].Name
@@ -40,18 +40,18 @@ function Test-PolicyCrud
4040
Assert-AreEqual $customRule1.Priority $retrievedPolicy.CustomRules[0].Priority
4141
Assert-AreEqual $managedRule1.RuleGroupOverrides[0].ManagedRuleOverrides[0].Action $retrievedPolicy.ManagedRules[0].RuleGroupOverrides[0].ManagedRuleOverrides[0].Action
4242

43-
$customRule2 = New-AzFrontDoorCustomRuleObject -Name "Rule2" -RuleType MatchRule -MatchCondition $matchCondition1 -Action Log -Priority 2
44-
$updatedPolicy = Update-AzFrontDoorFireWallPolicy -Name $Name -ResourceGroupName $resourceGroupName -Customrule $customRule2
43+
$customRule2 = New-AzFrontDoorWafCustomRuleObject -Name "Rule2" -RuleType MatchRule -MatchCondition $matchCondition1 -Action Log -Priority 2
44+
$updatedPolicy = Update-AzFrontDoorWafPolicy -Name $Name -ResourceGroupName $resourceGroupName -Customrule $customRule2
4545
Assert-NotNull $updatedPolicy
4646
Assert-AreEqual $Name $updatedPolicy.Name
4747
Assert-AreEqual $customRule2.Name $updatedPolicy.CustomRules[0].Name
4848
Assert-AreEqual $customRule2.Action $updatedPolicy.CustomRules[0].Action
4949
Assert-AreEqual $customRule2.Priority $updatedPolicy.CustomRules[0].Priority
5050
Assert-AreEqual $managedRule1.RuleGroupOverrides[0].ManagedRuleOverrides[0].Action $updatedPolicy.ManagedRules[0].RuleGroupOverrides[0].ManagedRuleOverrides[0].Action
5151

52-
$removed = Remove-AzFrontDoorFireWallPolicy -Name $Name -ResourceGroupName $resourceGroupName -PassThru
52+
$removed = Remove-AzFrontDoorWafPolicy -Name $Name -ResourceGroupName $resourceGroupName -PassThru
5353
Assert-True { $removed }
54-
Assert-ThrowsContains { Get-AzFrontDoorFireWallPolicy -Name $Name -ResourceGroupName $resourceGroupName } "does not exist."
54+
Assert-ThrowsContains { Get-AzFrontDoorWafPolicy -Name $Name -ResourceGroupName $resourceGroupName } "does not exist."
5555
}
5656

5757
<#
@@ -64,25 +64,25 @@ function Test-PolicyCrudWithPiping
6464
$resourceGroup = TestSetup-CreateResourceGroup
6565
$resourceGroupName = $resourceGroup.ResourceGroupName
6666
$tag = @{"tag1" = "value1"; "tag2" = "value2"}
67-
$matchCondition1 = New-AzFrontDoorMatchConditionObject -MatchVariable RequestHeader -OperatorProperty Contains -Selector "UserAgent" -MatchValue "Windows"
68-
$customRule1 = New-AzFrontDoorCustomRuleObject -Name "Rule1" -RuleType MatchRule -MatchCondition $matchCondition1 -Action Block -Priority 2
67+
$matchCondition1 = New-AzFrontDoorWafMatchConditionObject -MatchVariable RequestHeader -OperatorProperty Contains -Selector "UserAgent" -MatchValue "Windows"
68+
$customRule1 = New-AzFrontDoorWafCustomRuleObject -Name "Rule1" -RuleType MatchRule -MatchCondition $matchCondition1 -Action Block -Priority 2
6969

70-
$ruleOverride = New-AzFrontDoorManagedRuleOverrideObject -RuleId "942100" -Action Log
71-
$override1 = New-AzFrontDoorRuleGroupOverrideObject -RuleGroupName SQLI -ManagedRuleOverride $ruleOverride
72-
$managedRule1 = New-AzFrontDoorManagedRuleObject -Type DefaultRuleSet -Version "preview-0.1" -RuleGroupOverride $override1
70+
$ruleOverride = New-AzFrontDoorWafManagedRuleOverrideObject -RuleId "942100" -Action Log
71+
$override1 = New-AzFrontDoorWafRuleGroupOverrideObject -RuleGroupName SQLI -ManagedRuleOverride $ruleOverride
72+
$managedRule1 = New-AzFrontDoorWafManagedRuleObject -Type DefaultRuleSet -Version "preview-0.1" -RuleGroupOverride $override1
7373

74-
New-AzFrontDoorFireWallPolicy -Name $Name -ResourceGroupName $resourceGroupName -Customrule $customRule1 -ManagedRule $managedRule1 -EnabledState Enabled -Mode Prevention
74+
New-AzFrontDoorWafPolicy -Name $Name -ResourceGroupName $resourceGroupName -Customrule $customRule1 -ManagedRule $managedRule1 -EnabledState Enabled -Mode Prevention
7575

76-
$customRule2 = New-AzFrontDoorCustomRuleObject -Name "Rule2" -RuleType MatchRule -MatchCondition $matchCondition1 -Action Log -Priority 2
77-
$updatedPolicy = Get-AzFrontDoorFireWallPolicy -Name $Name -ResourceGroupName $resourceGroupName | Update-AzFrontDoorFireWallPolicy -Customrule $customRule2
76+
$customRule2 = New-AzFrontDoorWafCustomRuleObject -Name "Rule2" -RuleType MatchRule -MatchCondition $matchCondition1 -Action Log -Priority 2
77+
$updatedPolicy = Get-AzFrontDoorWafPolicy -Name $Name -ResourceGroupName $resourceGroupName | Update-AzFrontDoorWafPolicy -Customrule $customRule2
7878
Assert-NotNull $updatedPolicy
7979
Assert-AreEqual $Name $updatedPolicy.Name
8080
Assert-AreEqual $customRule2.Name $updatedPolicy.CustomRules[0].Name
8181
Assert-AreEqual $customRule2.Action $updatedPolicy.CustomRules[0].Action
8282
Assert-AreEqual $customRule2.Priority $updatedPolicy.CustomRules[0].Priority
8383
Assert-AreEqual $managedRule1.RuleGroupOverrides[0].ManagedRuleOverrides[0].Action $updatedPolicy.ManagedRules[0].RuleGroupOverrides[0].ManagedRuleOverrides[0].Action
8484

85-
$removed = Get-AzFrontDoorFireWallPolicy -Name $Name -ResourceGroupName $resourceGroupName | Remove-AzFrontDoorFireWallPolicy -PassThru
85+
$removed = Get-AzFrontDoorWafPolicy -Name $Name -ResourceGroupName $resourceGroupName | Remove-AzFrontDoorWafPolicy -PassThru
8686
Assert-True { $removed }
87-
Assert-ThrowsContains { Get-AzFrontDoorFireWallPolicy -Name $Name -ResourceGroupName $resourceGroupName } "does not exist."
87+
Assert-ThrowsContains { Get-AzFrontDoorWafPolicy -Name $Name -ResourceGroupName $resourceGroupName } "does not exist."
8888
}

src/FrontDoor/FrontDoor/Az.FrontDoor.psd1

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -80,16 +80,16 @@ CmdletsToExport = 'New-AzFrontDoor', 'Get-AzFrontDoor', 'Set-AzFrontDoor',
8080
'New-AzFrontDoorFrontendEndpointObject',
8181
'New-AzFrontDoorHealthProbeSettingObject',
8282
'New-AzFrontDoorLoadBalancingSettingObject',
83-
'New-AzFrontDoorMatchConditionObject',
84-
'New-AzFrontDoorCustomRuleObject',
85-
'New-AzFrontDoorManagedRuleObject', 'New-AzFrontDoorFireWallPolicy',
86-
'Get-AzFrontDoorFireWallPolicy', 'Update-AzFrontDoorFireWallPolicy',
87-
'Remove-AzFrontDoorFireWallPolicy',
88-
'New-AzFrontDoorRuleGroupOverrideObject',
83+
'New-AzFrontDoorWafMatchConditionObject',
84+
'New-AzFrontDoorWafCustomRuleObject',
85+
'New-AzFrontDoorWafManagedRuleObject', 'New-AzFrontDoorWafPolicy',
86+
'Get-AzFrontDoorWafPolicy', 'Update-AzFrontDoorWafPolicy',
87+
'Remove-AzFrontDoorWafPolicy',
88+
'New-AzFrontDoorWafRuleGroupOverrideObject',
8989
'Remove-AzFrontDoorContent', 'Enable-AzFrontDoorCustomDomainHttps',
9090
'Disable-AzFrontDoorCustomDomainHttps',
9191
'Get-AzFrontDoorFrontendEndpoint',
92-
'New-AzFrontDoorManagedRuleOverrideObject'
92+
'New-AzFrontDoorWafManagedRuleOverrideObject'
9393

9494
# Variables to export from this module
9595
# VariablesToExport = @()

src/FrontDoor/FrontDoor/ChangeLog.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,19 @@
1818
- Additional information about change #1
1919
-->
2020
## Upcoming Release
21+
## Version 0.7.5
22+
* Rename WAF cmdlets to include 'Waf'
23+
- `Get-AzFrontDoorFireWallPolicy --> Get-AzFrontDoorWafPolicy`
24+
- `New-AzFrontDoorCustomRuleObject --> New-AzFrontDoorWafCustomRuleObject`
25+
- `New-AzFrontDoorFireWallPolicy --> New-AzFrontDoorWafPolicy`
26+
- `New-AzFrontDoorManagedRuleObject --> New-AzFrontDoorWafManagedRuleObject`
27+
- `New-AzFrontDoorManagedRuleOverrideObject --> New-AzFrontDoorWafManagedRuleOverrideObject`
28+
- `New-AzFrontDoorMatchConditionObject --> New-AzFrontDoorWafMatchConditionObject`
29+
- `New-AzFrontDoorRuleGroupOverrideObject --> New-AzFrontDoorWafRuleGroupOverrideObject`
30+
- `Remove-AzFrontDoorFireWallPolicy --> Remove-AzFrontDoorWafPolicy`
31+
- `Update-AzFrontDoorFireWallPolicy --> Update-AzFrontDoorWafPolicy`
32+
33+
2134
## Version 0.7.4
2235
* Change enum type parameters to string.
2336

src/FrontDoor/FrontDoor/Cmdlets/GetAzureRmFrontDoorFireWallPolicy.cs renamed to src/FrontDoor/FrontDoor/Cmdlets/GetAzureRmFrontDoorWafPolicy.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ namespace Microsoft.Azure.Commands.FrontDoor.Cmdlets
2929
/// <summary>
3030
/// Defines the Get-AzFrontDoorFireWallPolicy cmdlet.
3131
/// </summary>
32-
[Cmdlet("Get", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "FrontDoorFireWallPolicy"), OutputType(typeof(PSPolicy))]
33-
public class GetAzureRmFrontDoorFireWallPolicy : AzureFrontDoorCmdletBase
32+
[Cmdlet("Get", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "FrontDoorWafPolicy"), OutputType(typeof(PSPolicy))]
33+
public class GetAzureRmFrontDoorWafPolicy : AzureFrontDoorCmdletBase
3434
{
3535
/// <summary>
3636
/// The resource group name.

src/FrontDoor/FrontDoor/Cmdlets/NewAzureRmFrontDoorCustomRuleObject.cs renamed to src/FrontDoor/FrontDoor/Cmdlets/NewAzureRmFrontDoorWafCustomRuleObject.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@
2626
namespace Microsoft.Azure.Commands.FrontDoor.Cmdlets
2727
{
2828
/// <summary>
29-
/// Defines the New-AzFrontDoorCustomRuleObject cmdlet.
29+
/// Defines the New-AzFrontDoorWafCustomRuleObject cmdlet.
3030
/// </summary>
31-
[Cmdlet("New", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "FrontDoorCustomRuleObject"), OutputType(typeof(PSCustomRule))]
32-
public class NewAzureRmFrontDoorCustomRuleObject : AzureFrontDoorCmdletBase
31+
[Cmdlet("New", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "FrontDoorWafCustomRuleObject"), OutputType(typeof(PSCustomRule))]
32+
public class NewAzureRmFrontDoorWafCustomRuleObject : AzureFrontDoorCmdletBase
3333
{
3434
/// <summary>
3535
/// Name of the rule.

src/FrontDoor/FrontDoor/Cmdlets/NewAzureRmFrontDoorManagedRuleObject.cs renamed to src/FrontDoor/FrontDoor/Cmdlets/NewAzureRmFrontDoorWafManagedRuleObject.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@
2121
namespace Microsoft.Azure.Commands.FrontDoor.Cmdlets
2222
{
2323
/// <summary>
24-
/// Defines the New-AzFrontDoorManagedRuleObject cmdlet.
24+
/// Defines the New-AzFrontDoorWafManagedRuleObject cmdlet.
2525
/// </summary>
26-
[Cmdlet("New", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "FrontDoorManagedRuleObject"), OutputType(typeof(PSAzureManagedRule))]
27-
public class NewAzureRmFrontDoorManagedRuleObject : AzureFrontDoorCmdletBase
26+
[Cmdlet("New", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "FrontDoorWafManagedRuleObject"), OutputType(typeof(PSAzureManagedRule))]
27+
public class NewAzureRmFrontDoorWafManagedRuleObject : AzureFrontDoorCmdletBase
2828
{
2929
/// <summary>
3030
/// Type of the ruleset (e.g.: DefaultRuleSet)

src/FrontDoor/FrontDoor/Cmdlets/NewAzureRmFrontDoorManagedRuleOverrideObject.cs renamed to src/FrontDoor/FrontDoor/Cmdlets/NewAzureRmFrontDoorWafManagedRuleOverrideObject.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@
2121
namespace Microsoft.Azure.Commands.FrontDoor.Cmdlets
2222
{
2323
/// <summary>
24-
/// Defines the New-AzFrontDoorManagedRuleOverrideObject cmdlet.
24+
/// Defines the New-AzFrontDoorWafManagedRuleOverrideObject cmdlet.
2525
/// </summary>
26-
[Cmdlet("New", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "FrontDoorManagedRuleOverrideObject"), OutputType(typeof(PSAzureManagedRuleOverride))]
27-
public class NewAzureRmFrontDoorManagedRuleOverrideObject : AzureFrontDoorCmdletBase
26+
[Cmdlet("New", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "FrontDoorWafManagedRuleOverrideObject"), OutputType(typeof(PSAzureManagedRuleOverride))]
27+
public class NewAzureRmFrontDoorWafManagedRuleOverrideObject : AzureFrontDoorCmdletBase
2828
{
2929
/// <summary>
3030
/// Rule ID

src/FrontDoor/FrontDoor/Cmdlets/NewAzureRmFrontDoorMatchConditionObject.cs renamed to src/FrontDoor/FrontDoor/Cmdlets/NewAzureRmFrontDoorWafMatchConditionObject.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@
2222
namespace Microsoft.Azure.Commands.FrontDoor.Cmdlets
2323
{
2424
/// <summary>
25-
/// Defines the New-AzFrontDoorMatchConditionObject cmdlet.
25+
/// Defines the New-AzFrontDoorWafMatchConditionObject cmdlet.
2626
/// </summary>
27-
[Cmdlet("New", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "FrontDoorMatchConditionObject"), OutputType(typeof(PSMatchCondition))]
28-
public class NewAzureRmFrontDoorMatchConditionObject : AzureFrontDoorCmdletBase
27+
[Cmdlet("New", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "FrontDoorWafMatchConditionObject"), OutputType(typeof(PSMatchCondition))]
28+
public class NewAzureRmFrontDoorWafMatchConditionObject : AzureFrontDoorCmdletBase
2929
{
3030

3131
/// <summary>

src/FrontDoor/FrontDoor/Cmdlets/NewAzureRmFrontDoorFireWallPolicy.cs renamed to src/FrontDoor/FrontDoor/Cmdlets/NewAzureRmFrontDoorWafPolicy.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,10 @@
2727
namespace Microsoft.Azure.Commands.FrontDoor.Cmdlets
2828
{
2929
/// <summary>
30-
/// Defines the New-AzFrontDoorFireWallPolicy cmdlet.
30+
/// Defines the New-AzFrontDoorWafPolicy cmdlet.
3131
/// </summary>
32-
[Cmdlet("New", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "FrontDoorFireWallPolicy", SupportsShouldProcess = true), OutputType(typeof(PSPolicy))]
33-
public class NewAzureRmFrontDoorFireWallPolicy : AzureFrontDoorCmdletBase
32+
[Cmdlet("New", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "FrontDoorWafPolicy", SupportsShouldProcess = true), OutputType(typeof(PSPolicy))]
33+
public class NewAzureRmFrontDoorWafPolicy : AzureFrontDoorCmdletBase
3434
{
3535
/// <summary>
3636
/// The resource group name.

src/FrontDoor/FrontDoor/Cmdlets/NewAzureRmFrontDoorRuleGroupOverrideObject.cs renamed to src/FrontDoor/FrontDoor/Cmdlets/NewAzureRmFrontDoorWafRuleGroupOverrideObject.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@
2020
namespace Microsoft.Azure.Commands.FrontDoor.Cmdlets
2121
{
2222
/// <summary>
23-
/// Defines the New-AzFrontDoorRuleGroupOverrideObject cmdlet.
23+
/// Defines the New-AzFrontDoorWafRuleGroupOverrideObject cmdlet.
2424
/// </summary>
25-
[Cmdlet("New", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "FrontDoorRuleGroupOverrideObject"), OutputType(typeof(PSAzureRuleGroupOverride))]
26-
public class NewAzureRmFrontDoorRuleGroupOverrideObject : AzureFrontDoorCmdletBase
25+
[Cmdlet("New", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "FrontDoorWafRuleGroupOverrideObject"), OutputType(typeof(PSAzureRuleGroupOverride))]
26+
public class NewAzureRmFrontDoorWafRuleGroupOverrideObject : AzureFrontDoorCmdletBase
2727
{
2828
/// <summary>
2929
/// Rule Group Name

src/FrontDoor/FrontDoor/Cmdlets/RemoveAzureRmFrontDoorFireWallPolicy.cs renamed to src/FrontDoor/FrontDoor/Cmdlets/RemoveAzureRmFrontDoorWafPolicy.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,10 @@
2929
namespace Microsoft.Azure.Commands.FrontDoor.Cmdlets
3030
{
3131
/// <summary>
32-
/// Defines the Remove-AzFrontDoorFireWallPolicy cmdlet.
32+
/// Defines the Remove-AzFrontDoorWafPolicy cmdlet.
3333
/// </summary>
34-
[Cmdlet("Remove", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "FrontDoorFireWallPolicy", SupportsShouldProcess = true, DefaultParameterSetName = FieldsParameterSet), OutputType(typeof(bool))]
35-
public class RemoveAzureRmFrontDoorFireWallPolicy : AzureFrontDoorCmdletBase
34+
[Cmdlet("Remove", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "FrontDoorWafPolicy", SupportsShouldProcess = true, DefaultParameterSetName = FieldsParameterSet), OutputType(typeof(bool))]
35+
public class RemoveAzureRmFrontDoorWafPolicy : AzureFrontDoorCmdletBase
3636
{
3737
[Parameter(Mandatory = true, ParameterSetName = FieldsParameterSet, HelpMessage = "The resource group to which the WAF policy belongs.")]
3838
[ValidateNotNullOrEmpty]

src/FrontDoor/FrontDoor/Cmdlets/UpdateAzureRmFrontDoorFireWallPolicy.cs renamed to src/FrontDoor/FrontDoor/Cmdlets/UpdateAzureRmFrontDoorWafPolicy.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,10 @@
2929
namespace Microsoft.Azure.Commands.FrontDoor.Cmdlets
3030
{
3131
/// <summary>
32-
/// Defines the Update-AzFrontDoorFireWallPolicy cmdlet.
32+
/// Defines the Update-AzFrontDoorWafPolicy cmdlet.
3333
/// </summary>
34-
[Cmdlet("Update", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "FrontDoorFireWallPolicy", SupportsShouldProcess = true, DefaultParameterSetName = FieldsParameterSet), OutputType(typeof(PSPolicy))]
35-
public class UpdateAzureRmFrontDoorFireWallPolicy : AzureFrontDoorCmdletBase
34+
[Cmdlet("Update", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "FrontDoorWafPolicy", SupportsShouldProcess = true, DefaultParameterSetName = FieldsParameterSet), OutputType(typeof(PSPolicy))]
35+
public class UpdateAzureRmFrontDoorWafPolicy : AzureFrontDoorCmdletBase
3636
{
3737
/// <summary>
3838
/// The resource group to which the FireWallPolicy belongs.

0 commit comments

Comments
 (0)