Skip to content

Commit 3968a5f

Browse files
authored
Merge pull request #1 from htippanaboya/network-2022-07-01
Merging Network 2022 07 01 into main
2 parents 5d95e49 + ace12d6 commit 3968a5f

File tree

39 files changed

+2594
-24
lines changed

39 files changed

+2594
-24
lines changed

src/Batch/Batch.Test/Batch.Test.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
<PackageReference Include="Microsoft.Azure.Batch" Version="15.3.0" />
1717
<PackageReference Include="Microsoft.Azure.Management.Batch" Version="14.0.0" />
1818
<PackageReference Include="WindowsAzure.Storage" Version="9.3.0" />
19-
<PackageReference Include="Microsoft.Azure.Management.Network" Version="24.0.0" />
19+
<PackageReference Include="Microsoft.Azure.Management.Network" Version="25.0.0" />
2020
</ItemGroup>
2121

2222
<ItemGroup>

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
</PropertyGroup>
1212

1313
<ItemGroup>
14+
<PackageReference Include="Microsoft.Azure.Management.Network" Version="25.0.0" />
1415
<PackageReference Include="Microsoft.Azure.Management.CognitiveServices" Version="8.4.0" />
15-
<PackageReference Include="Microsoft.Azure.Management.Network" Version="24.0.0" />
1616
</ItemGroup>
1717

1818
<ItemGroup>

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="58.0.0" />
1616
<PackageReference Include="Microsoft.Azure.Management.KeyVault" Version="4.0.0-preview.1" />
17-
<PackageReference Include="Microsoft.Azure.Management.Network" Version="24.0.0" />
17+
<PackageReference Include="Microsoft.Azure.Management.Network" Version="25.0.0" />
1818
</ItemGroup>
1919

2020
<ItemGroup>

src/ContainerRegistry/ContainerRegistry.Test/ContainerRegistry.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.ContainerRegistry" Version="4.0.0" />
15-
<PackageReference Include="Microsoft.Azure.Management.Network" Version="24.0.0" />
15+
<PackageReference Include="Microsoft.Azure.Management.Network" Version="25.0.0" />
1616
<PackageReference Include="System.IdentityModel.Tokens.Jwt" Version="5.6.0" />
1717
<PackageReference Include="Microsoft.IdentityModel.Tokens" Version="5.6.0">
1818
<NoWarn>NU1608</NoWarn>

src/CosmosDB/CosmosDB.Test/CosmosDB.Test.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<Import Project="$(MSBuildThisFileDirectory)..\..\Az.Test.props" />
66
<ItemGroup>
77
<PackageReference Include="Microsoft.Azure.KeyVault" Version="3.0.1" />
8-
<PackageReference Include="Microsoft.Azure.Management.Network" Version="24.0.0" />
8+
<PackageReference Include="Microsoft.Azure.Management.Network" Version="25.0.0" />
99
<PackageReference Include="Microsoft.Azure.Management.CosmosDB" Version="3.7.0-preview" />
1010
</ItemGroup>
1111
</Project>

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="24.0.0" />
15+
<PackageReference Include="Microsoft.Azure.Management.Network" Version="25.0.0" />
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="24.0.0" />
15+
<PackageReference Include="Microsoft.Azure.Management.Network" Version="25.0.0" />
1616
</ItemGroup>
1717

1818
</Project>

src/HDInsight/HDInsight.Test/HDInsight.Test.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
<PackageReference Include="Microsoft.Azure.Management.KeyVault" Version="4.0.0-preview.1" />
1818
<PackageReference Include="Microsoft.Azure.Management.ManagedServiceIdentity" Version="0.11.0" />
1919
<PackageReference Include="Microsoft.Azure.Management.OperationalInsights" Version="0.25.0-preview" />
20-
<PackageReference Include="Microsoft.Azure.Management.Network" Version="24.0.0" />
20+
<PackageReference Include="Microsoft.Azure.Management.Network" Version="25.0.0" />
2121
</ItemGroup>
2222

2323
<ItemGroup>

