@@ -123,6 +123,11 @@ function Get-CreateTestNetworkWatcher($location, $nwName, $nwRgName)
123
123
return $nw
124
124
}
125
125
126
+ function Get-CanaryLocation
127
+ {
128
+ Get-Location " Microsoft.Network" " networkWatchers" " centraluseuap" ;
129
+ }
130
+
126
131
<#
127
132
. SYNOPSIS
128
133
Test GetTopology NetworkWatcher API.
@@ -180,7 +185,7 @@ function Test-GetSecurityGroupView
180
185
# Setup
181
186
$resourceGroupName = Get-ResourceGroupName
182
187
$nwName = Get-ResourceName
183
- $location = " centraluseuap "
188
+ $location = Get-CanaryLocation
184
189
$resourceTypeParent = " Microsoft.Network/networkWatchers"
185
190
$nwLocation = Get-ProviderLocation $resourceTypeParent
186
191
$nwRgName = Get-ResourceGroupName
@@ -372,7 +377,7 @@ function Test-PacketCapture
372
377
# Setup
373
378
$resourceGroupName = Get-ResourceGroupName
374
379
$nwName = Get-ResourceName
375
- $location = " centraluseuap "
380
+ $location = Get-CanaryLocation
376
381
$resourceTypeParent = " Microsoft.Network/networkWatchers"
377
382
$nwLocation = Get-ProviderLocation $resourceTypeParent
378
383
$nwRgName = Get-ResourceGroupName
@@ -773,7 +778,7 @@ function Test-ConnectionMonitor
773
778
# Setup
774
779
$resourceGroupName = Get-ResourceGroupName
775
780
$nwName = Get-ResourceName
776
- $location = " centraluseuap "
781
+ $location = Get-CanaryLocation
777
782
$resourceTypeParent = " Microsoft.Network/networkWatchers"
778
783
$nwLocation = Get-ProviderLocation $resourceTypeParent
779
784
$nwRgName = Get-ResourceGroupName
0 commit comments