< Back

Test-AzRegionLatency

Sat Jan 11, 2020 9:35 am

NAME Test-AzRegionLatency



SYNOPSIS

Tests network latency to one or more Azure regions.





SYNTAX

Test-AzRegionLatency [[-Iterations] <Int32>] [[-DelaySeconds] <Int32>] [[-DelayMilliseconds] <Int32>]

[<CommonParameters>]





DESCRIPTION

Tests network latency to one or more Azure regions.





PARAMETERS

-Iterations <Int32>

The number of test iterations to run in each region.



Required? false

Position? 1

Default value 100

Accept pipeline input? false

Accept wildcard characters? false



-DelaySeconds <Int32>

An optional number of seconds to wait between each iteration.



Required? false

Position? 2

Default value 0

Accept pipeline input? false

Accept wildcard characters? false



-DelayMilliseconds <Int32>

An optional number of milliseconds to wait between each iteration.



Required? false

Position? 3

Default value 0

Accept pipeline input? false

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS

System.Management.Automation.PSObject





-------------------------- EXAMPLE 1 --------------------------



PS C:\\>Test-AzRegionLatency -Region westus



RawResults : {@{Time=4/18/18 8:54:46 PM; Timespan=00:00:00.0350430; LatencyMS=35}, @{Time=4/18/18 8:54:46 PM;

Timespan=00:00:00.0339910; LatencyMS=33}, @{Time=4/18/18 8:54:46 PM; Timespan=00:00:00.0336530;

LatencyMS=33},

@{Time=4/18/18 8:54:46 PM; Timespan=00:00:00.0349360; LatencyMS=34}...}

ComputerName : HDK3948GKLD

TotalTime : 00:00:03.8771200

Region : westus

Maximum : 52

Average : 35.02

Minimum : 32



Test the network latency from the local computer to the West US Azure region.









-------------------------- EXAMPLE 2 --------------------------



PS C:\\>$results = Test-AzRegionLatency -Region eastus -Iterations 300 -DelaySeconds 1



Test the network latency from the local comptuer to the East US Azure region. Run this test for 5 minutes and

delay each iteration by 1 second.











RELATED LINKS