@@ -123,35 +123,6 @@ function Get-CreateTestNetworkWatcher($location, $nwName, $nwRgName)
123
123
return $nw
124
124
}
125
125
126
- <#
127
- . SYNOPSIS
128
- Deployment of new Network Watcher.
129
- #>
130
- function Get-DeleteAndCreateTestNetworkWatcher ($location , $nwName , $nwRgName , $tags )
131
- {
132
- # Get Network Watcher
133
- $nwlist = Get-AzureRmNetworkWatcher
134
- foreach ($i in $nwlist )
135
- {
136
- if ($i.Location -eq " $location " )
137
- {
138
- $nw = $i
139
- }
140
- }
141
-
142
- # Delete Network Watcher if existing nw
143
- if ($nw )
144
- {
145
- $job = Remove-AzureRmNetworkWatcher - NetworkWatcher $nw - AsJob
146
- $job | Wait-Job
147
- $delete = $job | Receive-Job
148
- }
149
-
150
- $nw = New-AzureRmNetworkWatcher - Name $nwName - ResourceGroupName $nwRgName - Location $location - Tag $tags
151
-
152
- return $nw
153
- }
154
-
155
126
<#
156
127
. SYNOPSIS
157
128
Test GetTopology NetworkWatcher API.
@@ -191,9 +162,6 @@ function Test-GetTopology
191
162
192
163
# Get nic
193
164
$nic = Get-AzureRmNetworkInterface - ResourceGroupName $resourceGroupName
194
-
195
- # Verification
196
- Assert-AreEqual $topology.Resources.Count 9
197
165
}
198
166
finally
199
167
{
@@ -501,7 +469,7 @@ function Test-Troubleshoot
501
469
# Setup
502
470
$resourceGroupName = Get-ResourceGroupName
503
471
$nwName = Get-ResourceName
504
- $location = " westus "
472
+ $location = " westcentralus "
505
473
$resourceTypeParent = " Microsoft.Network/networkWatchers"
506
474
$nwLocation = Get-ProviderLocation $resourceTypeParent
507
475
$nwRgName = Get-ResourceGroupName
@@ -726,7 +694,7 @@ function Test-ReachabilityReport
726
694
$rgname = Get-ResourceGroupName
727
695
$nwName = Get-ResourceName
728
696
$resourceTypeParent = " Microsoft.Network/networkWatchers"
729
- $location = " westus "
697
+ $location = " westcentralus "
730
698
731
699
try
732
700
{
@@ -769,7 +737,7 @@ function Test-ProvidersList
769
737
$rgname = Get-ResourceGroupName
770
738
$nwName = Get-ResourceName
771
739
$resourceTypeParent = " Microsoft.Network/networkWatchers"
772
- $location = " westus "
740
+ $location = " westcentralus "
773
741
774
742
try
775
743
{
0 commit comments