src/HPCCache/HPCCache.Test/HPCCache.Test.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
<ItemGroup>
1818
<PackageReference Include="Microsoft.Azure.Management.Authorization" Version="2.13.0-preview" />
1919
<PackageReference Include="Microsoft.Azure.Management.Storage" Version="14.5.0" />
20-
<PackageReference Include="Microsoft.Azure.Management.Network" Version="24.0.0" />
20+
<PackageReference Include="Microsoft.Azure.Management.Network" Version="25.0.0" />
2121
<PackageReference Include="WindowsAzure.Storage" Version="9.3.0" />
2222
</ItemGroup>
2323

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@
1313
<ItemGroup>
1414
<PackageReference Include="Microsoft.Azure.KeyVault" Version="3.0.1" />
1515
<PackageReference Include="Microsoft.Azure.KeyVault.WebKey" Version="3.0.1" />
16-
<PackageReference Include="Microsoft.Azure.Management.Network" Version="24.0.0" />
16+
<PackageReference Include="Microsoft.Azure.Management.KeyVault" Version="4.0.0-preview.1" />
17+
<PackageReference Include="Microsoft.Azure.Management.Network" Version="25.0.0" />
1718
</ItemGroup>
1819

1920
<ItemGroup>

src/Monitor/Monitor.Test/Monitor.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.Management.Monitor" Version="0.26.0-preview" />
1515
<PackageReference Include="Microsoft.Azure.Management.ApplicationInsights" Version="0.3.0-preview" />
1616
<PackageReference Include="Microsoft.Azure.Management.OperationalInsights" Version="0.25.0-preview" />
17-
<PackageReference Include="Microsoft.Azure.Management.Network" Version="24.0.0" />
17+
<PackageReference Include="Microsoft.Azure.Management.Network" Version="25.0.0" />
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
@@ -11,7 +11,7 @@
1111
</PropertyGroup>
1212

1313
<ItemGroup>
14-
<PackageReference Include="Microsoft.Azure.Management.Network" Version="24.0.0" />
14+
<PackageReference Include="Microsoft.Azure.Management.Network" Version="25.0.0" />
1515
<PackageReference Include="Microsoft.Azure.Management.NetApp" Version="1.16.0" />
1616
</ItemGroup>
1717

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="24.0.0" />
17+
<PackageReference Include="Microsoft.Azure.Management.Network" Version="25.0.0" />
1818
<PackageReference Include="Microsoft.Azure.KeyVault" Version="3.0.5" />
1919
<PackageReference Include="Microsoft.Azure.Management.KeyVault" Version="4.0.0-preview.1" />
2020
<PackageReference Include="Microsoft.Azure.Insights" Version="0.16.0-preview" />

src/Network/Network.Test/ScenarioTests/ApplicationGatewayTests.cs

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,14 @@ public void TestAvailableWafRuleSets()
4444
TestRunner.RunTestScript("Test-AvailableWafRuleSets");
4545
}
4646

47+
[Fact]
48+
[Trait(Category.AcceptanceType, Category.CheckIn)]
49+
[Trait(Category.Owner, NrpTeamAlias.nvadev)]
50+
public void TestWafDynamicManifest()
51+
{
52+
TestRunner.RunTestScript("Test-WafDynamicManifest");
53+
}
54+
4755
[Fact]
4856
[Trait(Category.AcceptanceType, Category.CheckIn)]
4957
[Trait(Category.Owner, NrpTeamAlias.nvadev)]
@@ -237,5 +245,13 @@ public void TestApplicationGatewayFirewallPolicyWithUppercaseTransform()
237245
{
238246
TestRunner.RunTestScript("Test-ApplicationGatewayFirewallPolicyWithUppercaseTransform");
239247
}
248+
249+
[Fact]
250+
[Trait(Category.AcceptanceType, Category.CheckIn)]
251+
[Trait(Category.Owner, NrpTeamAlias.nvadev_subset1)]
252+
public void TestApplicationGatewayFirewallPolicyWithCustomBlockResponse()
253+
{
254+
TestRunner.RunTestScript("Test-ApplicationGatewayFirewallPolicyWithCustomBlockResponse");
255+
}
240256
}
241257
}

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

Lines changed: 107 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,25 @@ function Test-AvailableWafRuleSets
5454
Assert-NotNull $result.Value[0].RuleGroups[0].Rules[0].RuleId
5555
}
5656

