@@ -5,7 +5,7 @@ services: network-watcher
5
5
documentationcenter : na
6
6
author : KumudD
7
7
manager : twooley
8
- editor :
8
+ editor :
9
9
10
10
ms.service : network-watcher
11
11
ms.devlang : na
@@ -46,7 +46,7 @@ armclient login
46
46
47
47
## Retrieve a virtual machine
48
48
49
- Run the following script to return a virtual machine. This information is needed for running connectivity.
49
+ Run the following script to return a virtual machine. This information is needed for running connectivity.
50
50
51
51
The following code needs values for the following variables:
52
52
@@ -86,7 +86,7 @@ $subscriptionId = "00000000-0000-0000-0000-000000000000"
86
86
$resourceGroupName = "NetworkWatcherRG"
87
87
$networkWatcherName = "NetworkWatcher_westcentralus"
88
88
$sourceResourceId = "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ContosoRG/providers/Microsoft.Compute/virtualMachines/MultiTierApp0"
89
- $destinationAddress = "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ContosoRG/providers/Microsoft.Compute/virtualMachines/Database0"
89
+ $destinationResourceId = "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ContosoRG/providers/Microsoft.Compute/virtualMachines/Database0"
90
90
$destinationPort = "0"
91
91
$requestBody = @"
92
92
{
@@ -95,7 +95,7 @@ $requestBody = @"
95
95
'port': 0
96
96
},
97
97
'destination': {
98
- 'resourceId': '${destinationAddress }',
98
+ 'resourceId': '${destinationResourceId }',
99
99
'port': ${destinationPort}
100
100
}
101
101
}
@@ -202,7 +202,7 @@ $subscriptionId = "00000000-0000-0000-0000-000000000000"
202
202
$resourceGroupName = "NetworkWatcherRG"
203
203
$networkWatcherName = "NetworkWatcher_westcentralus"
204
204
$sourceResourceId = "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ContosoRG/providers/Microsoft.Compute/virtualMachines/MultiTierApp0"
205
- $destinationAddress = "13.107.21.200"
205
+ $destinationResourceId = "13.107.21.200"
206
206
$destinationPort = "80"
207
207
$requestBody = @"
208
208
{
@@ -211,7 +211,7 @@ $requestBody = @"
211
211
'port': 0
212
212
},
213
213
'destination': {
214
- 'address': '${destinationAddress }',
214
+ 'address': '${destinationResourceId }',
215
215
'port': ${destinationPort}
216
216
}
217
217
}
@@ -298,7 +298,7 @@ $subscriptionId = "00000000-0000-0000-0000-000000000000"
298
298
$resourceGroupName = "NetworkWatcherRG"
299
299
$networkWatcherName = "NetworkWatcher_westcentralus"
300
300
$sourceResourceId = "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ContosoRG/providers/Microsoft.Compute/virtualMachines/MultiTierApp0"
301
- $destinationAddress = "https://bing.com"
301
+ $destinationResourceId = "https://bing.com"
302
302
$destinationPort = "0"
303
303
$requestBody = @"
304
304
{
@@ -307,7 +307,7 @@ $requestBody = @"
307
307
'port': 0
308
308
},
309
309
'destination': {
310
- 'address': '${destinationAddress }',
310
+ 'address': '${destinationResourceId }',
311
311
'port': ${destinationPort}
312
312
}
313
313
}
@@ -385,7 +385,7 @@ $subscriptionId = "00000000-0000-0000-0000-000000000000"
385
385
$resourceGroupName = "NetworkWatcherRG"
386
386
$networkWatcherName = "NetworkWatcher_westcentralus"
387
387
$sourceResourceId = "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ContosoRG/providers/Microsoft.Compute/virtualMachines/MultiTierApp0"
388
- $destinationAddress = "https://build2017nwdiag360.blob.core.windows.net/"
388
+ $destinationResourceId = "https://build2017nwdiag360.blob.core.windows.net/"
389
389
$destinationPort = "0"
390
390
$requestBody = @"
391
391
{
@@ -394,7 +394,7 @@ $requestBody = @"
394
394
'port': 0
395
395
},
396
396
'destination': {
397
- 'address': '${destinationAddress }',
397
+ 'address': '${destinationResourceId }',
398
398
'port': ${destinationPort}
399
399
}
400
400
}
@@ -466,17 +466,3 @@ The following example is the response from running the previous API call. As the
466
466
Learn how to automate packet captures with Virtual machine alerts by viewing [ Create an alert triggered packet capture] ( network-watcher-alert-triggered-packet-capture.md ) .
467
467
468
468
Find if certain traffic is allowed in or out of your VM by visiting [ Check IP flow verify] ( diagnose-vm-network-traffic-filtering-problem.md ) .
469
-
470
-
471
-
472
-
473
-
474
-
475
-
476
-
477
-
478
-
479
-
480
-
481
-
482
-
0 commit comments