Skip to content

Commit 4697bbe

Browse files
anton-evseevaegalNilambarisaisujithreddymtejasshah7
authored
Network May release (#12157)
* PR: LoadBalancerBackendAddressPool powershell Cmdlets (#11734) * lb backend address pool create/update/delete operations * adding tests with draft * making some updates for design review PR to powershell team * adding .md files * -adding tests -updating help files -addressing feedback * pulling in sdk changes for network-may branch for validation errors * Addressing comments and updating output format for PsLoadBalancerBackendAddress * updating .md files and making final changes Co-authored-by: Ali Egal <[email protected]> * Adding new optional parameter to specify dns servers for Virtual Wan P2SVpnGateway and P2SClients (#12006) * Adding new optional parameter to specify dns servers for Virtual Wan-P2SVpnGateway and P2SClients * Incorporate code review comments and added test record * Suppress warnings * Suppress cred scan errors * updating help files examples (#12068) Co-authored-by: Ali Egal <[email protected]> * multipip changes * Do not pass new fields with default values unless configured explicitly (#12076) * multi pip changes * ps tests * generating help files * help files changes * help file * regenerating help files * updated markdown file * renaming the cmdlets * name change * tests * renaming a help file * updating the recordings * test * Used signed Network SDK with API version 2020-05-01 (#12100) * Network SDK for 2020-05-01 * Fixes for FirewallPolicy * Recs * Recs * SDK package * Ignore Network API version in Batch tests * CredScan suppression * clean up * updatid recordings * clean up * clean up * Vpn gateway commandlet update (#12108) * commit1 * commit2 * Fix1 Co-authored-by: Khushboo Baheti <[email protected]> * addressing comments * added exceptions * correcting the exceptions * Change RuleGroup, RuleCollectionGroup, and RuleType and add support for Multiple DNAT Rule Collections (#12095) * Change RuleGroup and RuleCollectionGroup based on swagger change. Also, add support for NAT Rule Collections containing multiple NAT Rule Collections * PR Comments * Updated the SDK * StaticAnalysis * Previous changes got removed in rebase * update to vnet reference id only * Use Network SDK from NuGet (#12114) * Use Network SDK from NuGet * Additional mappings * Firewall Policy ThreatIntelWhitelist (#12078) * ti whitelist changes * build fix * help files * added examples for help files * adding the online version * recordings done * changed to markdown files * fixed statis analysis * added exception for static analysis * addressing comments * updated recordings * new recordings * updating due to validation error on CICD pipeline * refreshing test files, updating to remove id from variable to fix casting error * DNS Proxy in Firewall Policy (#12120) * merge conflict * fixes * tejas review Co-authored-by: Ishani Gupta <[email protected]> * Add support for IPGroups in Firewall Policy Rules (#12118) * Add support for IPGroups in Firewall Policy Rules * Pr Comments * Resolved merge conflicts * Update ChangeLog.md * Update ChangeLog.md Co-authored-by: Yabo Hu <[email protected]> * Application Gateway Private Link Cmdlets (#12133) * Application Gateway Private Link Cmdlets * add change log * Add new cmdlet Reset-AzHubRouter (#12094) * add routing state and expose reset-hubrouter * update help * updated * Update ChangeLog.md * update help file name * export cmdlet * update test * fix * update md file * update tests * updated help * Update Reset-AzHubRouter.md * test recorded Co-authored-by: Yabo Hu <[email protected]> * Fixes after merge * Revert HPCCache.Test.csproj Co-authored-by: aegal <[email protected]> Co-authored-by: Ali Egal <[email protected]> Co-authored-by: Nilambari <[email protected]> Co-authored-by: Sai Mankala <[email protected]> Co-authored-by: tejasshah7 <[email protected]> Co-authored-by: Khushboo Baheti <[email protected]> Co-authored-by: Khushboo Baheti <[email protected]> Co-authored-by: Ishani Gupta <[email protected]> Co-authored-by: Ishani Gupta <[email protected]> Co-authored-by: Yabo Hu <[email protected]> Co-authored-by: jaishals <[email protected]> Co-authored-by: Ritvika Reddy Nagula <[email protected]>
1 parent 9a18f3f commit 4697bbe

File tree

370 files changed

+311539
-300131
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

370 files changed

+311539
-300131
lines changed

src/Accounts/Accounts/AzureRmAlias/Mappings.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1488,6 +1488,11 @@
14881488
"Set-AzVirtualNetworkGatewayConnectionSharedKey": "Set-AzureRmVirtualNetworkGatewayConnectionSharedKey",
14891489
"Set-AzVirtualNetworkGatewayConnection": "Set-AzureRmVirtualNetworkGatewayConnection",
14901490
"New-AzIpsecPolicy": "New-AzureRmIpsecPolicy",
1491+
"Get-AzLoadBalancerBackendAddressPool": "Get-AzureRmLoadBalancerBackendAddressPool",
1492+
"Set-AzLoadBalancerBackendAddressPool": "Set-AzureRmLoadBalancerBackendAddressPool",
1493+
"New-AzLoadBalancerBackendAddressPool": "New-AzureRmLoadBalancerBackendAddressPool",
1494+
"Remove-AzLoadBalancerBackendAddressPool": "Remove-AzureRmLoadBalancerBackendAddressPool",
1495+
"New-AzLoadBalancerBackendAddressConfig": "New-AzureRmLoadBalancerBackendAddressConfig",
14911496
"Get-AzLoadBalancerBackendAddressPoolConfig": "Get-AzureRmLoadBalancerBackendAddressPoolConfig",
14921497
"Add-AzLoadBalancerBackendAddressPoolConfig": "Add-AzureRmLoadBalancerBackendAddressPoolConfig",
14931498
"New-AzLoadBalancerBackendAddressPoolConfig": "New-AzureRmLoadBalancerBackendAddressPoolConfig",

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<Project Sdk="Microsoft.NET.Sdk">
1+
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
44
<PsModuleName>Batch</PsModuleName>
@@ -17,7 +17,7 @@
1717
<PackageReference Include="Microsoft.Azure.Batch" Version="13.0.0" />
1818
<PackageReference Include="Microsoft.Azure.Management.Batch" Version="11.0.0" />
1919
<PackageReference Include="WindowsAzure.Storage" Version="9.3.0" />
20-
<PackageReference Include="Microsoft.Azure.Management.Network" Version="19.21.1-preview" />
20+
<PackageReference Include="Microsoft.Azure.Management.Network" Version="20.0.1-preview" />
2121
</ItemGroup>
2222

2323
<ItemGroup>

src/Batch/Batch.Test/ScenarioTests/BatchController.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ public void RunPsTestWorkflow(
8686
{
8787
{"Microsoft.Resources", null},
8888
{"Microsoft.Features", null},
89+
{"Microsoft.Network", null},
8990
{"Microsoft.Authorization", null}
9091
};
9192
var providersToIgnore = new Dictionary<string, string>

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="7.3.0-preview" />
15-
<PackageReference Include="Microsoft.Azure.Management.Network" Version="19.21.1-preview" />
15+
<PackageReference Include="Microsoft.Azure.Management.Network" Version="20.0.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="36.1.0" />
1616
<PackageReference Include="Microsoft.Azure.Management.KeyVault" Version="3.0.0" />
17-
<PackageReference Include="Microsoft.Azure.Management.Network" Version="19.21.1-preview" />
17+
<PackageReference Include="Microsoft.Azure.Management.Network" Version="20.0.1-preview" />
1818
</ItemGroup>
1919

2020
<ItemGroup>

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@
55
<Import Project="$(MSBuildThisFileDirectory)..\..\Az.Test.props" />
66
<ItemGroup>
77
<PackageReference Include="Microsoft.Azure.Management.CosmosDB" Version="1.2.0" />
8-
<PackageReference Include="Microsoft.Azure.Management.Network" Version="19.21.1-preview" />
8+
<PackageReference Include="Microsoft.Azure.Management.Network" Version="20.0.1-preview" />
99
</ItemGroup>
1010
</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="19.21.1-preview" />
15+
<PackageReference Include="Microsoft.Azure.Management.Network" Version="20.0.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.21.1-preview" />
15+
<PackageReference Include="Microsoft.Azure.Management.Network" Version="20.0.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="3.0.0" />
17-
<PackageReference Include="Microsoft.Azure.Management.Network" Version="19.21.1-preview" />
17+
<PackageReference Include="Microsoft.Azure.Management.Network" Version="20.0.1-preview" />
1818
</ItemGroup>
1919

2020
<ItemGroup>

src/Monitor/Monitor.Test/Monitor.Test.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
<ItemGroup>
1414
<PackageReference Include="Microsoft.Azure.Management.Monitor" Version="0.25.1-preview" />
1515
<PackageReference Include="Microsoft.Azure.Management.ApplicationInsights" Version="0.3.0-preview" />
16-
<PackageReference Include="Microsoft.Azure.Management.Network" Version="19.21.1-preview" />
16+
<PackageReference Include="Microsoft.Azure.Management.Network" Version="20.0.1-preview" />
1717
<PackageReference Include="Microsoft.Azure.Management.OperationalInsights" Version="0.21.0-preview" />
1818
</ItemGroup>
1919

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.4.0" />
15-
<PackageReference Include="Microsoft.Azure.Management.Network" Version="19.21.1-preview" />
15+
<PackageReference Include="Microsoft.Azure.Management.Network" Version="20.0.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.21.1-preview" />
17+
<PackageReference Include="Microsoft.Azure.Management.Network" Version="20.0.1-preview" />
1818
<PackageReference Include="Microsoft.Azure.Insights" Version="0.16.0-preview" />
1919
<PackageReference Include="Microsoft.Azure.Management.Compute" Version="36.1.0" />
2020
<PackageReference Include="Microsoft.Azure.Management.ContainerInstance" Version="2.0.0" />

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,5 +137,13 @@ public void TestApplicationGatewayWithListenerHostNames()
137137
{
138138
TestRunner.RunTestScript(string.Format("Test-ApplicationGatewayWithListenerHostNames -baseDir '{0}'", AppDomain.CurrentDomain.BaseDirectory));
139139
}
140+
141+
[Fact]
142+
[Trait(Category.AcceptanceType, Category.CheckIn)]
143+
[Trait(Category.Owner, NrpTeamAlias.nvadev_subset1)]
144+
public void TestApplicationGatewayWithPrivateLinkConfiguration()
145+
{
146+
TestRunner.RunTestScript(string.Format("Test-ApplicationGatewayWithPrivateLinkConfiguration -baseDir '{0}'", AppDomain.CurrentDomain.BaseDirectory));
147+
}
140148
}
141149
}

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

Lines changed: 146 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2800,3 +2800,149 @@ function Test-ApplicationGatewayWithListenerHostNames
28002800
Clean-ResourceGroup $rgname
28012801
}
28022802
}
2803+
2804+
function Test-ApplicationGatewayWithPrivateLinkConfiguration
2805+
{
2806+
param
2807+
(
2808+
$basedir = "./"
2809+
)
2810+
2811+
# Setup
2812+
$location = Get-ProviderLocation "Microsoft.Network/applicationGateways" "westus2"
2813+
2814+
$rgname = Get-ResourceGroupName
2815+
$appgwName = Get-ResourceName
2816+
$vnetName = Get-ResourceName
2817+
$gwSubnetName = Get-ResourceName
2818+
$plsSubnetName = Get-ResourceName
2819+
$publicIpName = Get-ResourceName
2820+
$gipconfigname = Get-ResourceName
2821+
2822+
$frontendPort01Name = Get-ResourceName
2823+
$fipconfigName = Get-ResourceName
2824+
$listener01Name = Get-ResourceName
2825+
2826+
$poolName = Get-ResourceName
2827+
$trustedRootCertName = Get-ResourceName
2828+
$poolSetting01Name = Get-ResourceName
2829+
2830+
$rule01Name = Get-ResourceName
2831+
2832+
$probeHttpName = Get-ResourceName
2833+
2834+
$privateLinkIpConfigName1 = Get-ResourceName
2835+
$privateLinkIpConfigName2 = Get-ResourceName
2836+
$privateLinkIpConfigName3 = Get-ResourceName
2837+
2838+
$privateLinkConfigName = Get-ResourceName
2839+
$privateLinkConfigName2 = Get-ResourceName
2840+
2841+
try
2842+
{
2843+
# Create the resource group
2844+
$resourceGroup = New-AzResourceGroup -Name $rgname -Location $location -Tags @{ testtag = "APPGw tag"}
2845+
# Create the Virtual Network
2846+
$gwSubnet = New-AzVirtualNetworkSubnetConfig -Name $gwSubnetName -AddressPrefix 10.0.0.0/24 -PrivateLinkServiceNetworkPoliciesFlag "Disabled"
2847+
$plsSubnet = New-AzVirtualNetworkSubnetConfig -Name $plsSubnetName -AddressPrefix 10.0.1.0/24 -PrivateLinkServiceNetworkPoliciesFlag "Disabled"
2848+
$vnet = New-AzVirtualNetwork -Name $vnetName -ResourceGroupName $rgname -Location $location -AddressPrefix 10.0.0.0/16 -Subnet $gwSubnet, $plsSubnet
2849+
$vnet = Get-AzVirtualNetwork -Name $vnetName -ResourceGroupName $rgname
2850+
$gwSubnet = Get-AzVirtualNetworkSubnetConfig -Name $gwSubnetName -VirtualNetwork $vnet
2851+
$plsSubnet = Get-AzVirtualNetworkSubnetConfig -Name $plsSubnetName -VirtualNetwork $vnet
2852+
2853+
# Create public ip
2854+
$publicip = New-AzPublicIpAddress -ResourceGroupName $rgname -name $publicIpName -location $location -AllocationMethod Static -sku Standard
2855+
2856+
# Create ip configuration
2857+
$gipconfig = New-AzApplicationGatewayIPConfiguration -Name $gipconfigname -Subnet $gwSubnet
2858+
2859+
# private link configuration
2860+
$privateLinkIpConfiguration1 = New-AzApplicationGatewayPrivateLinkIpConfiguration -Name $privateLinkIpConfigName1 -Subnet $plsSubnet -Primary
2861+
$privateLinkIpConfiguration2 = New-AzApplicationGatewayPrivateLinkIpConfiguration -Name $privateLinkIpConfigName2 -Subnet $plsSubnet
2862+
$privateLinkConfiguration = New-AzApplicationGatewayPrivateLinkConfiguration -Name $privateLinkConfigName -IpConfiguration $privateLinkIpConfiguration1, $privateLinkIpConfiguration2
2863+
2864+
$fipconfig = New-AzApplicationGatewayFrontendIPConfig -Name $fipconfigName -PublicIPAddress $publicip -PrivateLinkConfiguration $privateLinkConfiguration
2865+
$fp01 = New-AzApplicationGatewayFrontendPort -Name $frontendPort01Name  -Port 80
2866+
$listener01 = New-AzApplicationGatewayHttpListener -Name $listener01Name -Protocol Http -FrontendIPConfiguration $fipconfig -FrontendPort $fp01
2867+
2868+
# backend part
2869+
# trusted root cert part
2870+
$certFilePath = $basedir + "/ScenarioTests/Data/ApplicationGatewayAuthCert.cer"
2871+
$trustedRoot01 = New-AzApplicationGatewayTrustedRootCertificate -Name $trustedRootCertName -CertificateFile $certFilePath
2872+
$pool = New-AzApplicationGatewayBackendAddressPool -Name $poolName -BackendIPAddresses www.microsoft.com, www.bing.com
2873+
$probeHttp = New-AzApplicationGatewayProbeConfig -Name $probeHttpName -Protocol Https -HostName "probe.com" -Path "/path/path.htm" -Interval 89 -Timeout 88 -UnhealthyThreshold 8 -port 1234
2874+
$poolSetting01 = New-AzApplicationGatewayBackendHttpSetting -Name $poolSetting01Name -Port 443 -Protocol Https -Probe $probeHttp -CookieBasedAffinity Enabled -PickHostNameFromBackendAddress -TrustedRootCertificate $trustedRoot01
2875+
2876+
#rule
2877+
$rule01 = New-AzApplicationGatewayRequestRoutingRule -Name $rule01Name -RuleType basic -BackendHttpSettings $poolSetting01 -HttpListener $listener01 -BackendAddressPool $pool
2878+
2879+
# sku
2880+
$sku = New-AzApplicationGatewaySku -Name Standard_v2 -Tier Standard_v2
2881+
2882+
# autoscale configuration
2883+
$autoscaleConfig = New-AzApplicationGatewayAutoscaleConfiguration -MinCapacity 3
2884+
2885+
# Create Application Gateway
2886+
$appgw = New-AzApplicationGateway -Name $appgwName -ResourceGroupName $rgname -Zone 1,2 -Location $location -Probes $probeHttp -BackendAddressPools $pool -BackendHttpSettingsCollection $poolSetting01 -FrontendIpConfigurations $fipconfig -GatewayIpConfigurations $gipconfig -FrontendPorts $fp01 -HttpListeners $listener01 -RequestRoutingRules $rule01 -Sku $sku -TrustedRootCertificate $trustedRoot01 -AutoscaleConfiguration $autoscaleConfig -PrivateLinkConfiguration $privateLinkConfiguration
2887+
2888+
# Get Application Gateway
2889+
$getgw = Get-AzApplicationGateway -Name $appgwName -ResourceGroupName $rgname
2890+
2891+
# Operational State
2892+
Assert-AreEqual "Running" $getgw.OperationalState
2893+
2894+
# Verify PrivateLink Configuration
2895+
Assert-NotNull $getgw.PrivateLinkConfigurations
2896+
Assert-AreEqual 1 $getgw.PrivateLinkConfigurations.Count
2897+
$getPrivateLinkConfig = Get-AzApplicationGatewayPrivateLinkConfiguration -Name $privateLinkConfigName -ApplicationGateway $getgw
2898+
Assert-NotNull $getPrivateLinkConfig
2899+
Assert-AreEqual $getPrivateLinkConfig.IpConfigurations.Count 2
2900+
2901+
# Verify Frontend Ip has PrivateLink Configuration
2902+
$getFipConfig = Get-AzApplicationGatewayFrontendIPConfig -ApplicationGateway $getgw -Name $fipconfigName
2903+
Assert-NotNull $getFipconfig
2904+
Assert-NotNull $getFipconfig.PrivateLinkConfiguration
2905+
Assert-AreEqual $getPrivateLinkConfig.Id $getFipconfig.PrivateLinkConfiguration.Id
2906+
2907+
# check autoscale configuration
2908+
$autoscaleConfig01 = Get-AzApplicationGatewayAutoscaleConfiguration -ApplicationGateway $getgw
2909+
Assert-NotNull $autoscaleConfig01
2910+
Assert-AreEqual $autoscaleConfig01.MinCapacity 3
2911+
2912+
# Set AppGw
2913+
$getgw01 = Set-AzApplicationGateway -ApplicationGateway $getgw
2914+
2915+
# Cannot add same PrivateLinkConfiguration
2916+
Assert-ThrowsLike { Add-AzApplicationGatewayPrivateLinkConfiguration -ApplicationGateway $getgw01 -Name $privateLinkConfigName -IpConfiguration $privateLinkIpConfiguration1 } "*already exists*"
2917+
2918+
# add another private link configuration and change the ip configuration
2919+
$getgw01 = Add-AzApplicationGatewayPrivateLinkConfiguration -ApplicationGateway $getgw01 -Name $privateLinkConfigName2 -IpConfiguration $privateLinkIpConfiguration1
2920+
$privateLinkIpConfiguration3 = New-AzApplicationGatewayPrivateLinkIpConfiguration -Name $privateLinkIpConfigName3 -Subnet $plsSubnet -Primary
2921+
$getgw01 = Set-AzApplicationGatewayPrivateLinkConfiguration -ApplicationGateway $getgw01 -Name $privateLinkConfigName2 -IpConfiguration $privateLinkIpConfiguration3
2922+
$getPrivateLinkConfig = Get-AzApplicationGatewayPrivateLinkConfiguration -Name $privateLinkConfigName2 -ApplicationGateway $getgw01
2923+
Assert-NotNull $getPrivateLinkConfig
2924+
Assert-AreEqual $getPrivateLinkConfig.IpConfigurations.Count 1
2925+
Assert-AreEqual $getPrivateLinkConfig.IpConfigurations.Name $privateLinkIpConfigName3
2926+
2927+
# add / remove privateLinkConfiguration
2928+
$getgw = Set-AzApplicationGateway -ApplicationGateway $getgw01
2929+
$privateLinkConfigurations = Get-AzApplicationGatewayPrivateLinkConfiguration -ApplicationGateway $getgw
2930+
Assert-NotNull $privateLinkConfigurations
2931+
Assert-AreEqual $privateLinkConfigurations.Count 2
2932+
2933+
$getgw01 = Remove-AzApplicationGatewayPrivateLinkConfiguration -ApplicationGateway $getgw01 -Name $privateLinkConfigName2
2934+
$getgw = Set-AzApplicationGateway -ApplicationGateway $getgw01
2935+
2936+
$privateLinkConfigurations = Get-AzApplicationGatewayPrivateLinkConfiguration -ApplicationGateway $getgw
2937+
Assert-NotNull $privateLinkConfigurations
2938+
Assert-AreEqual $privateLinkConfigurations.Count 1
2939+
2940+
# Delete Application Gateway
2941+
Remove-AzApplicationGateway -Name $appgwName -ResourceGroupName $rgname -Force
2942+
}
2943+
finally
2944+
{
2945+
# Cleanup
2946+
Clean-ResourceGroup $rgname
2947+
}
2948+
}

