Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
7888a38
Updates project with generated nuget package from july release .net s…
Kawilki-M Sep 11, 2020
afb3444
Updated Network changelog.md
Kawilki-M Sep 11, 2020
a5f32d8
Added tests, new cross region loadbalancer backend address config com…
Kawilki-M Oct 2, 2020
58370ef
updated changelog
Kawilki-M Oct 2, 2020
3b34e04
removed frontend paramter from original backendaddress config command
Kawilki-M Oct 2, 2020
e3fbcbf
removed new cross region loadbalancer backend address config command,…
Kawilki-M Oct 2, 2020
e650583
Added ipprefix(id) parameters to set and add commands for loadbalance…
Kawilki-M Oct 6, 2020
3ac6edf
addressing comments
Kawilki-M Oct 6, 2020
d715d96
removing white spaces
Kawilki-M Oct 6, 2020
b2d329f
reverted powershell to pwsh
Kawilki-M Oct 6, 2020
967bb90
updated backend address model with new property
Kawilki-M Oct 6, 2020
649f7ad
ran automation for help files
Kawilki-M Oct 7, 2020
4c8a817
Merge branch 'master' into AddingNewGlobalLoadBalancingProperties
isra-fel Oct 10, 2020
bdc14de
fixed changelog syntax
Kawilki-M Oct 13, 2020
4e408d3
add pass by value option to new, set, and add commands for frontend i…
Kawilki-M Oct 13, 2020
c780750
Updated ApiVersion from 2020-05-01 to 2020-07-01 (#13357)
v-shhatt Oct 29, 2020
c803667
Added officially published SDK (#13409)
MikhailTryakhov Nov 4, 2020
e594d29
updating nuget package
Kawilki-M Nov 4, 2020
0794948
updating nuget package
Kawilki-M Nov 4, 2020
84529ca
Merge branch 'network-july' into AddingNewGlobalLoadBalancingProperties
Kawilki-M Nov 4, 2020
e609104
updating CreateSubresourcesOnEmptyLoadBalancer UT to comply with chan…
Kawilki-M Nov 5, 2020
7b59ad7
Add TranslatedFqdn option for Azure Firewall Policy NAT Rule (#13238)
tejasshah7 Nov 5, 2020
f8a4254
deleted local nugets
Kawilki-M Nov 5, 2020
94115ab
removed 20.2.0 nuget package and modules.zip
Kawilki-M Nov 6, 2020
30cf190
adding examples for new parameters
Kawilki-M Nov 6, 2020
a20170d
update azvirtualrouter (#13455)
litchiyangMSFT Nov 7, 2020
b2f46ef
Merge branch 'network-july' into AddingNewGlobalLoadBalancingProperties
Kawilki-M Nov 9, 2020
07b6c61
removing space
Kawilki-M Nov 9, 2020
f6e0348
Add Get-AzVirtualRouterPeerAdvertisedRoute and Get-AzVirtualRouterPee…
litchiyangMSFT Nov 9, 2020
107823a
Merge branch 'network-july' into AddingNewGlobalLoadBalancingProperties
Kawilki-M Nov 9, 2020
6795b8e
Merge branch 'release-2020-11-17' into AddingNewGlobalLoadBalancingPr…
Kawilki-M Nov 12, 2020
80ede53
Adding allocation method fix to Test-PublicIpAddressCRUD-StandardSkuG…
Kawilki-M Nov 12, 2020
0f50db3
copied recorded sessions for new tests into project session records f…
Kawilki-M Nov 12, 2020
2f47c18
updating TestSetLoadBalancerCRUDPublicBasicSku session record
Kawilki-M Nov 12, 2020
329b124
updated session record for TestLoadBalancerBackendPoolCreate
Kawilki-M Nov 12, 2020
3119b6d
Updated session record for TestGlobalLoadBalancerBackendPoolCreate
Kawilki-M Nov 12, 2020
a82e6f5
Merge pull request #13493 from Kawilki-M/AddingNewGlobalLoadBalancing…
VeryEarly Nov 13, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,14 @@ public void TestLoadBalancerBackendPoolCreate()
TestRunner.RunTestScript("Test-LoadBalancerBackendPoolCreate");
}

[Fact]
[Trait(Category.AcceptanceType, Category.CheckIn)]
[Trait(Category.Owner, NrpTeamAlias.slbdev)]
public void TestGlobalLoadBalancerBackendPoolCreate()
{
TestRunner.RunTestScript("Test-GlobalLoadBalancerBackendPoolCreate");
}

[Fact]
[Trait(Category.AcceptanceType, Category.CheckIn)]
[Trait(Category.Owner, NrpTeamAlias.slbdev)]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,6 @@ function Test-LoadBalancerBackendPoolCRUD
}
}


<#
.SYNOPSIS
Tests
Expand All @@ -97,7 +96,6 @@ function Test-LoadBalancerBackendPoolCreate
$vnetName = Get-ResourceName
$subnetName = Get-ResourceName
$publicIpName = Get-ResourceName
$domainNameLabel = Get-ResourceName
$lbName = Get-ResourceName
$frontendName = Get-ResourceName
$backendAddressPoolName = Get-ResourceName
Expand All @@ -120,7 +118,7 @@ function Test-LoadBalancerBackendPoolCreate

try
{
# Create the resource group
# Create the resource group
$resourceGroup = New-AzResourceGroup -Name $rgname -Location $rglocation -Tags @{ testtag = "testval"}

# Create the Virtual Network
Expand All @@ -135,7 +133,7 @@ function Test-LoadBalancerBackendPoolCreate
$ip3 = New-AzLoadBalancerBackendAddressConfig -IpAddress $testIpAddress3 -Name $backendAddressConfigName3 -VirtualNetworkId $vnet.Id

$ips = @($ip1, $ip2)

## create by passing loadbalancer without Ips
$create1 = $lb | New-AzLoadBalancerBackendAddressPool -Name $backendPool1

Expand Down Expand Up @@ -164,6 +162,74 @@ function Test-LoadBalancerBackendPoolCreate
}
}

