This commit is contained in:
Jon Ormond 2016-04-05 15:23:21 -07:00
Родитель 7543722d4d
Коммит 34e1ff8ed5
54 изменённых файлов: 20 добавлений и 276 удалений

Просмотреть файл

@ -1,7 +1,5 @@
# Azure Connectivity Toolkit (AzureCT)
# <font color="red">This work is pre-release!<br/>It's close, but still a work in progress!</font>
## Overview
This collection of server side web pages and local PowerShell that will generate, collect, store, and display availability statistics of the network between you and a newly built Windows VM in Azure. It will do more in the future, but currently only provides availability information.

Просмотреть файл

Просмотреть файл

До

Ширина:  |  Высота:  |  Размер: 25 KiB

После

Ширина:  |  Высота:  |  Размер: 25 KiB

Двоичные данные
AzureCT/media/AzureNMT.png Normal file

Двоичный файл не отображается.

После

Ширина:  |  Высота:  |  Размер: 75 KiB

Просмотреть файл

До

Ширина:  |  Высота:  |  Размер: 44 KiB

После

Ширина:  |  Высота:  |  Размер: 44 KiB

Просмотреть файл

До

Ширина:  |  Высота:  |  Размер: 93 KiB

После

Ширина:  |  Высота:  |  Размер: 93 KiB

Просмотреть файл

До

Ширина:  |  Высота:  |  Размер: 60 KiB

После

Ширина:  |  Высота:  |  Размер: 60 KiB

Просмотреть файл

До

Ширина:  |  Высота:  |  Размер: 65 KiB

После

Ширина:  |  Высота:  |  Размер: 65 KiB

Просмотреть файл

До

Ширина:  |  Высота:  |  Размер: 58 KiB

После

Ширина:  |  Высота:  |  Размер: 58 KiB

Просмотреть файл

До

Ширина:  |  Высота:  |  Размер: 19 KiB

После

Ширина:  |  Высота:  |  Размер: 19 KiB

Просмотреть файл

До

Ширина:  |  Высота:  |  Размер: 22 KiB

После

Ширина:  |  Высота:  |  Размер: 22 KiB

Просмотреть файл

До

Ширина:  |  Высота:  |  Размер: 26 KiB

После

Ширина:  |  Высота:  |  Размер: 26 KiB

Просмотреть файл

До

Ширина:  |  Высота:  |  Размер: 40 KiB

После

Ширина:  |  Высота:  |  Размер: 40 KiB

Просмотреть файл

До

Ширина:  |  Высота:  |  Размер: 31 KiB

После

Ширина:  |  Высота:  |  Размер: 31 KiB

Просмотреть файл

До

Ширина:  |  Высота:  |  Размер: 36 KiB

После

Ширина:  |  Высота:  |  Размер: 36 KiB

Просмотреть файл

До

Ширина:  |  Высота:  |  Размер: 48 KiB

После

Ширина:  |  Высота:  |  Размер: 48 KiB

Просмотреть файл

До

Ширина:  |  Высота:  |  Размер: 47 KiB

После

Ширина:  |  Высота:  |  Размер: 47 KiB

Просмотреть файл

До

Ширина:  |  Высота:  |  Размер: 41 KiB

После

Ширина:  |  Высота:  |  Размер: 41 KiB

Просмотреть файл

До

Ширина:  |  Высота:  |  Размер: 45 KiB

После

Ширина:  |  Высота:  |  Размер: 45 KiB

Просмотреть файл

До

Ширина:  |  Высота:  |  Размер: 56 KiB

После

Ширина:  |  Высота:  |  Размер: 56 KiB

Просмотреть файл

До

Ширина:  |  Высота:  |  Размер: 48 KiB

После

Ширина:  |  Высота:  |  Размер: 48 KiB

Просмотреть файл

До

Ширина:  |  Высота:  |  Размер: 102 KiB

После

Ширина:  |  Высота:  |  Размер: 102 KiB

Просмотреть файл