src/Network/Network.Test/ScenarioTests/AzureFirewallPolicyTests.cs

Lines changed: 33 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,44 @@ public AzureFirewallPolicyTests(ITestOutputHelper output)
2626
{
2727
}
2828

29-
[Fact(Skip = "Fails with Internal Server Error")]
29+
[Fact]
3030
[Trait(Category.AcceptanceType, Category.CheckIn)]
3131
[Trait(Category.Owner, NrpTeamAlias.azurefirewall)]
3232
public void TestAzureFirewallPolicyCRUD()
3333
{
3434
TestRunner.RunTestScript("Test-AzureFirewallPolicyCRUD");
3535
}
36+
37+
[Fact]
38+
[Trait(Category.AcceptanceType, Category.CheckIn)]
39+
[Trait(Category.Owner, NrpTeamAlias.azurefirewall)]
40+
public void TestAzureFirewallPolicyWithThreatIntelWhitelistCRUD()
41+
{
42+
TestRunner.RunTestScript("Test-AzureFirewallPolicyWithThreatIntelWhitelistCRUD");
43+
}
44+
45+
[Fact]
46+
[Trait(Category.AcceptanceType, Category.CheckIn)]
47+
[Trait(Category.Owner, NrpTeamAlias.azurefirewall)]
48+
public void TestAzureFirewallPolicyWithDNSSettings()
49+
{
50+
TestRunner.RunTestScript("Test-AzureFirewallPolicyWithDNSSettings");
51+
}
52+
53+
[Fact]
54+
[Trait(Category.AcceptanceType, Category.CheckIn)]
55+
[Trait(Category.Owner, NrpTeamAlias.azurefirewall)]
56+
public void TestAzureFirewallPolicyCRUDWithNetworkRuleDestinationFQDNs()
57+
{
58+
TestRunner.RunTestScript("Test-AzureFirewallPolicyCRUDWithNetworkRuleDestinationFQDNs");
59+
}
60+
61+
[Fact]
62+
[Trait(Category.AcceptanceType, Category.CheckIn)]
63+
[Trait(Category.Owner, NrpTeamAlias.azurefirewall)]
64+
public void TestAzureFirewallPolicyWithIpGroups()
65+
{
66+
TestRunner.RunTestScript("Test-AzureFirewallPolicyWithIpGroups");
67+
}
3668
}
3769
}

0 commit comments

Comments
 (0)