@@ -153,31 +153,31 @@ $connectionMonitorName = "sampleConnectionMonitor"
153
153
154
154
$ARM = "[https://](https://apac01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fbrazilus.management.azure.com&data=02%7C01%7CManasi.Sant%40microsoft.com%7Cd900da4ed7f24366842108d68022159b%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C636837281231186904&sdata=qHL8zWjkobY9MatRpAVbODwboKSQAqqEFOMnjmfyOnU%3D&reserved=0)management.azure.com"
155
155
156
- $SUB = "subscriptions/\< subscription id 1\> ;"
156
+ $SUB = "subscriptions/< subscription id 1> ;"
157
157
158
- $NW = "resourceGroups/NetworkWatcherRG/providers/Microsoft.Network/networkWatchers/NetworkWatcher\_centraluseuap "
158
+ $NW = "resourceGroups/NetworkWatcherRG/providers/Microsoft.Network/networkWatchers/NetworkWatcher\_<region> "
159
159
160
160
$body =
161
161
162
162
"{
163
163
164
- location: 'eastus ',
164
+ location: '<region> ',
165
165
166
166
properties: {
167
167
168
168
endpoints: [{
169
169
170
170
name: 'workspace',
171
171
172
- resourceId: '/subscriptions/\< subscription id\> /resourcegroups/\< resource group\> /providers/Microsoft.OperationalInsights/workspaces/sampleWorkspace',
172
+ resourceId: '/subscriptions/< subscription id> /resourcegroups/< resource group> /providers/Microsoft.OperationalInsights/workspaces/sampleWorkspace',
173
173
174
174
filter: {
175
175
176
176
items: [{
177
177
178
178
type: 'AgentAddress',
179
179
180
- address: '\< FQDN of your on-premises agent'
180
+ address: '< FQDN of your on-premises agent> '
181
181
182
182
}]
183
183
@@ -189,31 +189,31 @@ address: '\<FQDN of your on-premises agent'
189
189
190
190
name: 'vm1',
191
191
192
- resourceId: '/subscriptions/\< subscription id\> /resourceGroups/\< resource group\> /providers/Microsoft.Compute/virtualMachines/\< vm-name\> '
192
+ resourceId: '/subscriptions/< subscription id> /resourceGroups/< resource group> /providers/Microsoft.Compute/virtualMachines/< vm-name> '
193
193
194
194
},
195
195
196
196
{
197
197
198
198
name: 'vm2',
199
199
200
- resourceId: '/subscriptions/\< subscription id\> /resourceGroups/\< resource group\> /providers/Microsoft.Compute/virtualMachines/\< vm-name\> '
200
+ resourceId: '/subscriptions/< subscription id> /resourceGroups/< resource group> /providers/Microsoft.Compute/virtualMachines/< vm-name> '
201
201
202
202
},
203
203
204
204
{
205
205
206
206
name: 'azure portal'
207
207
208
- address: '\< URL\> '
208
+ address: '< URL> '
209
209
210
210
},
211
211
212
212
{
213
213
214
214
name: 'ip',
215
215
216
- address: '\<IP\> '
216
+ address: '<IP> '
217
217
218
218
}
219
219
@@ -235,6 +235,8 @@ address: '\<URL\>'
235
235
236
236
name: 'Connectivty from Azure VM 1 to Azure VM 2',
237
237
238
+ // Choose your protocol
239
+
238
240
testConfigurations: ['http', 'https', 'tcpDisabled', 'icmpDisabled'],
239
241
240
242
sources: ['vm1'],
@@ -251,23 +253,23 @@ address: '\<URL\>'
251
253
252
254
name: 'http',
253
255
254
- testFrequencySec: 60 ,
256
+ testFrequencySec: <frequency> ,
255
257
256
258
protocol: 'HTTP',
257
259
258
260
successThreshold: {
259
261
260
- checksFailedPercent: 50 ,
262
+ checksFailedPercent: <threshold for checks failed %> ,
261
263
262
- roundTripTimeMs: 3.4
264
+ roundTripTimeMs: <threshold for RTT>
263
265
264
266
}
265
267
266
268
}, {
267
269
268
270
name: 'https',
269
271
270
- testFrequencySec: 60 ,
272
+ testFrequencySec: <frequency> ,
271
273
272
274
protocol: 'HTTP',
273
275
@@ -279,17 +281,17 @@ address: '\<URL\>'
279
281
280
282
successThreshold: {
281
283
282
- checksFailedPercent: 50 ,
284
+ checksFailedPercent: <choose your checks failed threshold> ,
283
285
284
- roundTripTimeMs: 3.4
286
+ roundTripTimeMs: <choose your RTT threshold>
285
287
286
288
}
287
289
288
290
}, {
289
291
290
292
name: 'tcpEnabled',
291
293
292
- testFrequencySec: 30 ,
294
+ testFrequencySec: <frequency> ,
293
295
294
296
protocol: 'TCP',
295
297
@@ -301,33 +303,33 @@ address: '\<URL\>'
301
303
302
304
successThreshold: {
303
305
304
- checksFailedPercent: 30 ,
306
+ checksFailedPercent: <choose your checks failed threshold> ,
305
307
306
- roundTripTimeMs: 5.2
308
+ roundTripTimeMs: <choose your RTT threshold>
307
309
308
310
}
309
311
310
312
}, {
311
313
312
314
name: 'icmpEnabled',
313
315
314
- testFrequencySec: 90 ,
316
+ testFrequencySec: <frequency> ,
315
317
316
318
protocol: 'ICMP',
317
319
318
320
successThreshold: {
319
321
320
- checksFailedPercent: 50 ,
322
+ checksFailedPercent: <choose your checks failed threshold> ,
321
323
322
- roundTripTimeMs: 3.4
324
+ roundTripTimeMs: <choose your RTT threshold>
323
325
324
326
}
325
327
326
328
}, {
327
329
328
330
name: 'icmpDisabled',
329
331
330
- testFrequencySec: 120 ,
332
+ testFrequencySec: <frequency> ,
331
333
332
334
protocol: 'ICMP',
333
335
@@ -339,17 +341,17 @@ address: '\<URL\>'
339
341
340
342
successThreshold: {
341
343
342
- checksFailedPercent: 50 ,
344
+ checksFailedPercent: <choose your checks failed threshold> ,
343
345
344
- roundTripTimeMs: 3.4
346
+ roundTripTimeMs: <choose your RTT threshold>
345
347
346
348
}
347
349
348
350
}, {
349
351
350
352
name: 'tcpDisabled',
351
353
352
- testFrequencySec: 45 ,
354
+ testFrequencySec: <frequency> ,
353
355
354
356
protocol: 'TCP',
355
357
@@ -363,9 +365,9 @@ address: '\<URL\>'
363
365
364
366
successThreshold: {
365
367
366
- checksFailedPercent: 30 ,
368
+ checksFailedPercent: <choose your checks failed threshold> ,
367
369
368
- roundTripTimeMs: 5.2
370
+ roundTripTimeMs: <choose your RTT threshold>
369
371
370
372
}
371
373
0 commit comments