<#
.SYNOPSIS
Tests
#>
function Test-GlobalLoadBalancerBackendPoolCreate
{

# Setup
$rgname = Get-ResourceGroupName
$rglocation = Get-ProviderLocation ResourceManagement

$vnetName = Get-ResourceName
$location = Get-ProviderLocation "Microsoft.Network/loadBalancers"

$publicIpName = Get-ResourceName
$domainNameLabel = Get-ResourceName

$frontendName = Get-ResourceName
$backendAddressPoolName = Get-ResourceName
$probeName = Get-ResourceName
$inboundNatRuleName = Get-ResourceName
$lbruleName = Get-ResourceName
$lbName = Get-ResourceName

$globalrgname = Get-ResourceName
$globalvnet = Get-ResourceName
$globallbname = Get-ResourceName
$globalsubnetname = Get-ResourceName

$globalbackendPool = Get-ResourceName
$globalbackendAddressConfigName = Get-ResourceName

try
{
# Create the regional resource group
$resourceGroup = New-AzResourceGroup -Name $rgname -Location $rglocation -Tags @{ testtag = "testval"}

# Create the publicip
$publicip = New-AzPublicIpAddress -ResourceGroupName $rgname -name $publicIpName -location $location -AllocationMethod Static -DomainNameLabel $domainNameLabel -SKU Standard

# Create regional loadbalancer
$frontend = New-AzLoadBalancerFrontendIpConfig -Name $frontendName -PublicIpAddress $publicip
$backendAddressPool = New-AzLoadBalancerBackendAddressPoolConfig -Name $backendAddressPoolName
$probe = New-AzLoadBalancerProbeConfig -Name $probeName -RequestPath healthcheck.aspx -Protocol http -Port 80 -IntervalInSeconds 15 -ProbeCount 2
$inboundNatRule = New-AzLoadBalancerInboundNatRuleConfig -Name $inboundNatRuleName -FrontendIPConfiguration $frontend -Protocol Tcp -FrontendPort 3389 -BackendPort 3389 -IdleTimeoutInMinutes 15 -EnableFloatingIP
$lbrule = New-AzLoadBalancerRuleConfig -Name $lbruleName -FrontendIPConfiguration $frontend -BackendAddressPool $backendAddressPool -Probe $probe -Protocol Tcp -FrontendPort 80 -BackendPort 80 -IdleTimeoutInMinutes 15 -EnableFloatingIP -LoadDistribution SourceIP
$job = New-AzLoadBalancer -Name $lbName -ResourceGroupName $rgname -Location $location -FrontendIpConfiguration $frontend -BackendAddressPool $backendAddressPool -Probe $probe -InboundNatRule $inboundNatRule -LoadBalancingRule $lbrule -AsJob -SKU Standard
$job | Wait-Job
$actualLb = $job | Receive-Job

# Create the global resource group
$resourceGroup = New-AzResourceGroup -Name $globalrgname -Location $rglocation -Tags @{ testtag = "testval"}

# Create global loadbalancer
$glb = New-AzLoadBalancer -Name $globallbname -ResourceGroupName $globalrgname -Location $location -SKU Standard -Tier Global

$regionalbackendaddress = New-AzLoadBalancerBackendAddressConfig -LoadBalancerFrontendIPConfigurationId $frontend.Id -Name $globalbackendAddressConfigName
$create = $glb | New-AzLoadBalancerBackendAddressPool -Name $globalbackendPool -LoadBalancerBackendAddress $regionalbackendaddress

Assert-NotNull $create
Assert-True { @($create.LoadBalancerBackendAddresses).Count -eq 1}
}
finally {
# Cleanup
Clean-ResourceGroup $rgname
}
}

<#
.SYNOPSIS
Tests Remove-AzLoadBalancerBackendAddressPool
Expand Down
16 changes: 16 additions & 0 deletions src/Network/Network.Test/ScenarioTests/LoadBalancerTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,22 @@ public void TestSetLoadBalancerCRUDPublicStandardSku()
TestRunner.RunTestScript("Test-LoadBalancerCRUD-PublicStandardSku");
}

[Fact]
[Trait(Category.AcceptanceType, Category.CheckIn)]
[Trait(Category.Owner, NrpTeamAlias.slbdev)]
public void TestSetLoadBalancerCRUDPublicStandardSkuIpPrefix()
{
TestRunner.RunTestScript("Test-LoadBalancerCRUD-PublicStandardSkuIpPrefix");
}

[Fact]
[Trait(Category.AcceptanceType, Category.CheckIn)]
[Trait(Category.Owner, NrpTeamAlias.slbdev)]
public void TestSetLoadBalancerCRUDPublicStandardSkuGlobalTier()
{
TestRunner.RunTestScript("Test-LoadBalancerCRUD-PublicStandardSkuGlobalTier");
}

[Fact]
[Trait(Category.AcceptanceType, Category.CheckIn)]
[Trait(Category.Owner, NrpTeamAlias.slbdev)]
Expand Down
Loading