57+
function Test-WafDynamicManifest
58+
{
59+
$location = "westus";
60+
$result = Get-AzApplicationGatewayWafDynamicManifest -Location $location
61+
# need to add the correct path - alon
62+
Assert-NotNull $result
63+
Assert-NotNull $result.defaultRuleSetType
64+
Assert-NotNull $result.defaultRuleSetVersion
65+
Assert-NotNull $result.availableRuleSets[0].RuleSetType
66+
Assert-NotNull $result.availableRuleSets[0].RuleSetVersion
67+
Assert-NotNull $result.availableRuleSets[0].tiers[0]
68+
Assert-NotNull $result.availableRuleSets[0].RuleGroups
69+
Assert-True { $result.availableRuleSets[0].RuleGroups.Count -gt 0 }
70+
Assert-NotNull $result.availableRuleSets[0].RuleGroups[0].RuleGroupName
71+
Assert-NotNull $result.availableRuleSets[0].RuleGroups[0].Rules
72+
Assert-True { $result.availableRuleSets[0].RuleGroups[0].Rules.Count -gt 0 }
73+
Assert-NotNull $result.availableRuleSets[0].RuleGroups[0].Rules[0].RuleId
74+
}
75+
5776
<#
5877
.SYNOPSIS
5978
Application gateway tests
@@ -4270,3 +4289,91 @@ function Test-ApplicationGatewayFirewallPolicyWithUppercaseTransform
42704289
Clean-ResourceGroup $rgname
42714290
}
42724291
}
4292+
4293+
function Test-ApplicationGatewayFirewallPolicyWithCustomBlockResponse
4294+
{
4295+
# Setup
4296+
$location = Get-ProviderLocation "Microsoft.Network/applicationGateways" "West US 2"
4297+
4298+
$rgname = Get-ResourceGroupName
4299+
$wafPolicy = Get-ResourceName
4300+
4301+
try
4302+
{
4303+
$resourceGroup = New-AzResourceGroup -Name $rgname -Location $location -Tags @{ testtag = "APPGw tag"}
4304+
4305+
# Test both status and body are present
4306+
$customBlockResponseBody = "Sorry! Forbidden"
4307+
$policySettings = New-AzApplicationGatewayFirewallPolicySetting -Mode Prevention -State Enabled -MaxFileUploadInMb 70 -MaxRequestBodySizeInKb 70 -CustomBlockResponseStatusCode 405 -CustomBlockResponseBody $customBlockResponseBody
4308+
$managedRuleSet = New-AzApplicationGatewayFirewallPolicyManagedRuleSet -RuleSetType "OWASP" -RuleSetVersion "3.2"
4309+
$managedRule = New-AzApplicationGatewayFirewallPolicyManagedRule -ManagedRuleSet $managedRuleSet
4310+
New-AzApplicationGatewayFirewallPolicy -Name $wafPolicy -ResourceGroupName $rgname -Location $location -ManagedRule $managedRule -PolicySetting $policySettings
4311+
4312+
$policy = Get-AzApplicationGatewayFirewallPolicy -Name $wafPolicy -ResourceGroupName $rgname
4313+
4314+
Assert-AreEqual $policySettings.FileUploadLimitInMb $policy.PolicySettings.FileUploadLimitInMb
4315+
Assert-AreEqual $policySettings.MaxRequestBodySizeInKb $policy.PolicySettings.MaxRequestBodySizeInKb
4316+
Assert-AreEqual $policySettings.RequestBodyCheck $policy.PolicySettings.RequestBodyCheck
4317+
Assert-AreEqual $policySettings.Mode $policy.PolicySettings.Mode
4318+
Assert-AreEqual $policySettings.State $policy.PolicySettings.State
4319+
Assert-AreEqual $policySettings.CustomBlockResponseStatusCode $policy.CustomBlockResponseStatusCode
4320+
Assert-AreEqual $customBlockResponseBody $policy.CustomBlockResponseBody
4321+
4322+
# test status code alone present
4323+
$policySettings = New-AzApplicationGatewayFirewallPolicySetting -Mode Prevention -State Enabled -MaxFileUploadInMb 70 -MaxRequestBodySizeInKb 70 -CustomBlockResponseStatusCode 405
4324+
$managedRuleSet = New-AzApplicationGatewayFirewallPolicyManagedRuleSet -RuleSetType "OWASP" -RuleSetVersion "3.2"
4325+
$managedRule = New-AzApplicationGatewayFirewallPolicyManagedRule -ManagedRuleSet $managedRuleSet
4326+
Set-AzApplicationGatewayFirewallPolicy -Name $wafPolicy -ResourceGroupName $rgname -ManagedRule $managedRule -PolicySetting $policySettings
4327+
4328+
$policy = Get-AzApplicationGatewayFirewallPolicy -Name $wafPolicy -ResourceGroupName $rgname
4329+
4330+
# Check firewall policy
4331+
Assert-AreEqual $policySettings.FileUploadLimitInMb $policy.PolicySettings.FileUploadLimitInMb
4332+
Assert-AreEqual $policySettings.MaxRequestBodySizeInKb $policy.PolicySettings.MaxRequestBodySizeInKb
4333+
Assert-AreEqual $policySettings.RequestBodyCheck $policy.PolicySettings.RequestBodyCheck
4334+
Assert-AreEqual $policySettings.Mode $policy.PolicySettings.Mode
4335+
Assert-AreEqual $policySettings.State $policy.PolicySettings.State
4336+
Assert-AreEqual $policySettings.CustomBlockResponseStatusCode $policy.CustomBlockResponseStatusCode
4337+
Assert-Null $policy.CustomBlockResponseBody
4338+
4339+
# test body alone present
4340+
$customBlockResponseBody = "Sorry! Forbidden. You can't access"
4341+
$policySettings = New-AzApplicationGatewayFirewallPolicySetting -Mode Prevention -State Enabled -MaxFileUploadInMb 70 -MaxRequestBodySizeInKb 70 -CustomBlockResponseBody $customBlockResponseBody
4342+
$managedRuleSet = New-AzApplicationGatewayFirewallPolicyManagedRuleSet -RuleSetType "OWASP" -RuleSetVersion "3.2"
4343+
$managedRule = New-AzApplicationGatewayFirewallPolicyManagedRule -ManagedRuleSet $managedRuleSet
4344+
Set-AzApplicationGatewayFirewallPolicy -Name $wafPolicy -ResourceGroupName $rgname -ManagedRule $managedRule -PolicySetting $policySettings
4345+
4346+
$policy = Get-AzApplicationGatewayFirewallPolicy -Name $wafPolicy -ResourceGroupName $rgname
4347+
4348+
# Check firewall policy
4349+
Assert-AreEqual $policySettings.FileUploadLimitInMb $policy.PolicySettings.FileUploadLimitInMb
4350+
Assert-AreEqual $policySettings.MaxRequestBodySizeInKb $policy.PolicySettings.MaxRequestBodySizeInKb
4351+
Assert-AreEqual $policySettings.RequestBodyCheck $policy.PolicySettings.RequestBodyCheck
4352+
Assert-AreEqual $policySettings.Mode $policy.PolicySettings.Mode
4353+
Assert-AreEqual $policySettings.State $policy.PolicySettings.State
4354+
Assert-Null $policy.CustomBlockResponseStatusCode
4355+
Assert-AreEqual $customBlockResponseBody $policy.CustomBlockResponseBody
4356+
4357+
# test both are not present
4358+
$policySettings = New-AzApplicationGatewayFirewallPolicySetting -Mode Prevention -State Enabled -MaxFileUploadInMb 70 -MaxRequestBodySizeInKb 70
4359+
$managedRuleSet = New-AzApplicationGatewayFirewallPolicyManagedRuleSet -RuleSetType "OWASP" -RuleSetVersion "3.2"
4360+
$managedRule = New-AzApplicationGatewayFirewallPolicyManagedRule -ManagedRuleSet $managedRuleSet
4361+
Set-AzApplicationGatewayFirewallPolicy -Name $wafPolicy -ResourceGroupName $rgname -ManagedRule $managedRule -PolicySetting $policySettings
4362+
4363+
$policy = Get-AzApplicationGatewayFirewallPolicy -Name $wafPolicy -ResourceGroupName $rgname
4364+
4365+
# Check firewall policy
4366+
Assert-AreEqual $policySettings.FileUploadLimitInMb $policy.PolicySettings.FileUploadLimitInMb
4367+
Assert-AreEqual $policySettings.MaxRequestBodySizeInKb $policy.PolicySettings.MaxRequestBodySizeInKb
4368+
Assert-AreEqual $policySettings.RequestBodyCheck $policy.PolicySettings.RequestBodyCheck
4369+
Assert-AreEqual $policySettings.Mode $policy.PolicySettings.Mode
4370+
Assert-AreEqual $policySettings.State $policy.PolicySettings.State
4371+
Assert-Null $policy.CustomBlockResponseStatusCode
4372+
Assert-Null $policy.CustomBlockResponseBody
4373+
}
4374+
finally
4375+
{
4376+
# Cleanup
4377+
Clean-ResourceGroup $rgname
4378+
}
4379+
}

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

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

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

