Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
18 commits
Select commit Hold shift + click to select a range
7ff1fb7
1) update new-aznetworkvirtualappliance cmdlet to support nvainvnet 2…
sbhosalemsft Oct 28, 2025
e11bf73
add create and get support for nva in vnet
sbhosalemsft Oct 29, 2025
170dda7
update changelog
sbhosalemsft Oct 29, 2025
a65b9e3
update help files
sbhosalemsft Oct 30, 2025
59e3c20
add exmaple and description in the readme files
sbhosalemsft Oct 31, 2025
61d8147
Update src/Network/Network/ChangeLog.md
sbhosalemsft Oct 31, 2025
8bfead6
Update src/Network/Network/NetworkVirtualAppliance/NewNetworkVirtualA…
sbhosalemsft Oct 31, 2025
8bd5767
Update src/Network/Network/NetworkVirtualAppliance/NVAInVnet/NewNvaIn…
sbhosalemsft Oct 31, 2025
aca17d7
Update src/Network/Network/NetworkVirtualAppliance/NVAInVnet/NewNvaIn…
sbhosalemsft Oct 31, 2025
aefb71e
Update src/Network/Network/Models/PSNetworkVirtualApplianceInterfaceC…
sbhosalemsft Oct 31, 2025
09f8812
Update src/Network/Network/Common/NetworkResourceManagerProfile.cs
sbhosalemsft Oct 31, 2025
271265f
Update src/Network/Network/Common/NetworkResourceManagerProfile.cs
sbhosalemsft Oct 31, 2025
16eee10
Update src/Network/Network/Common/NetworkResourceManagerProfile.cs
sbhosalemsft Oct 31, 2025
b3be80a
Update src/Network/Network/Common/NetworkResourceManagerProfile.cs
sbhosalemsft Oct 31, 2025
2030de1
Update src/Network/Network/Models/PSNetworkVirtualAppliance.cs
sbhosalemsft Oct 31, 2025
0e69d97
Update src/Network/Network/Common/NetworkResourceManagerProfile.cs
sbhosalemsft Oct 31, 2025
e64dbca
Update src/Network/Network/Common/NetworkResourceManagerProfile.cs
sbhosalemsft Oct 31, 2025
fe59e50
add nvainvnet scenriotests
sbhosalemsft Nov 3, 2025
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 @@ -48,5 +48,13 @@ public void TestVirtualApplianceSiteCRUD()
{
TestRunner.RunTestScript("Test-VirtualApplianceSiteCRUD");
}
}

[Fact]
[Trait(Category.AcceptanceType, Category.CheckIn)]
[Trait(Category.Owner, NrpTeamAlias.nvadev)]
public void TestNVAInVNetCRUD()
{
TestRunner.RunTestScript("Test-NVAInVnetCRUD");
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -151,4 +151,60 @@ function Test-VirtualApplianceSiteCRUD
}
}

<#
.SYNOPSIS
Test creating new NVA in VNet
#>
function Test-NVAInVnetCRUD
{
$rgname = Get-ResourceGroupName
$location = "eastus2"
$nvaname = Get-ResourceName
$resourceTypeParent = "Microsoft.Network/networkVirtualAppliance"
$vendor = "barracuda sdwan release"
$scaleunit = 2
$version = 'latest'
$asn = 1270
$vnetName = "MyVNet"
$vnetAddressPrefix = "10.1.0.0/16"
$publicSubnetName = "publicSubnet"
$publicSubnetPrefix = "10.1.1.0/24"
$privateSubnetName = "privateSubnet"
$privateSubnetPrefix = "10.1.2.0/24"

try{
$resourceGroup = New-AzResourceGroup -Name $rgname -Location $location
$sku = New-AzVirtualApplianceSkuProperty -VendorName $vendor -BundledScaleUnit $scaleunit -MarketPlaceVersion $version
Assert-NotNull $sku

# Create the subnets
$publicSubnet = New-AzVirtualNetworkSubnetConfig -Name $publicSubnetName -AddressPrefix $publicSubnetPrefix
$privateSubnet = New-AzVirtualNetworkSubnetConfig -Name $privateSubnetName -AddressPrefix $privateSubnetPrefix
New-AzVirtualNetwork -Name $vnetName -ResourceGroupName $rgname -Location $location -AddressPrefix $vnetAddressPrefix -Subnet $publicSubnet, $privateSubnet

$vnet = Get-AzVirtualNetwork -Name $vnetName -ResourceGroupName $rgname
# Get Subnet Resource IDs
$publicSubnetId = ($vnet.Subnets | Where-Object { $_.Name -eq $publicSubnetName }).Id
$privateSubnetId = ($vnet.Subnets | Where-Object { $_.Name -eq $privateSubnetName }).Id
Assert-NotNull $publicSubnetId
Assert-NotNull $privateSubnetId

$privateNicConfig = New-AzNvaInterfaceConfiguration -NicType "PrivateNic" -Name "privateInterface" -SubnetId $privateSubnetId
$publicNicConfig = New-AzNvaInterfaceConfiguration -NicType "PublicNic" -Name "publicInterface" -SubnetId $publicSubnetId
$nvaNicConfig = New-AzNvaInterfaceConfigurations -NvaInterfaceConfigs $privateNicConfig,$publicNicConfig

$nva = New-AzNetworkVirtualAppliance -ResourceGroupName $rgname -Name $nvaname -Location $location -VirtualApplianceAsn $asn -NvaInterfaceConfigurations $nvaNicConfig -Sku $sku -CloudInitConfiguration "echo hi"
$getnva = Get-AzNetworkVirtualAppliance -ResourceGroupName $rgname -Name $nvaname
Assert-NotNull $getnva
Assert-NotNull $getnva.NvaInterfaceConfigurations

Start-Sleep -Seconds 600
Remove-AzNetworkVirtualAppliance -ResourceGroupName $rgname -Name $nvaname -Force
}
finally{
# Clean up.
Clean-ResourceGroup $rgname
}
}


Loading
Loading