@ -1,274 +0,0 @@
#Test Plan
## Overview
This is an internal document for use by the author to build and test the Azure Hybrid Availability Tool
## Introduction
This test plan will define the initial environment to start testing, deployment steps of the tool, and the tests required to validate the tool.
The testing is currently only testing on an ExpressRoute connected subscription. VPN will be added in a future release.
## References
None
## Test Items
- Azure Subscription
- Azure VNet
- Azure VPN Gateway
- Azure ExpressRoute circuit
- Azure VM Server
- Local Client PC with PowerShell 3.0 or greater installed
## Features to be Tested
- Server installation script, IISBuild.ps1
- All parameters of the WebPing commandlet (including associated web pages index.html and upload.aspx)
- Clear-History.ps1 commandlet (including associated web page ClearHistory.aspx)
- Show-Results.ps1 commandlet
## Features not to be Tested
None
## Tests
### Test to Run
1. Download Files from GitHub
2. Run Server Setup Script
3. Run Server Setup Script with Errors
4. WebPing Duration 5 Seconds
5. WebPing Duration 1 Minute
6. WebPing Timeout 1 Second
7. WebPing Bad IP / Timeout Errors
8. WebPing Bad Test Page / Bad Page Data
9. WebPing Bad IP
10. WebPing all defaults
11. Review Results on Index.html
12. Show Results
13. Show Results with bad remote host
14. Clear History
15. Show Results with no XML data
16. Clear History with bad remote host
### Build Initial Environment
1. Clear GitHub, PowerShell, and XML files from Client PC
2. Clear test subscription
3. Build VNet
4. Build Gateway
5. Build ER Circuit
6. Link Gateway
7. Build Azure VM
8. RDP from local Client PC to validate initial setup
### Execute Tests
1. Download Files from GitHub
**Execution Steps**
1. Clear any old script files from local Client PC
2. Navigate to https://github.com/tracsman/HybridTool/tree/master/PowerShell
3. Download all files in the PowerShell directory to a directory on the local Client PC
**Expected Results**
1. Files from the PowerShell directory on GitHub are on the local PC.
2. Test Name: **Run Server Setup Script**
**Execution Steps**
1. Copy the contents of the BuildIIS.ps1 script from the ServerSide folder on GitHub to the clipboard of the local Client PC.
2. Open the Azure Management Portal and identify the local IP of the Azure VM created in step 7 of the "Build Initial Environment" section, here after called the "Azure VM".
2. From a command prompt on the local Client PC, run the command "mstsc".
3. Enter the IP Address of the Azure VM.
4. Logon using the Admin credential of the Azure VM.
5. Create a text file on the Azure VM desktop called BuildIIS.ps1
6. Paste in the contents of the BuildIIS.ps1 file copied in step 1.
7. In the Azure VM open an elevated PowerShell window (ie Run as Administrator)
8. At the PowerShell prompt run the script file created in step 6.
**Expected Results**
1. Script will run, with no error notifications.
2. IIS will be installed (Look for a C:\inetpub directory).
3. All ServerSide files will be resisdent in the c:\inetpub\wwwroot directory.
4. On the Client PC, a web broswer can successfully hit http://AzureVM_IP (page should resolve with no data)
2. Test Name: **Run Server Setup Script with Errors**
**Execution Steps**
1. Log on to the Azure VM.
2. Edit one of the file names in BuildIIS.ps1 (on the desktop) to a non-existant file.
3. Open an elevated PowerShell prompt.
4. Run the BuildIIS.ps1 script
**Expected Results**
1. Script will run, with one error message
2. Bad file name should be mentioned in red with instructions to manually copy the file.
3. Test Name: **WebPing Duration 5 Seconds**
**Execution Steps**
1. On local Client PC, in File Explorer navigate to %temp% (the temp directory)
2. Ensure there are no DiagJobDetail.xml or DiagJobHeader.xml files present, delete if found.
3. Open PowerShell (not elevated)
4. Navigate to the directory where the PowerShell scripts where saved in Test 1
5. Execute the following: `.\WebPing.ps1 -RemoteHost X.X.X.X -Duration 5 -DurationInterval Seconds` where x.x.x.x is the private IP Address of the Azure VM.
**Expected Results**
1. WebPing will run.
2. Four or five ! will show, each aproximately one second apart.
3. An end summary message will show statistics for the overall WebPing run.
4. A final message will indicate that the data was uploaded to the server.
5. Data for the run will be in two xml files, DiagJobDetail.xml and DiagJobHeader.xml, in the %temp% directory of the local Client PC.
6. Data will also be added to the xml files, DiagJobDetail.xml and DiagJobHeader.xml, in the c:\inetpub\wwwroot directory of the Azure VM.
4. Test Name: **WebPing Duration 1 Minute**
**Execution Steps**
1. From PowerShell (not elevated) on the Client PC.
2. Navigate to the directory where the PowerShell scripts where saved in Test 1
3. Execute the following: `.\WebPing.ps1 -RemoteHost X.X.X.X -Duration 1` where x.x.x.x is the private IP Address of the Azure VM.
**Expected Results**
1. Script should default to DurationInterval = Minutes, this without the DurationInterval option specifically called, and the Duration set to 1, the Script should run for 1 minute.
2. Many ! will show (around 50), each aproximately one second apart.
5. Test Name: **WebPing Timeout 1 Second**
**Execution Steps**
1. From PowerShell (not elevated) on the Client PC.
2. Navigate to the directory where the PowerShell scripts where saved in Test 1
3. Execute the following: `.\WebPing.ps1 -RemoteHost X.X.X.X -Duration 5 -DurationInterval Seconds -TimeoutSeconds 1` where X.X.X.X is the IP address of the Azure VM.
**Expected Results**
1. WebPing will run.
2. Final entry in the DiagJobHeader.xml in the %temp% directory of the local Client PC will show a the following value `<TimeoutSeconds>1</TimeoutSeconds>`
6. Test Name: **WebPing Bad IP / Timeout Errors**
**Execution Steps**
1. From PowerShell (not elevated) on the Client PC.
2. Navigate to the directory where the PowerShell scripts where saved in Test 1
3. Execute the following: `.\WebPing.ps1 -RemoteHost Y.Y.Y.Y -Duration 5 -DurationInterval Seconds` where y.y.y.y is an unused IP Address (ie Not the IP address of the Azure VM).
**Expected Results**
1. Script should run, but pause for 2 seconds (the default timeout setting) between each run.
2. Two . will be displayed.
3. An end summary message will show statistics for the overall WebPing run, which should indicate 2 lost pings and all round trip times at 0ms.
7. Test Name: **WebPing Bad Test Page / Bad Page Data**
**Execution Steps**
1. Blah
2. Bloo
3. Blee
**Expected Results**
1. Blah
2. Blue
3. Blee
8. Test Name: **WebPing Bad IP**
**Execution Steps**
1. Blah
2. Bloo
3. Blee
**Expected Results**
1. Blah
2. Blue
3. Blee
9. Test Name: **WebPing all defaults**
**Execution Steps**
1. Blah
2. Bloo
3. Blee
**Expected Results**
1. Blah
2. Blue
3. Blee
10. Test Name: **Review Results on Index.html**
**Execution Steps**
1. Blah
2. Bloo
3. Blee
**Expected Results**
1. Blah
2. Blue
3. Blee
11. Test Name: **Show Results**
**Execution Steps**
1. Blah
2. Bloo
3. Blee
**Expected Results**
1. Blah
2. Blue
3. Blee
12. Test Name: **Show Results with bad remote host**
**Execution Steps**
1. Blah
2. Bloo
3. Blee
**Expected Results**
1. Blah
2. Blue
3. Blee
13. Test Name: **Clear History**
**Execution Steps**
1. Blah
2. Bloo
3. Blee
**Expected Results**
1. Blah
2. Blue
3. Blee
14. Test Name: **Show Results with no XML data**
**Execution Steps**
1. Blah
2. Bloo
3. Blee
**Expected Results**
1. Blah
2. Blue
3. Blee
15. Test Name: **Clear History with bad remote host**
**Execution Steps**
1. Blah
2. Bloo
3. Blee
**Expected Results**
1. Blah
2. Blue
3. Blee

20
README.md Normal file
Просмотреть файл

@ -0,0 +1,20 @@
![0]
# NetworkMonitoring
**Azure / NetworkMonitoring** is a repository for open source Azure network monitoring tools. Each tool or collection of tools lives in a folder under the main NetworkMonitoring repo.
The current tools/tool-sets are:
#### LogConverter
[LogConverter][LogConverter] contains code for downloading operational network logs and converting them to .CSV files. Files can to be then uploaded to Power BI for analysis.
#### AzureCT
[AzureCT][AzureCT] is a collection of server side web pages and local PowerShell that will generate, collect, store, and display availability statistics of the network between you and a newly built Windows VM in Azure. It will do more in the future, but currently only provides availability information.
<!--Image References-->
[0]: ./AzureCT/media/AzureNMT.png "Azure Network Monitoring Tools"
<!--Link References-->
[LogConverter]: https://github.com/Azure/NetworkMonitoring/tree/master/LogConverter "LogConverter tree"
[AzureCT]: https://github.com/Azure/NetworkMonitoring/tree/master/OnPremiseConnectivityTool "AzureCT tree"