Lines changed: 75 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
// ----------------------------------------------------------------------------------
2+
//
3+
// Copyright Microsoft Corporation
4+
// Licensed under the Apache License, Version 2.0 (the "License");
5+
// you may not use this file except in compliance with the License.
6+
// You may obtain a copy of the License at
7+
// http://www.apache.org/licenses/LICENSE-2.0
8+
// Unless required by applicable law or agreed to in writing, software
9+
// distributed under the License is distributed on an "AS IS" BASIS,
10+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11+
// See the License for the specific language governing permissions and
12+
// limitations under the License.
13+
// ----------------------------------------------------------------------------------
14+
15+
using Microsoft.Azure.Commands.Network.Models;
16+
using Microsoft.Azure.Management.Network;
17+
using System.Linq;
18+
using System.Management.Automation;
19+
20+
namespace Microsoft.Azure.Commands.Network
21+
{
22+
[Cmdlet("Get", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "ApplicationGatewayWafDynamicManifest"), OutputType(typeof(PSApplicationGatewayWafDynamicManifests))]
23+
public class GetAzureApplicationGatewayWafDynamicManifests : NetworkBaseCmdlet
24+
{
25+
[Parameter(
26+
Mandatory = true,
27+
HelpMessage = "The location.",
28+
ValueFromPipelineByPropertyName = true)]
29+
[ValidateNotNullOrEmpty]
30+
public string Location { get; set; }
31+
32+
public override void ExecuteCmdlet()
33+
{
34+
base.ExecuteCmdlet();
35+
var wafDynamicManifests = this.NetworkClient.NetworkManagementClient.ApplicationGatewayWafDynamicManifests.Get(Location);
36+
PSApplicationGatewayWafDynamicManifests pswafDynamicManifests;
37+
var wafDynamicManifest = wafDynamicManifests.First();
38+
pswafDynamicManifests = NetworkResourceManagerProfile.Mapper.Map<PSApplicationGatewayWafDynamicManifests>(wafDynamicManifest);
39+
pswafDynamicManifests.DefaultRuleSetVersion = wafDynamicManifest.RuleSetVersion;
40+
pswafDynamicManifests.DefaultRuleSetType = wafDynamicManifest.RuleSetType;
41+
WriteObject(pswafDynamicManifests);
42+
}
43+
}
44+
}

