azping is a command line tools that help you find the lowest latency Azure Region from your place. It acutally reports median latency to Azure regions. It is a fork of gcping.

What does azping actually evalulate?

azping evalulate the median latecy of http requests to Azure blob storage endpoints located in each of Azure reagions from your place. Number of requests to be made to each region is 5 by default, but it can be changed with -n parameter that you can give in executing azping command.

Here is a list of Azure blob storage endpoints that azping evalulates:

regionendpoint
eastasiaazpingeastasia.blob.core.windows.net/ping
southeastasiaazpingsoutheastasia.blob.core.windows.net/ping
centralusazpingcentralus.blob.core.windows.net/ping
eastusazpingeastus.blob.core.windows.net/ping
eastus2azpingeastus2.blob.core.windows.net/ping
westusazpingwestus.blob.core.windows.net/ping
northcentralusazpingnorthcentralus.blob.core.windows.net/ping
southcentralusazpingsouthcentralus.blob.core.windows.net/ping
northeuropeazpingnortheurope.blob.core.windows.net/ping
westeuropeazpingwesteurope.blob.core.windows.net/ping
japanwestazpingjapanwest.blob.core.windows.net/ping
japaneastazpingjapaneast.blob.core.windows.net/ping
brazilsouthazpingbrazilsouth.blob.core.windows.net/ping
australiaeastazpingaustraliaeast.blob.core.windows.net/ping
australiasoutheastazpingaustraliasoutheast.blob.core.windows.net/ping
southindiaazpingsouthindia.blob.core.windows.net/ping
centralindiaazpingcentralindia.blob.core.windows.net/ping
westindiaazpingwestindia.blob.core.windows.net/ping
canadacentralazpingcanadacentral.blob.core.windows.net/ping
canadaeastazpingcanadaeast.blob.core.windows.net/ping
uksouthazpinguksouth.blob.core.windows.net/ping
ukwestazpingukwest.blob.core.windows.net/ping
westcentralusazpingwestcentralus.blob.core.windows.net/ping
westus2azpingwestus2.blob.core.windows.net/ping
koreacentralazpingkoreacentral.blob.core.windows.net/ping
koreasouthazpingkoreasouth.blob.core.windows.net/ping
francecentralazpingfrancecentral.blob.core.windows.net/ping
australiacentralazpingaustraliacentral.blob.core.windows.net/ping
uaenorthazpinguaenorth.blob.core.windows.net/ping
southafricanorthazpingsouthafricanorth.blob.core.windows.net/ping

NOTE All blob storage endpoints are created with the following scripts (Just in case I leave the procedures):

$ git clone https://github.com/yokawasa/azping.git
$ cd setup
# Edit RESOURCE_GROUP and REGION_LIST variables in env.sh
$ vi env.sh
# Read variables as enviroment variables
$ source env.sh
# Execute the following script that execute the following|
# (1) Create resource group for azping
# (2) Create blob storage accounts in each of Azure regions
# (3) Create $root container and upload ping file to the container
# (4) Check accessibility to all blob storage endpoints
$ ping-entrypoint.sh

How to install

Linux 64-bit|https://azpingrelease.blob.core.windows.net/azping_linux_amd64

$ curl https://azpingrelease.blob.core.windows.net/azping_linux_amd64 > azping && chmod +x azping

Mac 64-bit|https://azpingrelease.blob.core.windows.net/azping_darwin_amd64

$ curl https://azpingrelease.blob.core.windows.net/azping_darwin_amd64 > azping && chmod +x azping

Windows 64-bit|https://azpingrelease.blob.core.windows.net/azping_windows_amd64

# use WSL-bash
$ curl https://azpingrelease.blob.core.windows.net/azping_windows_amd64 > azping && chmod +x azping

Or, you can always build the binary from the source code like this:

$ git clone https://github.com/yokawasa/azping.git
$ cd azping
$ make
$ tree bin

bin
├── azping_darwin_amd64
├── azping_linux_amd64
└── azping_windows_amd64

Usage

$ azping [options...]

Options:
-n   Number of requests to be made to each region.
     By default 5; can't be negative.
-c   Max number of requests to be made at any time.
     By default 10; can't be negative or zero.
-t   Timeout. By default, no timeout.
     Examples|"500ms", "1s", "1s500ms".
-top If true, only the top region is printed.

-csv CSV output; disables verbose output.
-v   Verbose output.

Screenshot

Here is an output of azping when I executed azping from my home in Tokyo

Enjoy azping!