Skip to content

Commit 6113ceb

Browse files
Merge pull request #253164 from AaronMaxwell/aaronmax-migrate-ping-test-update
Updating powershell script
2 parents 0ab69e1 + 1f20ad2 commit 6113ceb

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

articles/azure-monitor/app/availability-test-migration.md

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,17 +32,21 @@ The following steps walk you through the process of creating [standard tests](av
3232
### Steps
3333

3434
1. Connect to your subscription with Azure PowerShell (Connect-AzAccount + Set-AzContext).
35-
2. List all URL ping tests in a resource group:
35+
36+
2. List all URL ping tests in the current subscription:
3637

3738
```azurepowershell
38-
$resourceGroup = "myResourceGroup";
39-
Get-AzApplicationInsightsWebTest -ResourceGroupName $resourceGroup | `
40-
Where-Object { $_.WebTestKind -eq "ping" };
39+
Get-AzApplicationInsightsWebTest | `
40+
Where-Object { $_.WebTestKind -eq "ping" } | `
41+
Format-Table -Property ResourceGroupName,Name,WebTestKind,Enabled;
4142
```
42-
3. Find the URL ping Test you want to migrate and record its name.
43+
44+
3. Find the URL Ping Test you want to migrate and record its resource group and name.
45+
4346
4. The following commands create a standard test with the same logic as the URL ping test:
4447

4548
```azurepowershell
49+
$resourceGroup = "pingTestResourceGroup";
4650
$appInsightsComponent = "componentName";
4751
$pingTestName = "pingTestName";
4852
$newStandardTestName = "newStandardTestName";

0 commit comments

Comments
 (0)