src/Network/Network/Az.Network.psd1

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ CmdletsToExport = 'Add-AzApplicationGatewayAuthenticationCertificate',
8585
'Remove-AzApplicationGatewayAutoscaleConfiguration',
8686
'Set-AzApplicationGatewayAutoscaleConfiguration',
8787
'Get-AzApplicationGatewayAvailableWafRuleSet',
88+
'Get-AzApplicationGatewayWafDynamicManifest',
8889
'Get-AzApplicationGatewayAvailableSslOption',
8990
'Add-AzApplicationGatewayBackendAddressPool',
9091
'Get-AzApplicationGatewayBackendAddressPool',

src/Network/Network/ChangeLog.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@
1919
--->
2020

2121
## Upcoming Release
22+
* Added optional parameters `CustomBlockResponseStatusCode` and `CustomBlockResponseBody` parameter to `AzApplicationGatewayFirewallPolicySettings`
23+
* Added a new cmdlet to get the application gateway waf manifest and rules
24+
- `Get-AzApplicationGatewayWafDynamicManifest`
2225

2326
## Version 5.1.2
2427
* Upgraded AutoMapper to Microsoft.Azure.PowerShell.AutoMapper 6.2.2 with fix [#18721]

src/Network/Network/Common/NetworkResourceManagerProfile.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1038,6 +1038,7 @@ private static void Initialize()
10381038
cfg.CreateMap<CNM.PSApplicationGatewayPrivateLinkConfiguration, MNM.ApplicationGatewayPrivateLinkConfiguration>();
10391039
cfg.CreateMap<CNM.PSApplicationGatewayPrivateLinkIpConfiguration, MNM.ApplicationGatewayPrivateLinkIpConfiguration>();
10401040
cfg.CreateMap<CNM.PSApplicationGatewayPrivateEndpointConnection, MNM.ApplicationGatewayPrivateEndpointConnection>();
1041+
cfg.CreateMap<CNM.PSApplicationGatewayWafDynamicManifests, MNM.ApplicationGatewayWafDynamicManifestResult>();
10411042

10421043
// MNM to CNM
10431044
cfg.CreateMap<MNM.ApplicationGateway, CNM.PSApplicationGateway>();
@@ -1113,6 +1114,7 @@ private static void Initialize()
11131114
cfg.CreateMap<MNM.ApplicationGatewayPrivateLinkConfiguration, CNM.PSApplicationGatewayPrivateLinkConfiguration>();
11141115
cfg.CreateMap<MNM.ApplicationGatewayPrivateLinkIpConfiguration, CNM.PSApplicationGatewayPrivateLinkIpConfiguration>();
11151116
cfg.CreateMap<MNM.ApplicationGatewayPrivateEndpointConnection, CNM.PSApplicationGatewayPrivateEndpointConnection>();
1117+
cfg.CreateMap<MNM.ApplicationGatewayWafDynamicManifestResult, CNM.PSApplicationGatewayWafDynamicManifests>();
11161118

11171119
// Application Security Groups
11181120
// CNM to MNM

0 commit comments

Comments
 (0)