Skip to content

Commit cb4527a

Browse files
committed
Added Get-PilotLocation function to networkWatcher tests
1 parent 3a5dcb8 commit cb4527a

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/ResourceManager/Network/Commands.Network.Test/ScenarioTests/NetworkWatcherAPITests.ps1

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,11 @@ function Get-CanaryLocation
128128
Get-Location "Microsoft.Network" "networkWatchers" "centraluseuap";
129129
}
130130

131+
function Get-PilotLocation
132+
{
133+
Get-Location "Microsoft.Network" "networkWatchers" "westcentralus";
134+
}
135+
131136
<#
132137
.SYNOPSIS
133138
Test GetTopology NetworkWatcher API.
@@ -474,7 +479,7 @@ function Test-Troubleshoot
474479
# Setup
475480
$resourceGroupName = Get-ResourceGroupName
476481
$nwName = Get-ResourceName
477-
$location = "westcentralus"
482+
$location = Get-PilotLocation
478483
$resourceTypeParent = "Microsoft.Network/networkWatchers"
479484
$nwLocation = Get-ProviderLocation $resourceTypeParent
480485
$nwRgName = Get-ResourceGroupName

0 commit comments

Comments
 (0)